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?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
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?
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.
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
What does Terraform not reference when running a terraform apply -refresh-only ?
A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a list of all active VM IDs. Which method could you use to determine which instance Terraform manages?
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
What is the provider for the resource shown in the Exhibit?
resource "aws_vpc" "main" {
name = "test"
}
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
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?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
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)
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention.
How should they ensure the code satisfies conventions?
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?
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
What feature stops multiple users from operating on the Terraform state at the same time?
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
You want to use API tokens and other secrets within your team's Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
What type of block is used to construct a collection of nested configuration blocks?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
You can reference a resource created with for_each using a Splat ( *) expression.
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?