Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.
Git::https://example.com/vpc.git)?
Before you can use a remote backend, you must first execute terra-form init.
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?
What kind of configuration block will create an infrastructure object with settings specified within the block?
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?
Which of the following module source paths does not specify a remote module?
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?
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)
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
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?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
What feature stops multiple users from operating on the Terraform state at the same time?
Which command(s) adds existing resources in a public cloud into Terraform state?
Which type of block fetches or computes information for use elsewhere in a 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)
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
Which two steps are required to provision new infrastructure in the Terraform workflow?
(Pick the 2 correct responses below)
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?
All modules published on the official Terraform Registry are maintained and tested by HashiCorp.
Module version is required to reference a module on the Terraform Module Registry.
Which of the following is true about terraform apply?(Pick 2 correct responses)
Which of these ate features of Terraform Cloud? Choose two correct answers.
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?
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.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
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 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?
What information does the public Terraform Module Registry automatically expose about published modules?
Terraform configuration (including any module references) can contain only one Terraform provider type.
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?
When you use a backend that requires authentication, it is best practice to:
Which of the following is not a benefit of adopting infrastructure as code?
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

A resource block is shown in the Exhibit section of this page. How would you reference the attribute name of this resource in HCL?
You can develop a custom provider to manage its resources using Terraform.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
Which of the following should you add in the required_providers block to define a provider version constraint?
Which of these are benefits of using Sentinel with HCP Terraform/Terraform Cloud? (Pick the 3 correct responses)
The Terraform binary version and provider versions must match each other in a single configuration.
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
The_________determines how Terraform creates, updates, or delete resources.
You can access state stored with the local backend by using terraform_remote_state data source.
You can configure Terraform to log to a file using the TF_LOG environment variable.
Which of the following arguments are required when declaring a Terraform output?
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?