TERRAFORM-ASSOCIATE-004 · Question #165
terraform validate reports syntax check errors for which of the following?
The correct answer is D. None of the above. The terraform validate command is used to check for syntax errors and internal consistency within Terraform configurations, such as whether all required arguments are specified. It does not check for indentation styles, missing variable values (as variables might not be defined…
Question
Options
- ACode contains tabs for indentation instead of spaces
- BThere is a missing value for a variable
- CThe state file does not match the current infrastructure
- DNone of the above
How the community answered
(20 responses)- A5% (1)
- B5% (1)
- D90% (18)
Explanation
The terraform validate command is used to check for syntax errors and internal consistency within Terraform configurations, such as whether all required arguments are specified. It does not check for indentation styles, missing variable values (as variables might not be defined at validation time), or state file consistency with the current infrastructure. Therefore, none of the provided options are correct in the context of what terraform validate reports.
Topics
Community Discussion
No community discussion yet for this question.