Which method for sharing Terraform modules fulfills the following criteria:
Keeps the module configurations confidential within your organization.
Supports Terraform's semantic version constraints.
Provides a browsable directory of your modules.
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 delete the VM using the cloud provider console, then run terraform apply again without changing any Terraform code?
What information does the public Terraform Module Registry automatically expose about published modules?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
terraform validate uses provider APIs to verify your infrastructure settings.
Terraform configuration can only import modules from the public registry.
What does terraform destroy do?
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
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)
What does the default "local" Terraform backend store?
Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)
Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
A Terraform backend determines how Terraform loads state and stores updates when you execute which command?
Which of the following is not a benefit of adopting infrastructure as code?
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?
How would you output returned values from a child module in the Terraform CLI output?
When does Sentinel enforce policy logic during a Terraform Cloud run?
When do changes invoked by terraform apply take effect?
A terraform apply can not _________ infrastructure.
When you use a backend that requires authentication, it is best practice to:
terraform init creates an example main.tf file in the current directory.
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
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)
How is terraform import run?
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?
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
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?
A child module can always access variables declared in its parent module.
Which parameters does terraform import require? Choose two correct answers.
Terraformrequiresthe Go runtime as a prerequisite for installation.
By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?
terraform apply will fail if you have not run terraform plan first to update the plan output.
Which command does not cause Terraform to refresh its state?
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
Which are examples of infrastructure as code? Choose two correct answers.
terraform validate confirms that your infrastructure matches the Terraform state file.
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?
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
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?
Which of the following module source paths does not specify a remote module?
Any user can publish modules to the public Terraform Module Registry.
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 statements about Terraform Cloud workspaces is false?
When should you use the force-unlock command?
Which configuration consistency errors does terraform validate report?
Terraform encrypts sensitive values stored in your state file.
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?
The_________determines how Terraform creates, updates, or delete resources.
A developer launched a VM outside of the Terraform workflow and ended up with two servers with the same name. They are unsure which VM is managed with Terraform, but they do have a list of all active VM IDs. Which method could you use to determine which instance Terraform manages?
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?
Which of the following arguments are required when declaring a Terraform output?
One remote backend configuration always maps to a single remote workspace.
What is one disadvantage of using dynamic blocks in Terraform?
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?
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
When should you run terraform init?
You can access state stored with the local backend by using terraform_remote_state data source.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?
Which Terraform collection type should you use to store key/value pairs?
A Terraform provider is NOT responsible for:
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?
How does Terraform manage most dependencies between resources?
How does Terraform determine dependencies between resources?
Why would you use the -replace flag for terraform apply?
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?
terraform validate confirms thesyntaxof Terraform files.
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Which of the following is not a way to trigger terraform destroy?
Which command lets you experiment with terraform expressions?
What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?