TA-002-P Dumps

TA-002-P Free Practice Test

HashiCorp TA-002-P: HashiCorp Certified: Terraform Associate

QUESTION 81

- (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

QUESTION 82

- (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

QUESTION 83

- (Exam Topic 3)
Which of the following challenges would Terraform be a candidate for solving? (Select THREE)

Correct Answer: ABD

QUESTION 84

- (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

QUESTION 85

- (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