Question 240
After corrective work at Brightside Cloud Works, a reviewer requests measurable proof for: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. Which controlled check would validate the remediation?
Explanation
Correct Answer
The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review. This directly verifies the corrective action: Handle the documented detailed exit codes: zero for no changes, two for changes, and one for errors. The measured result specifically addresses the failure at Brightside Cloud Works: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure.
Incorrect Answers
A nested test module is reformatted and the recursive formatting check passes. This evidence would validate a DIFFERENT correction: Use terraform fmt -recursive when consistent formatting of nested directories is required. That different correction addresses: A developer wants to format Terraform files across nested module folders but runs fmt only in the root. It does not establish that the Brightside Cloud Works issue has been corrected: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. The relevant measured outcome is: The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review.
A consumer can deploy a representative environment using only the documented minimum inputs. This evidence would validate a DIFFERENT correction: Compose focused modules with a stable, intentional input/output interface and reasonable defaults. That different correction addresses: A reusable module exposes fifty low-level implementation variables and becomes impossible for application teams to use safely. It does not establish that the Brightside Cloud Works issue has been corrected: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. The relevant measured outcome is: The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review.
An investigator identifies the exact commit and plan that introduced the gateway size modification. This evidence would validate a DIFFERENT correction: Version Terraform configuration and associate reviewed plan/application records with release changes. That different correction addresses: A product deployment has no record of when a gateway size was changed, making regression analysis difficult. It does not establish that the Brightside Cloud Works issue has been corrected: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. The relevant measured outcome is: The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review.