You can configure Terraform to log to a file using the TF_LOG environment variable.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.
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 apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
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)
What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.
Which option cannot be used to keep secrets out of Terraform configuration files?
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.
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
What functionality do providers offer in Terraform?(Pick 3 correct responses)
terraform validate confirms that your infrastructure matches the Terraform state file.
What feature stops multiple users from operating on the Terraform state at the same time?
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
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?
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 of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

A resource block is shown in the Exhibit space of this page. How would you reference the name value of the second instance of this resource?
Terraform configuration (including any module references) can contain only one Terraform provider type.
The_________determines how Terraform creates, updates, or delete resources.
The Terraform binary version and provider versions must match each other in a single configuration.
What kind of configuration block will create an infrastructure object with settings specified within the block?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
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?
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?
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
Which of the following is not a valid source path for specifying a module?
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
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?
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 add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
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?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
You can access state stored with the local backend by using terraform_remote_state data source.
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.
Module version is required to reference a module on the Terraform Module Registry.