Microsoft DevOps Engineer Expert AZ-400 Practice Question

You manage an Azure DevOps Git repository that contains a protected main branch. Your organization has these requirements:

  • All changes must reach main through a pull request.
  • A pull request can be completed only after at least two reviewers approve it and the pipeline Build-CI finishes successfully.
  • Members of the Contributors group must never be able to override these rules, but members of the Project Administrators group must be able to bypass the rules during emergency fixes.

Which configuration meets the requirements?

  • Create a branch policy on main that sets Minimum number of reviewers to 2 and adds a Build validation using Build-CI; then deny "Bypass policies when pushing" for the Contributors group and allow that permission for the Project Administrators group.

  • Enable Code Owners on the repository, select "Request review from Code Owners", add Build-CI as a status policy, and allow the Contributors group the "Complete pull request" permission while removing "Bypass policies when pushing" from all groups.

  • Create the branch policy with two reviewers and Build-CI, and grant the Contributors group the "Exempt from policy enforcement" permission while leaving Project Administrators unchanged.

  • Deny the "Push" permission on the repository for Contributors and allow "Force push" for Project Administrators; do not configure any 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