00:00

QUESTION 6

- (Exam Topic 4)
You want to share Terraform state with your team, store it securely and provide state locking. How would you do this? Choose three correct answers.

Correct Answer: ABE

QUESTION 7

- (Exam Topic 1)
If a module uses a local variable, you can expose that value with a terraform output.

Correct Answer: A
Output values are like function return values.
Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.html

QUESTION 8

- (Exam Topic 2)
Provisioners should only be used as a last resort.

Correct Answer: B
Provisioners are a Last Resort
Terraform includes the concept of provisioners as a measure of pragmatism, knowing that there will always be certain behaviors that can't be directly represented in Terraform's declarative model.
However, they also add a considerable amount of complexity and uncertainty to Terraform usage. Firstly, Terraform cannot model the actions of provisioners as part of a plan because they can in principle take any action. Secondly, successful use of provisioners requires coordinating many more details than Terraform usage usually requires: direct network access to your servers, issuing Terraform credentials to log in, making sure that all of the necessary external software is installed, etc.
The following sections describe some situations which can be solved with provisioners in principle, but where better solutions are also available. We do not recommend using provisioners for any of the use-cases described in the following sections.
Even if your specific use-case is not described in the following sections, we still recommend attempting to solve it using other techniques first, and use provisioners only if there is no other option.
https://www.terraform.io/docs/provisioners/index.html

QUESTION 9

- (Exam Topic 4)
The following is a snippet from a Terraform configuration file: Which, when validated, results in the following error:
Fill in the blank in the error message with the correct string from the list below.

Correct Answer: D

https://www.terraform.io/docs/configuration/providers.html#alias-multiple-providerinstances

QUESTION 10

- (Exam Topic 4)
In the example below, the depends_on argument creates what type of dependency?

Correct Answer: C