- (Exam Topic 2)
John wants to use two different regions to deploy two different EC2 instances. He has specified two provider blocks in his providers.tf file.
provider "aws" { region = "us-east-1" } provider "aws" { region = "us-west-2" }
When he run terraform plan he encountered an error. How to fix this?
Correct Answer:
B
- (Exam Topic 2)
Which of the following best describes the default local backend?
Correct Answer:
B
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
terraform { backend "local" {
path = "relative/path/to/terraform.tfstate"
}
}
https://www.terraform.io/docs/backends/types/local.html
- (Exam Topic 3)
Which of the following challenges would Terraform be a candidate for solving? (Select THREE)
Correct Answer:
ABD
- (Exam Topic 4)
terraform init retrieves the source code tot all referenced modules
Correct Answer:
A
Terraform installs providers, initialises source code & modules etc at this stage
- (Exam Topic 4)
Which of the following statements best describes the Terraform list(...) type?
Correct Answer:
B
A terraform list is a sequence of values identified by consecutive whole numbers starting with zero. https://www.terraform.io/docs/configuration/types.html#structural-types