Question 1
Terraform requires the Go runtime as a prerequisite for installation.
Answer and explanation
Correct answer: B
20 free sample questions308 in the full practice test
Terraform requires the Go runtime as a prerequisite for installation.
Correct answer: B
Terraform variables and outputs that set the "description" argument will store that description in the state file.
Correct answer: B
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
Correct answer: D
Explanation:
Terraform Registry is an index of modules shared publicly using this protocol. This public registry is the easiest way to get started with Terraform and find modules created by others in the community. -- Reference: https://www.terraform.io/docs/language/modules/sources.html
Which provisioner invokes a process on the resource created by Terraform?
Correct answer: A
Explanation:
The remote-exec provisioner invokes a script on a remote resource after it is created.
-- Reference: https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html
You need to specify a dependency manually.
What resource meta-parameter can you use to make sure Terraform respects the dependency?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
Correct answer: A
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?
Correct answer: A
A
When should you use the force-unlock command?
Correct answer: C
Explanation:
Manually unlock the state for the defined configuration. -- Reference: https://www.terraform.io/docs/cli/commands/force-unlock.html
The terraform.tfstate file always matches your currently built infrastructure.
Correct answer: B
Which of the following is not true of Terraform providers?
Correct answer: D
Reference: https://iayendrapatil.eom/terraform-cheat-sheet/#Terraform Read and write configuration
Why would you use the terraform taint command?
Correct answer: B
Explanation:
The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply. -- Reference: https://www.terraform.io/docs/cli/commands/taint.html
Register free to unlock 10 more sample questions