HashiCorp Certified: Terraform Associate — Question 322
Which syntax check errors when you run terraform validate?
Answer options
- A. The code contains tabs for indentation instead of spaces.
- B. There is a missing value for a variable.
- C. The state file does not match the current infrastructure.
- D. None of the above.
Correct answer: D
Explanation
The correct answer is D because terraform validate checks for syntax issues and ensures the configuration is valid without executing any changes. The other options describe issues that are not related to syntax errors; they pertain to configuration and state management.