- (Exam Topic 4)
Which of the following is not a benefit of adopting infrastructure as code?
Correct Answer:D
- (Exam Topic 4)
A user creates three workspaces from the command line - prod, dev, and test. Which of the following commands will the user run to switch to the dev workspace?
Correct Answer:B
The terraform workspace select command is used to choose a different workspace to use for further operations. https://www.terraform.io/docs/commands/workspace/select.html
- (Exam Topic 4)
Which of the following is not an advantage of using infrastructure as code operations?
Correct Answer:B
terraform is used to deploy the infrastructure, not to troubleshoot it
- (Exam Topic 4)
All Terraform Cloud tiers support team management and governance.
Correct Answer:B
https://www.terraform.io/cloud-docs/overview
Terraform Cloud is a commercial SaaS product developed by HashiCorp. Many of its features are free for small teams, including remote state storage, remote runs, and VCS connections. We also offer paid plans for larger teams that include additional collaboration and governance features. Each higher paid upgrade plan is a strict superset of any lower plans — for example, the Team & Governance plan includes all of the features of the Team plan.
- (Exam Topic 4)
Which task does teraform init not perform?
Correct Answer:B
- (Exam Topic 2)
Which of the following Terraform files should be ignored by Git when committing code to a repo? (select Three)
Correct Answer:ABD
The .gitignore file should be configured to ignore Terraform files that either contain sensitive data or are not required to save.
Terraform state (terraform.tfstate) can contain sensitive data, depending on the resources in use and your definition of "sensitive." The state contains resource IDs and all resource attributes. For resources such as databases, this may contain initial passwords.
When using local state, state is stored in plain-text JSON files.
The terraform.tfvars file may contain sensitive data, such as passwords or IP addresses of an environment that you may not want to share with others.