Question 440
A project compares terraform fmt and terraform validate and needs a style-specific gate. Which failure mode would most clearly show that this specific requirement remains unmet?
Explanation
Correct Answer
Formatting and configuration validation solve different problems. Use terraform fmt -check for layout and terraform validate separately for correctness.
Incorrect Answers
Destroy targets the resources managed in the active state scope. Formatting and configuration validation solve different problems.
Terraform validate relies on resolved configuration dependencies for schema checks. Use terraform fmt -check for layout and terraform validate separately for correctness.
Saving HCL text alone does not mutate infrastructure; apply invokes provider operations. Formatting and configuration validation solve different problems.