Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
terraform validate confirms that your infrastructure matches the Terraform state file.
Which of the following is true about terraform apply?(Pick 2 correct responses)
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
What functionality do providers offer in Terraform?(Pick 3 correct responses)
You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
What is the Terraform style convention for indenting a nesting level compared to the one above it?
You can access state stored with the local backend by using terraform_remote_state data source.
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?
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
What kind of configuration block will create an infrastructure object with settings specified within the block?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
Module version is required to reference a module on the Terraform Module Registry.
You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
How would you output returned values from a child module in the Terraform CLI output?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all the resources that will be deleted? (Pick the 2 correct responses)
You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
What feature stops multiple users from operating on the Terraform state at the same time?
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
Before you can use a remote backend, you must first execute terra-form init.
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?
The_________determines how Terraform creates, updates, or delete resources.
Which two steps are required to provision new infrastructure in the Terraform workflow?
(Pick the 2 correct responses below)
A provider configuration block is required in every Terraform configuration.
Example:

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?
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform's logging more verbose?
When you use a backend that requires authentication, it is best practice to:
What type of block is used to construct a collection of nested configuration blocks?
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?