Courseiva
Question 2 of 823
Design and implement source controleasyMultiple ChoiceObjective-mapped

AZ-400 Design and implement source control Practice Question

A development team uses Git for source control. They want to ensure that all code changes are reviewed before merging into the main branch. Which branch policy should they configure in Azure Repos?

⚠ Common exam trap

Many exam-takers confuse 'code review' with other quality gates like build validation or work item linking, but the question explicitly asks for a policy that ensures all changes are reviewed before merging, which is directly addressed only by reviewer and comment resolution policies.

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

Configure a branch policy that requires a minimum number of reviewers and resolves all comments.

Azure Repos branch policies allow you to enforce that pull requests require a minimum number of reviewers and that all comments are resolved before merging. This directly ensures that all code changes are reviewed and any feedback is addressed, meeting the team's requirement for mandatory code review before merging into the main branch.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure a branch policy that requires a minimum number of reviewers and resolves all comments.

    Why this is correct

    This branch policy enforces mandatory peer review by requiring at least a specified number of reviewers to approve the pull request, and also requires that all comment threads be resolved before merging. This ensures that code is reviewed by multiple team members before integration, directly serving the goal of ensuring peer review.

  • Configure a branch policy that requires commit messages to follow a specific pattern.

    Why it's wrong here

    While enforcing a commit message pattern can improve commit history readability and traceability, it does not require any human peer review of the code changes. Automated checks on commit messages validate formatting but do not involve another developer evaluating the code content, so it does not satisfy the requirement for peer review.

  • Configure a branch policy that requires a successful build.

    Why it's wrong here

    A successful build validates that the code compiles and passes automated tests, providing a quality gate but not human review. CI build results do not constitute peer review because no other developer manually inspects the changes for logic, design, or maintainability.

  • Configure a branch policy that requires linked work items.

    Why it's wrong here

    Linking work items ensures traceability between code changes and backlog items, but it does not involve any code review process. A developer can link a work item and still push unreviewed code, so this policy does not enforce peer review.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.