Microsoft DevOps Engineer Expert AZ-400 Practice Question
A team uses an Azure Repos Git repository that contains source code in the src/ folder and Markdown documentation in the docs/ folder. Management wants the following pull-request workflow on the main branch:
Every pull request must be approved by at least one user in the DevLeads Azure DevOps group.
The continuous-integration pipeline named CI must run automatically and must block completion, but only when files inside the src/ folder are modified. You are configuring branch policies for the main branch. Which branch-policy combination satisfies both requirements?
Enable a minimum-number-of-reviewers policy set to one and add a status-check policy that references the CI pipeline without any path filters.
Add a CODEOWNERS file that lists the DevLeads group for the src/ path and enable automatic reviewer inclusion; configure the CI pipeline to trigger on all paths.
Add a required-reviewers policy that targets the DevLeads group and a build-validation policy for the CI pipeline scoped to the src/ path.
Configure a linked work-item branch policy and associate the CI pipeline as an optional build validation that allows pull-request completion on failure.
A build-validation policy can be linked to an Azure Pipeline and limited to specific folders by using path filters; the build must succeed before the pull request can be completed, so it meets the conditional CI requirement. A required-reviewers policy (selecting the DevLeads group) enforces at least one approval on every pull request, regardless of the files changed. Other policy types, such as linked work-item checks or comment resolution, neither provide conditional builds nor enforce reviewer membership.
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 the role of a required-reviewers policy in Azure Repos?
Open an interactive chat with Bash
How does a build-validation policy with path filters work?
Open an interactive chat with Bash
How are path filters configured for build-validation policies?
Open an interactive chat with Bash
What is an Azure Repos Git repository?
Open an interactive chat with Bash
What is a branch policy in Azure Repos?
Open an interactive chat with Bash
How do path filters work in build-validation 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 .