51. How would you output returned values from a child module in the Terraform CLI output?
A. Declare the output in the root configuration
B. Declare the output in the child module
C. Declare the output in both the root and child module
D. None of the above
Answer
C
52. What is the Terraform resource name of the following resource block?
resource "azurerm_resource_group" "dev" {
name = "test"
location = "westus"
}
A. azurerm_resource_group
B. azurerm
C. test
D. dev
Answer
D
53. When do you need to explicitly execute terraform refresh-only?
A. Before every terraform plan
B. Before every terraform apply
C. Before every terraform import
D. None of the above
Answer
D
54. How does the Terraform cloud integration differ from other state backends such as S3, Consul, etc.?
A. It can execute Terraform runs on dedicated infrastructure in Terraform Cloud
B. It doesn’t show the output of a terraform apply locally
C. It is only available to paying customers
D. All of the above
Answer
A
55. Which of the following are advantages of using infrastructure as code (IaC) instead of provisioning with a graphical user interface (GUI)? (Choose two.)
A. Secures your credentials
B. Let’s your version, reuse, and share infrastructure configuration
C. Provisions the same resources at a lower cost
D. Reduces risk of operator error
E. Prevents manual modifications to your resources
Answer
B, D
56. One cloud configuration always maps to a single remote workspace.
A. True
B. False
Answer
B
57. Multiple team members are collaborating on infrastructure using Terraform and want to format their Terraform code following standard Terraform-style convention.
How could they automatically ensure the code satisfies conventions?
A. Replace all tabs with spaces
B. Terraform automatically formats configuration on terraform apply
C. Run terraform validate prior to executing terraform plan or terraform apply
D. Use terraform fmt
Answer
D
58. Which backend does the Terraform CLI use by default?
A. Depends on the cloud provider configured
B. Remote
C. Terraform Cloud
D. Local
E. HTTP
Answer
D
59. The Terraform CLI will print output values from a child module after running terraform apply.
A. True
B. False
Answer
B
60. What does terraform refresh-only modify?
A. Your cloud infrastructure
B. Your Terraform plan
C. Your Terraform configuration
D. Your state file
Answer
D