AZ-400 · Question #207
Drag and Drop Question You are configuring the settings of a new Git repository in Azure Repos. You need to ensure that pull requests in a branch meet the following criteria before they are merged: -
The correct answer is A build policy; A status policy. A build policy is correct for ensuring committed code compiles successfully because it triggers a build pipeline on pull request creation and blocks merging if the build fails. A status policy is correct for the SonarCloud Quality Gate requirement because it allows third-party se
Question
Exhibits
Answer Area
Drag items
Correct arrangement
- A build policy
- A status policy
Explanation
A build policy is correct for ensuring committed code compiles successfully because it triggers a build pipeline on pull request creation and blocks merging if the build fails. A status policy is correct for the SonarCloud Quality Gate requirement because it allows third-party services (like SonarCloud) to post a pass/fail status to Azure Repos via the Status API, which the policy then enforces before merging is permitted. These two policy types together cover both internal CI validation and external service quality gates in Azure Repos branch policies.
Topics
Community Discussion
No community discussion yet for this question.

