Question 250
A team shares production infrastructure code and must stop unreviewed direct changes to the stable branch. Recently, An engineer pushes an untested network rule straight to main and causes a production deployment failure. Which ongoing control would best prevent a recurrence?
Explanation
Correct Answer
This control helps prevent an engineer pushes an untested network rule straight to main and causes a production deployment failure. It matters because version-control gates make reviewed history the source for production automation.
Incorrect Answers
Actual resources and versioned declarations no longer agree. “Limit out-of-band writes and trigger drift scans after deployments” would address that alternative cause, not the condition in this question: version-control gates make reviewed history the source for production automation.
“Require secret scanning, rotation, least privilege, and masked pipeline output” responds to this separate finding: a developer hard-coded it in a public YAML file. This question instead needs “Enforce branch protection and record reviewer approval for infrastructure changes”, so the alternative does not meet the stated condition.
Commits and merge history provide reproducibility and accountability for changes. “Prohibit release builds from dirty workspaces and retain artifact-to-commit attestations” applies to that separate problem. The observed case is a team shares production infrastructure code and must stop unreviewed direct changes to the stable branch; choosing this alternative would address the wrong failure mode.