Microsoft DevOps Engineer Expert AZ-400 Practice Question

You administer an Azure DevOps Git repository using a 'main' branch for production. Your organization requires that any pull request (PR) into 'main' must receive at least two approvals and pass the CI pipeline. Furthermore, PR creators cannot approve their own changes, and any file changed in the '/infra/' path must be reviewed by the developers listed in the repository's CODEOWNERS file. Finally, project administrators need a way to merge a PR in an emergency, even if these policy checks fail. Which branch-policy configuration satisfies all requirements?

  • Configure a branch policy that requires 2 reviewers from specific security groups, allows self-approval, enables required build validation, and removes the bypass permission for project administrators.

  • Configure a branch policy on main that requires a minimum of 2 reviewers, enforces approvals from CODEOWNERS, disables self-approval, adds the CI pipeline as a required build-validation check, and grants project administrators the "Bypass policies when completing pull requests" permission.

  • Configure a branch policy that requires only 1 reviewer, automatically adds CODEOWNERS as optional reviewers, allows the PR creator to approve, and sets the CI pipeline build check to optional.

  • Use pipeline-gating conditions only: trigger the CI pipeline on PRs to main and rely on informal code reviews; do not configure any branch policy or reviewer requirements.

Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot