Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 274


terraform validate confirms the syntax of Terraform files.

Show Answer
Correct Answer: A

Terraform validate is used to confirm the syntax and structure of Terraform files. It checks whether the configuration files are correctly written and can be successfully parsed by Terraform. This helps catch simple errors or typos in the configuration before proceeding with other Terraform commands like terraform plan or terraform apply.

Discussion

2 comments
Sign in to comment
inkedia3Option: A
Aug 13, 2023

A. True Correct, terraform validate is used to confirm the syntax and structure of Terraform files. It checks whether your configuration files are correctly written and can be successfully parsed by Terraform. This helps catch simple errors or typos in your configuration before you proceed with other Terraform commands like terraform plan or terraform apply.

090200fOption: A
Aug 3, 2024

https://developer.hashicorp.com/terraform/cli/commands/validate The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc. so option A : true is correct