nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #106

terraform validate confirms that your infrastructure matches the Terraform state file.

The correct answer is B. False. terraform validate does not confirm that your infrastructure matches the Terraform state file. It only checks whether the configuration files in a directory are syntactically valid and internally consistent. To confirm that your infrastructure matches the Terraform state file, yo

Submitted by rachelw· Apr 18, 2026Use Terraform CLI

Question

terraform validate confirms that your infrastructure matches the Terraform state file.

Options

  • ATrue
  • BFalse

How the community answered

(60 responses)
  • A
    7% (4)
  • B
    93% (56)

Explanation

terraform validate does not confirm that your infrastructure matches the Terraform state file. It only checks whether the configuration files in a directory are syntactically valid and internally consistent. To confirm that your infrastructure matches the Terraform state file, you need to use terraform plan or terraform apply with the -refresh-only option.

Topics

#terraform validate#CLI commands#configuration validation#state file interaction

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice