If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.
Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags. What will happen?
You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:
When you run terraform validate, you get the following error:
What must you do to successfully retrieve this value from your networking module?
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
What information does the public Terraform Module Registry automatically expose about published modules?
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.
Which command will migrate your current state file to the new S3 remote backend?
What type of block is used to construct a collection of nested configuration blocks?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
How does Terraform manage most dependencies between resources?
Module version is required to reference a module on the Terraform Module Registry.
What kind of configuration block will create an infrastructure object with settings specified within the block?
A module can always refer to all variables declared in its parent module.
What feature stops multiple users from operating on the Terraform state at the same time?
Which of the following is not a valid Terraform collection type?
Where can Terraform not load a provider from?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
You can reference a resource created with for_each using a Splat ( *) expression.
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
What is one disadvantage of using dynamic blocks in Terraform?
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
What does Terraform use the .terraform.lock.hc1 file for?
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.