Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
What type of block is used to construct a collection of nested configuration blocks?
Which of the following should you add in the required_providers block to define a provider version constraint?
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?
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
Which of the following is true about terraform apply?(Pick 2 correct responses)
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
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?
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module’s configuration.
Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
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)
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
How would you output returned values from a child module in the Terraform CLI output?
terraform validate confirms that your infrastructure matches the Terraform 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)
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
You can configure Terraform to log to a file using the TF_LOG environment variable.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
Which of these are features of HCP Terraform/Terraform Cloud? Pick the 2 correct responses below.
All modules published on the official Terraform Registry are maintained and tested by HashiCorp.
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?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
Which of the following should you add in the required_providers block to define a provider version constraint?
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?
When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.
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?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
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.
Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?
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.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
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 have a list of numbers that represents the number of free CPU cores on each virtual cluster:
numcpus = [ 18, 3, 7, 11, 2 ]
What Terraform function could you use to select the largest number from the list?
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?