Microsoft DevOps Engineer Expert AZ-400 Practice Question

You manage an Azure DevOps Git repository that contains a main branch and dozens of long-lived feature branches. You must redesign the pull-request (PR) workflow for main to meet these requirements:

  • Every PR must build and run unit tests in an Azure Pipelines build before it can be approved.
  • At least two members of the Backend Leads Azure DevOps security group must approve the PR before it can be completed.
  • All active discussion threads must be resolved before merge.
  • After all policies succeed, developers should be able to click Complete once and have the PR merge automatically when the remaining checks finish.

Which single configuration action meets all the requirements?

  • Enable a branch lock on main; require that feature branches be rebased on the latest main before completion; rely on pipeline branch triggers to run unit tests after the merge.

  • Require squash merges and enforce linked work items; configure a Build Validation policy set to optional so that developers can manually queue the pipeline; add Backend Leads as optional reviewers.

  • Create a status-check policy that listens for succeeded events from the unit-test pipeline; set the minimum reviewer count to 2 but leave the Required reviewers list empty; do not enable Comment resolution required.

  • On the main branch, add a Build Validation policy that automatically queues the unit-test pipeline and mark it as Required; add the Backend Leads group as Required reviewers with a minimum of 2; enable Comment resolution required, and leave Auto-complete enabled.

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