Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 170


What command can you run to generate DOT (Document Template) formatted data to visualize Terraform dependencies?

Show Answer
Correct Answer: C

The 'terraform graph' command is used to generate a visual representation of Terraform resources and their dependencies. The output of this command is formatted in DOT (Document Template) format, which can be used by GraphViz to create visual diagrams of the infrastructure. This helps in understanding and debugging resource relationships and dependencies.

Discussion

4 comments
Sign in to comment
BurakkoOption: C
Sep 2, 2022

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.

SilentMilliOption: C
Mar 25, 2023

The correct answer is C. terraform graph command generates DOT (Document Template) formatted data to visualize Terraform dependencies. The terraform graph command generates a visualization of Terraform resources as a directed acyclic graph (DAG) using the Graphviz DOT format. This visualization can be used to understand and debug complex resource dependencies in your infrastructure as code.

InformationOverloadOption: C
Dec 29, 2022

C is correct, good explanation from @Burakko!

090200fOption: C
Jul 22, 2024

seems like C is the correct ans. visualize is the key point here