Question 51
Software Development SecurityA team wants to ensure no single developer can merge code into the main branch alone. Which repository control best achieves this?
Show the answer
Correct answerD. Require approved pull requests before merging
AWhy not this: Signing authenticates the author but does not stop that author from merging their own change.
BWhy not this: Secret scanning detects credentials in commits but does not require a second reviewer.
CWhy not this: Backups aid recovery after loss or tampering but do not control who can merge.
DWhy this is right: Branch protection with required approvals prevents any one person from merging to main alone.
Branch protection that requires an approved pull request enforces a second reviewer before code reaches main. Commit signing only proves who authored a commit; the author can still merge it unreviewed.