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
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
Community Discussion
No community discussion yet for this question.