Question 240
During an operational security assessment at a public-sector technology agency, the team documents this issue: Developers can bypass a CODEOWNERS review by changing approval settings in the same PR. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Choose TWO statements that provide both the appropriate correction and a meaningful test of its success. (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Use repository CODEOWNERS rules with protected branch required code-owner reviews for sensitive paths such as deployment workflows and infrastructure. The action targets the recorded failure (Developers can bypass a CODEOWNERS review by changing approval settings in the same PR), and is intended to reduce the corresponding risk: Changes to critical infrastructure or security code can pass generic peer review without an accountable specialist.
Correct verification. A change to a protected deployment file requests the listed code owner and cannot merge until that review passes. The measurement or controlled test provides evidence for the issue (Developers can bypass a CODEOWNERS review by changing approval settings in the same PR) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
A published defective commit is reversed by a traceable new commit while other collaborators can pull without repairing history. The paired controls concern codeowners targeted source reviews, not that measure.
Create protected signed or otherwise controlled release tags tied to deployed immutable commits and verify tag provenance in pipelines. The codeowners targeted source reviews implementation and safeguard are still missing.
Revoke and rotate exposed credentials immediately, then use approved history-rewrite tooling and coordinated cleanup where required. The two-part codeowners targeted source reviews control remains unsatisfied.