You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Variables declared within a module are accessible outside of the module.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?
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?
Which of the following module source paths does not specify a remote module?
terraform validate uses provider APIs to verify your infrastructure settings.
Which of these sources can Terraform use to download modules?
What information does the public Terraform Module Registry automatically expose about published modules?
You can configure Terraform to log to a file using the TF_LOG environment variable.
Which Terraform command checks that your configuration syntax is correct?
When you use a backend that requires authentication, it is best practice to:
Which of the following should you put into the required_providers block?
One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Which command must you first run before performing further Terraform operations in a working directory?
Before you can use a remote backend, you must first execute terra-form init.
What is modified when executing Terraform inrefresh-only mode?
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Which of the following is true about terraform apply?(Pick 2 correct responses)
Which of the following is not a valid Terraform collection type?
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.
Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?
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?
Which Terraform collection type should you use to store key/value pairs?
You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
If a module declares a variable with a default, that variable must also be defined within the module.
Only the user that generated a plan may apply it.
Only the user that generated a terraform plan may apply it.
Terraform configuration (including any module references) can contain only one Terraform provider type.
What task does the terraform import command perform?
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
What is terraform plan -refresh-only intended to detect?
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file's contents as a string?
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?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
Which of the following locations can Terraform use as aprivate sourcefor modules?(Pick 2 correct responses)
How does Terraform determine dependencies between resources?
_______backends support state locking.
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
What is the provider for this resource?

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
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)
terraform destroy is the only way to remove infrastructure.
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
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?
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
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 is not a valid string function in Terraform?
Which parameters does terraform import require? Choose two correct answers.
When do you need to explicitly execute Terraform in refresh-only mode?
The_________determines how Terraform creates, updates, or delete resources.
What does the default "local" Terraform backend store?
What does state looking accomplish?
Why does this backend configuration not follow best practices?

A Terraform provider is NOT responsible for:
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
terraform validate reports syntax check errors for which of the following?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
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 have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?
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?
Which of the following arguments are required when declaring a Terraform output?
When you run terraform apply, the Terraform CLI will print output values from both the root module and any child modules.
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
terraform init retrieves and caches the configuration for all remote modules.
Which statement describes a goal of Infrastructure as Code (IaC)?
Using the terraform state rm command against a resource will destroy it.
What does Terraform not reference when running a terraform apply -refresh-only ?