A branch policy requires that code builds succeed before merging. To allow a specific user to always merge changes into the master branch regardless of build status while following least-privilege principles, what should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the branch security settings for the user..
Why this is the answer
Modifying the branch security settings for the user is the most precise way to grant an exception to a branch policy while adhering to the principle of least privilege. This allows you to bypass the build validation specifically for that user on that particular branch without granting broader, unnecessary permissions. Adding the user to the Build Administrators group or Project Administrators group would grant them extensive permissions across the entire project or organization, far beyond what's needed to bypass a single branch policy. Modifying repository security settings would apply the change to all branches within that repository, which is less granular than desired if the intent is to only affect a specific branch.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed