HashiCorp Certified: Terraform Associate — Question 249
terraform validate validates that your infrastructure matches the Terraform state file.
Answer options
- A. True
- B. False
Correct answer: B
Explanation
The correct answer is B because terraform validate checks for syntactical correctness in the configuration files rather than comparing the infrastructure to the state file. Therefore, it does not validate the actual infrastructure against the current state, which is why option A is incorrect.