Question 170
After corrective work at Evergreen Development, a reviewer requests measurable proof for: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
Validation reports configuration consistency while the actual resource creation is confirmed only after apply. This directly verifies the corrective action: Distinguish syntactic/schema validation from plan and apply, and run the appropriate workflow stage. The measured result specifically addresses the failure at Evergreen Development: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation.
Incorrect Answers
A deliberately misformatted fixture fails the check while a formatted one passes. This evidence would validate a DIFFERENT correction: Run terraform fmt -check in CI and fail when formatting changes would be required. That different correction addresses: A CI job should reject code that is not Terraform-formatted without silently modifying a pull-request checkout. It does not establish that the Evergreen Development issue has been corrected: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. The relevant measured outcome is: Validation reports configuration consistency while the actual resource creation is confirmed only after apply.
A clean init selects the expected release and an unreviewed incompatible major version is excluded. This evidence would validate a DIFFERENT correction: Pin the module to an explicitly tested compatible version range before the next initialization. That different correction addresses: A registry module is referenced without a version constraint and a later major release changes its inputs unexpectedly. It does not establish that the Evergreen Development issue has been corrected: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. The relevant measured outcome is: Validation reports configuration consistency while the actual resource creation is confirmed only after apply.
Each environment's state list contains only its own intended resource addresses. This evidence would validate a DIFFERENT correction: Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. That different correction addresses: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. It does not establish that the Evergreen Development issue has been corrected: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. The relevant measured outcome is: Validation reports configuration consistency while the actual resource creation is confirmed only after apply.