HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #166
Which Terraform command checks that your configuration syntax is correct?
The correct answer is A. terraform validate. The terraform validate command is used to check that your Terraform configuration files are syntactically valid and internally consistent. It is a useful command for ensuring your Terraform code is error-free before applying any changes to your infrastructure.
Use the core Terraform workflow
Question
Which Terraform command checks that your configuration syntax is correct?
Options
- Aterraform validate
- Bterraform init
- Cterraform show
- Dterraform fmt
How the community answered
(21 responses)- A81% (17)
- B5% (1)
- C10% (2)
- D5% (1)
Explanation
The terraform validate command is used to check that your Terraform configuration files are syntactically valid and internally consistent. It is a useful command for ensuring your Terraform code is error-free before applying any changes to your infrastructure.
Topics
#terraform validate#syntax checking#CLI commands
Community Discussion
No community discussion yet for this question.