HashiCorp Certified: Terraform Associate — Question 80
Terraform validate reports syntax check errors from which of the following scenarios?
Answer options
- A. Code contains tabs indentation instead of spaces
- B. There is missing value for a variable
- C. The state files does not match the current infrastructure
- D. None of the above
Correct answer: D
Explanation
The correct answer is D because Terraform validate is specifically designed to check the syntax of the configuration files, and the other options relate to runtime or state issues rather than syntax errors. Options A, B, and C do not pertain to syntax checks, but rather to configuration and state inconsistencies.