Microsoft DevOps Engineer Expert AZ-400 Practice Question
You manage an Azure DevOps Git repository that contains a main branch and dozens of long-lived feature branches. You must redesign the pull-request (PR) workflow for main to meet these requirements:
Every PR must build and run unit tests in an Azure Pipelines build before it can be approved.
At least two members of the Backend Leads Azure DevOps security group must approve the PR before it can be completed.
All active discussion threads must be resolved before merge.
After all policies succeed, developers should be able to click Complete once and have the PR merge automatically when the remaining checks finish.
Which single configuration action meets all the requirements?
Enable a branch lock on main; require that feature branches be rebased on the latest main before completion; rely on pipeline branch triggers to run unit tests after the merge.
Create a status-check policy that listens for succeeded events from the unit-test pipeline; set the minimum reviewer count to 2 but leave the Required reviewers list empty; do not enable Comment resolution required.
Require squash merges and enforce linked work items; configure a Build Validation policy set to optional so that developers can manually queue the pipeline; add Backend Leads as optional reviewers.
On the main branch, add a Build Validation policy that automatically queues the unit-test pipeline and mark it as Required; add the Backend Leads group as Required reviewers with a minimum of 2; enable Comment resolution required, and leave Auto-complete enabled.
Configuring a branch policy on the main branch lets you gate every pull request. A required Build Validation policy queues the designated pipeline automatically and blocks approval until the build and unit tests pass. Adding the Backend Leads group as Required reviewers with the minimum-reviewer count set to 2 ensures that two members of that group must approve the PR. Enabling Comment resolution required prevents completion while any discussion thread is still active. Because policies are evaluated continuously, developers can enable Auto-complete when they click Complete; the PR is then merged automatically as soon as the build and review policies finish, satisfying the final requirement. The other options either fail to enforce the build, do not restrict approval to the required group, or cannot guarantee automatic completion after policies succeed.
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 is a Build Validation policy in Azure DevOps?
Open an interactive chat with Bash
Why is enabling 'Comment resolution required' important for PR workflows?
Open an interactive chat with Bash
How does Auto-complete work for pull requests in Azure DevOps?
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 .