- (Exam Topic 1)
You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.
How would you solve this using infrastructure as code?
Correct Answer:
D
- (Exam Topic 4)
From the answers below, select the advantages of using Infrastructure as Code.
Correct Answer:
BCDE
Infrastructure as Code is not used to develop applications, but it can be used to help deploy or provision those applications to a public cloud provider or on-premises infrastructure.
All of the others are benefits to using Infrastructure as Code over the traditional way of managing infrastructure, regardless if it's public cloud or on-premises.
- (Exam Topic 4)
The Terraform CLI will print output values from a child module after running terraform apply.
Correct Answer:
A
- (Exam Topic 3)
Hanah is writing a terraform configuration with nested modules, there are multiple places where she has to use the same conditional expression but she wants to avoid repeating the same values or expressions multiple times in the configuration,. What is a better approach to dealing with this?
Correct Answer:
B
https://www.terraform.io/docs/configuration/locals.html
- (Exam Topic 3)
Complete the following sentence:
For local state, the workspaces are stored directly in a ______.
Correct Answer:
D
For local state, Terraform stores the workspace states in a directory called terraform.tfstate.d. https://www.terraform.io/docs/state/workspaces.html#workspace-internals