- (Exam Topic 4)
Terraform console provides an interactive command-line console for evaluating and experimenting with expressions. You can use it to test interpolations before using them in configurations and to interact with any values currently saved in state.
Which configuration consistency errors does terraform validate report?
Correct Answer:
D
validate will look for syntax errors "Declaring a resource identifier more than once" is a syntax error
- (Exam Topic 1)
Which of the following is not a key principle of infrastructure as code?
Correct Answer:
B
Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as- code#:~:text=Idempotence is a principle of,of the environment's starting state.
- (Exam Topic 1)
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.
Correct Answer:
B
TF_LOG_PATH IS NOT REQUIRED, in the docs, they do not mention HAVE TO SET TF_LOG_PATH, it is optional, therefore without TF_LOG_PATH will cause detailed logs to appear on stderr.
https://www.computerhope.com/jargon/s/stderr.htm#:~:text=Stderr, also known as standard,
- (Exam Topic 4)
What command can you run to generate DOT (Document Template) formatted data to visualize Terraform dependencies?
Correct Answer:
C
The terraform graph command is used to generate a visual representation of either a configuration or execution plan. The output is in the DOT format, which can be used by GraphViz to generate charts.
- (Exam Topic 3)
The terraform state command can be used to _____
Correct Answer:
A
The terraform state command is used for advanced state management. Rather than modify the state directly, the terraform state commands can be used in many cases instead.
https://www.terraform.io/docs/commands/state/index.html