terraform validate confirms that your infrastructure matches the Terraform state file.
A. True
B. False
Terraform configuration (including any module references) can contain only one Terraform provider type.
A. True
B. False
When does Sentinel enforce policy logic during a Terraform Cloud run?
A. Before the plan phase
B. During the plan phase
C. Before the apply phase
D. After the apply phase
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
A. Plan
B. Import
C. Alidate
D. Init
E. apply
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)?
A. Append pref=v1.0.0 argument to the source path
B. Add version = "1.0.0" parameter to module block
C. Nothing modules stored on GitHub always default to version 1.0.0
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?
A. Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages
B. Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs
C. Run terraform taint/code on all the VMs to recreate them
D. Use terraform refresh/code to find out which IDs are already part of state
What does the default "local" Terraform backend store?
A. tfplan files
B. State file
C. Provider plugins
D. Terraform binary
How does Terraform manage most dependencies between resources?
A. Terraform will automatically manage most resource dependencies
B. Using the depends_on parameter
C. By defining dependencies as modules and including them in a particular order
D. The order that resources appear in Terraform configuration indicates dependencies
Which Terraform collection type should you use to store key/value pairs?
A. Set
B. Map
C. Tuple
D. list
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
A. terraform destroy, then terraform apply
B. terraform init
C. terraform push
D. terraform apply