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.
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
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?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
A developer on your team is going to 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?
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
What feature stops multiple users from operating on the Terraform state at the same time?
Which provider authentication method prevents credentials from being stored in the state file?
Which command(s) adds existing resources in a public cloud into Terraform state?
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
Which of the following should you add in the required_providers block to define a provider version constraint?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
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?
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
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?
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
Module version is required to reference a module on the Terraform Module Registry.
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
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 space of this page. How would you reference the name value of the second instance of this resource?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
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 correct responses)
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
terraform validate confirms that your infrastructure matches the Terraform state file.
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
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.
A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
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?
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
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 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?