Microsoft DevOps Engineer Expert AZ-400 Practice Question

The main branch of an Azure Repos Git repository must be protected so that code can be merged only after at least two members of the Security group approve the pull request and all discussion threads are resolved. Senior developers sometimes push minor documentation fixes to the pull request before completion; these pushes must not invalidate already collected approvals. Which branch policy configuration meets the requirements?

  • Create a branch policy that automatically includes the Security group as optional reviewers, sets Minimum number of reviewers to 0, and enables Auto-complete when two approvals are present.

  • Create a branch policy on main with Minimum number of reviewers set to 2, add the Security group as a required reviewer, enable Require discussion resolution, and leave Reset code reviewer votes when there are new changes cleared.

  • Create a branch policy on main with Minimum number of reviewers set to 2, add the Security group as a required reviewer, enable Require discussion resolution, and enable Reset code reviewer votes when there are new changes.

  • Lock the main branch and grant the Security group Contribute via Pull Request only; do not configure any additional branch policies.

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