nerdexam
HashiCorp

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,

Submitted by stefanr· Apr 18, 2026Use Terraform CLI

Question

terraform validate uses provider APIs to verify your infrastructure settings.

Options

  • ATrue
  • BFalse

How the community answered

(30 responses)
  • A
    13% (4)
  • B
    87% (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

#terraform validate#Terraform CLI#configuration validation#provider interaction

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice