- (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
- (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
- (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
- (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"
}
- (Exam Topic 1)
Which of the following is not a valid string function in Terraform?
Correct Answer:C
https://www.terraform.io/language/functions
- (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