How do you specify a module’s version when publishing it to the public terraform Module Registry?
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.
What does Terraform use the .terraform.lock.hc1 file for?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

Why would you use the -replace flag for terraform apply?
Which of the following is not a key principle of infrastructure as code?
When should you use the force-unlock command?
What is the workflow for deploying new infrastructure with Terraform?
A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?
Which of the following can you do with terraform plan? (Pick 2 correct responses)
Which are examples of infrastructure as code? Choose two correct answers.
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?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
Only the user that generated a plan may apply it.
Which of the following should you add in the required_providers block to define a provider version constraint?
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?
Terraformrequiresthe Go runtime as a prerequisite for installation.
What information does the public Terraform Module Registry automatically expose about published modules?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
Which backend does the Terraform CU use by default?
Which of these sources can Terraform use to download modules?
Which parameters does terraform import require? Choose two correct answers.
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
A provider configuration block is required in every Terraform configuration.
Example:

You can access state stored with the local backend by using terraform_remote_state data source.
Which of these commands makes your code more human readable?
Terraform encrypts sensitive values stored in your state file.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
A child module can always access variables declared in its parent module.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
Which of the following is true about terraform apply?(Pick 2 correct responses)
The_________determines how Terraform creates, updates, or delete resources.
How can terraform plan aid in the development process?
Which of the following is not a benefit of adopting infrastructure as code?
What task does the terraform import command perform?
What feature stops multiple users from operating on the Terraform state at the same time?
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?
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 have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
HashiCorp Configuration Language (HCL) supports user-denned functions.
What does the default "local" Terraform backend store?
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
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 modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?
Original configuration:
resource "aws_s3_bucket" "photoes" {
bucket_prefix = "images"
}
Updated configuration:
resource "aws_s3_bucket" "photos" {
bucket_prefix = "images"
}
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
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
What does terraform import do?
Terraform variables and outputs that set the description argument will store that description in the state file.
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
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?
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 3)
Where can Terraform not load a provider from?
You must use different Terraform commands depending on the cloud provider you use.
terraform init retrieves and caches the configuration for all remote modules.
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?
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?
When you use a remote backend that needs authentication, HashiCorp recommends that you:
Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
Which statement describes a goal of Infrastructure as Code (IaC)?
Where does the Terraform local backend store its state?
When do changes invoked by terraform apply take effect?
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

Terraform providers are part of the Terraform core binary.
You have to initialize a Terraform backend before it can be configured.
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?
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
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.