Microsoft DevOps Engineer Expert AZ-400 Practice Question
The main branch of an Azure Repos Git repository must be protected so that code can be merged only after at least two members of the Security group approve the pull request and all discussion threads are resolved. Senior developers sometimes push minor documentation fixes to the pull request before completion; these pushes must not invalidate already collected approvals. Which branch policy configuration meets the requirements?
Create a branch policy that automatically includes the Security group as optional reviewers, sets Minimum number of reviewers to 0, and enables Auto-complete when two approvals are present.
Create a branch policy on main with Minimum number of reviewers set to 2, add the Security group as a required reviewer, enable Require discussion resolution, and leave Reset code reviewer votes when there are new changes cleared.
Create a branch policy on main with Minimum number of reviewers set to 2, add the Security group as a required reviewer, enable Require discussion resolution, and enable Reset code reviewer votes when there are new changes.
Lock the main branch and grant the Security group Contribute via Pull Request only; do not configure any additional branch policies.
A branch policy can enforce both reviewer and discussion-resolution requirements. Setting Minimum number of reviewers to 2 and adding the Security group as a required reviewer guarantees that at least two Security members approve every pull request. Enabling Require discussion resolution blocks completion while any active thread exists. Leaving Reset code reviewer votes when there are new changes cleared ensures that additional non-functional pushes (for example, typo fixes) do not throw away approvals already granted, so maintainers are not forced to restart the review cycle. Selecting the reset option would cancel approvals on every push, while lowering the reviewer count, making reviewers optional, or locking the branch without policies would all fail to meet one or more requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'Reset code reviewer votes when there are new changes' policy do?
Open an interactive chat with Bash
What is the role of 'Required reviewers' in Azure Repos branch policies?
Open an interactive chat with Bash
Why is 'Require discussion resolution' important in branch policies?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .