TERRAFORM-ASSOCIATE-004 · Question #106
terraform validate confirms that your infrastructure matches the Terraform state file.
The correct answer is B. False. terraform validate does not confirm that your infrastructure matches the Terraform state file. It only checks whether the configuration files in a directory are syntactically valid and internally consistent. To confirm that your infrastructure matches the Terraform state file, yo
Question
Options
- ATrue
- BFalse
How the community answered
(60 responses)- A7% (4)
- B93% (56)
Explanation
terraform validate does not confirm that your infrastructure matches the Terraform state file. It only checks whether the configuration files in a directory are syntactically valid and internally consistent. To confirm that your infrastructure matches the Terraform state file, you need to use terraform plan or terraform apply with the -refresh-only option.
Topics
Community Discussion
No community discussion yet for this question.