nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #225

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

The correct answer is B. terraform graph. terraform graph generates Graphviz DOT format output, which allows visualization of resource dependencies in Terraform. A (terraform refresh) - Incorrect, as it only updates the state file. C (terraform output) - Incorrect, as it only displays Terraform output values. D…

Submitted by hans_de· Apr 18, 2026Use Terraform CLI

Question

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

Options

  • Aterraform refresh
  • Bterraform graph
  • Cterraform output
  • Dterraform show

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    92% (22)
  • D
    4% (1)

Explanation

terraform graph generates Graphviz DOT format output, which allows visualization of resource dependencies in Terraform. A (terraform refresh) - Incorrect, as it only updates the state file. C (terraform output) - Incorrect, as it only displays Terraform output values. D (terraform show) - Incorrect, as it only displays the Terraform state.

Topics

#terraform graph#CLI commands#dependency visualization#Graphviz DOT

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice