TERRAFORM-ASSOCIATE-004 · Question #202
terraform validate uses provider APIs to verify your infrastructure settings.
The correct answer is B. False. terraform validate only checks the configuration's syntax and internal consistency--it does not interact with provider APIs or check if the infrastructure settings are correct. It ensures that the Terraform code is syntactically correct and follows proper HCL structure. However,
Question
Options
- ATrue
- BFalse
How the community answered
(30 responses)- A13% (4)
- B87% (26)
Explanation
terraform validate only checks the configuration's syntax and internal consistency--it does not interact with provider APIs or check if the infrastructure settings are correct. It ensures that the Terraform code is syntactically correct and follows proper HCL structure. However, it does not verify if resources are valid according to the provider API or if the credentials To verify actual infrastructure settings, use terraform plan, which interacts with the provider APIs.
Topics
Community Discussion
No community discussion yet for this question.