Question 25

- (Exam Topic 3)
By default, provisioners that fail will also cause the Terraform apply itself to error. How can you change this default behavior within a provisioner?

Correct Answer:C
https://www.terraform.io/docs/provisioners/index.html

Question 26

- (Exam Topic 1)
Where in your Terraform configuration do you specify a state backend?

Correct Answer:A
Backends are configured with a nested backend block within the top-level terraform block. Reference: https://www.terraform.io/docs/language/settings/backends/configuration.html https://www.terraform.io/language/settings/backends/configuration#using-a-backend-block

Question 27

- (Exam Topic 3)
A data block requests that Terraform read from a given data source and export the result under the given local name.

Correct Answer:B

Question 28

- (Exam Topic 4)
Which one is the right way to import a local module names consul?

Correct Answer:BC
A local path must begin with either ./ or ../ to indicate that a local path is intended, to distinguish from a module registry address.
module "consul" {
source = "./consul"
}

Question 29

- (Exam Topic 1)
Which of the following is not a valid string function in Terraform?

Correct Answer:C

https://www.terraform.io/language/functions

Question 30

- (Exam Topic 3)
State locking does not happen automatically and must be specified at run

Correct Answer:A
State locking happens automatically on all operations that could write state. https://www.terraform.io/docs/state/locking.html

START TA-002-P EXAM