AZ-400 Practice Question: Design and implement a source control strategy
Network Topology
You have the above branch policy configuration for the main branch. A developer pushes a new commit to an existing pull request. What happens?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The existing approvals are reset, and a new build is automatically queued.
The branch policy has 'Reset code review votes when new changes are pushed' enabled (resetOnSourcePush: true) and 'Build validation' with 'Automatically queue a new build when new changes are pushed' enabled (queueOnSourceUpdateOnly: true). When a new commit is pushed to an existing pull request, the existing approvals are reset, and a new build is automatically queued. Therefore, option C is correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The existing approvals are reset, but no new build is queued.
Why it's wrong here
This is incorrect because the branch policy's build validation setting has 'Queue new build on source update only' enabled, meaning any new push to the source branch will automatically queue a new build. Therefore, although existing approvals are reset, a new build is also queued, not omitted.
- ✗
The pull request is automatically completed.
Why it's wrong here
This is incorrect because no auto-complete setting is configured in the branch policy. The policy only resets approvals and queues a new build on push; it does not automatically complete the pull request, and auto-complete is a separate feature that must be explicitly enabled.
- ✓
The existing approvals are reset, and a new build is automatically queued.
Why this is correct
This is correct because the branch policy has two relevant settings: 'Reset approvals on new push' is enabled, so existing approvals are invalidated when new commits are pushed, and the build validation policy has 'Queue new build on source update only' set to true, so a new build is automatically queued. Both actions occur as a direct result of the new push to the PR source branch.
- ✗
The existing approvals remain valid, and the build is not requeued.
Why it's wrong here
This is incorrect because the policy is configured to reset approvals on new push, so existing approvals do not remain valid. Additionally, the build validation setting 'Queue new build on source update only' is true, which forces a new build to be queued; therefore the opposite of both conditions is true.
Go deeper
Related to this question
Learn chapter
Designing a Build Pipeline
Key term
Branch
A branch is a pointer to a specific commit in a version control system that allows you to work on features or fixes in isolation from the main codebase.
Key term
Pull request
A pull request is a way for a developer to propose changes to a codebase and ask other team members to review and merge them into the main project.
About these practice questions
One of 823 original AZ-400 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.