Question 150
During an operational security assessment at a public-sector technology agency, the team documents this issue: A new repository copies workflows but forgets to configure matching branch rules. 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. Require pull-request review, current required status checks and ruleset protections for the protected default branch, limiting bypass authority. The action targets the recorded failure (A new repository copies workflows but forgets to configure matching branch rules), and is intended to reduce the corresponding risk: Unreviewed or failing code can enter a protected branch when policy enforcement is weak or bypasses are broadly assigned.
Correct verification. An unapproved PR or failed required test cannot merge; an authorized reviewed PR with green checks can. The measurement or controlled test provides evidence for the issue (A new repository copies workflows but forgets to configure matching branch rules) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
A production hotfix is tagged, reviewed, merged into the release branch and reconciled back to main without losing the original fix. It is not the complementary risk control for GitHub branch protection and status checks.
Use trunk-based development with small, short-lived feature branches and automated validation, employing feature flags for unfinished behavior. The GitHub branch protection and status checks implementation and safeguard are still missing.
Configure Azure Repos branch policies for minimum reviewer count, linked work items and build validation on critical branches. The two-part GitHub branch protection and status checks control remains unsatisfied.