Microsoft DevOps Engineer Expert AZ-400 Practice Question
You administer an Azure Repos Git repository for a project that uses a YAML pipeline named CI. Developers occasionally complete pull requests to the main branch before the CI build finishes, which later causes compilation errors. You must ensure that a pull request can be completed only after the most recent commit has successfully run through the CI pipeline, without adding any extra manual steps for reviewers or authors. Which branch policy setting should you enable on the main branch?
Automatically include reviewers with required votes enforced
Require a linked Azure Boards work item before completion
Build validation that automatically queues the CI pipeline and requires it to succeed before completion
Require at least two reviewers with self-approval disabled
The Build validation policy automatically queues the specified pipeline whenever new commits are pushed to a pull request. The policy blocks completion of the pull request until the build succeeds, guaranteeing that the latest commit has been validated. Automatically including reviewers, requiring a minimum number of reviewers, or forcing linked work items all add review or tracking requirements but do not prevent completion when the build for the latest commit is still in progress or has failed.
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 branch policy in Azure Repos?
Open an interactive chat with Bash
How does build validation work in Azure Repos?
Open an interactive chat with Bash
What are the benefits of requiring build validation before completing a pull request?
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 .