Courseiva
Configure processes and communicationsmediumMultiple SelectObjective-mapped

AZ-400 Configure processes and communications Practice Question

Your team uses Azure DevOps with a Git repository. You want to enforce that all pull requests to main must have at least one reviewer from the 'security' group. Which two configurations are required? (Choose two.)

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

Add the security group as a required reviewer for the main branch policy.

You can add the security group as a required reviewer in the branch policy. Option D is correct because setting the minimum number of reviewers to 1 ensures at least one reviewer is required. Option A is incorrect because automatic reviewers are not the same as required reviewers; they only suggest reviewers but do not enforce mandatory review. Option C is incorrect because a repository policy applies to all branches, not just main, and does not enforce required reviewers for pull requests; a branch policy is needed. Option E is incorrect because a branch protection rule is a GitHub feature, not available in Azure Repos.

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 automatic reviewers for the security group.

    Why it's wrong here

    Automatic reviewers in Azure DevOps add reviewer names to a pull request based on path rules, but they function as suggestions and do not block completion. They are not mandatory reviewers; the PR can be merged even if the auto-added security-group member has not approved. To enforce a mandatory security review, the group must be added as a required reviewer in the branch policy, not just configured for automatic inclusion. Therefore automatic reviewers are insufficient for the requirement.

  • Add the security group as a required reviewer for the main branch policy.

    Why this is correct

    Adding the security group as a required reviewer in the Azure DevOps branch policy for main is the correct approach. This policy blocks pull request completion until a member of that group approves, making the security review a hard condition. The policy can also specify 'Required' reviewers, which prevents the PR from being completed without the mandated approval. This is the standard, declarative way to enforce that a specific team always signs off on merges to the main branch.

  • Create a repository policy for the main branch.

    Why it's wrong here

    Creating a repository-level policy in Azure DevOps would apply settings to all branches under that Git repository, not just main. Repository policies are designed as defaults for the entire repo, whereas a branch policy on main lets you enforce main-specific requirements like a required security-group reviewer. The requirement is branch-scoped, so the correct target is the branch policy for main, not a repo-wide policy. In fact, repo-wide policies cannot be scoped to a single branch in the Azure DevOps UI.

  • Set the minimum number of reviewers to 1 in the branch policy.

    Why this is correct

    Setting the minimum number of reviewers to 1 only requires any single user to approve; it does not specify that the approver must belong to the security group. The requirement demands a member of the security group must approve, which is a specific, named reviewer requirement. To satisfy it you need a required-reviewer policy that names the security group, not merely a generic count of approvals. This option addresses quantity of approvals rather than identity.

  • Configure a branch protection rule in GitHub.

    Why it's wrong here

    Branch protection rules are a GitHub feature and apply only to repositories hosted on GitHub. Since your team uses Azure DevOps Git repositories, you would use Azure DevOps branch policies instead. Configuring a rule in GitHub would have no effect on the Azure DevOps repo, and the Azure DevOps branch policy UI is where required reviewers are set. This option confuses the equivalent features of two different platforms.

About these practice questions

This AZ-400 question is part of Courseiva's 823-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.