HashiCorp Certified: Terraform Associate — Question 299

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

Answer options

Correct answer: C

Explanation

The correct command is 'terraform graph', which outputs the dependency graph in DOT format, useful for visualization. 'terraform refresh' updates the state file, 'terraform show' displays the current state or plan, and 'terraform output' retrieves the output values of the configuration, none of which generate the DOT formatted data needed for visualizing dependencies.