nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #75

TERRAFORM-ASSOCIATE-004 Question #75: Real Exam Question with Answer & Explanation

The correct answer is C: Declaring a resource identifier more than once. terraform validate checks configuration files for internal consistency and correctness - it validates syntax, required arguments, attribute types, and logical errors such as duplicate resource identifiers (declaring the same resource label more than once). It does NOT check modul

Submitted by jaden.t· Apr 18, 2026Use Terraform CLI

Question

Which configuration consistency errors does terraform validate report?

Options

  • ATerraform module isn't the latest version
  • BDifferences between local and remote state
  • CDeclaring a resource identifier more than once
  • DA mix of spaces and tabs in configuration files

Explanation

terraform validate checks configuration files for internal consistency and correctness - it validates syntax, required arguments, attribute types, and logical errors such as duplicate resource identifiers (declaring the same resource label more than once). It does NOT check module versions (A), compare local vs. remote state (B), or enforce whitespace formatting like tabs vs. spaces (D). Those concerns are handled by other commands: terraform plan handles state drift, and formatting is handled by terraform fmt.

Topics

#terraform validate#configuration validation#CLI commands#HCL syntax errors

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions