HashiCorp Certified: Terraform Associate — Question 341
Which configuration consistency errors does terraform validate report?
Answer options
- A. A mix of spaces and tabs in configuration files
- B. Differences between local and remote state
- C. Terraform module isn't the latest version
- D. Declaring a resource identifier more than once
Correct answer: D
Explanation
The correct answer is D because terraform validate checks for configuration errors like declaring a resource identifier more than once, which can cause conflicts. Options A and B refer to formatting and state discrepancies that are not specifically identified by terraform validate, while option C pertains to module versioning rather than configuration consistency.