Question 187 of 296 from exam AZ-400: Designing and Implementing Microsoft DevOps Solutions

Question 187 of 296 from exam AZ-400: Designing and Implementing Microsoft DevOps Solutions

Question

DRAG DROP -

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:

-> Committed code must compile successfully.

-> Pull requests must have a Quality Gate status of Passed in SonarCloud.

Which policy type should you configure for each requirement? To answer, drag the appropriate policy types to the correct requirements. Each policy type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Select and Place:

Explanations

Box 1: A check-in policy -

Administrators of Team Foundation version control can add check-in policy requirements. These check-in policies require the user to take actions when they conduct a check-in to source control.

By default, the following check-in policy types are available:

-> Builds Requires that the last build was successful before a check-in.

-> Code Analysis Requires that code analysis is run before check-in.

-> Work Items Requires that one or more work items be associated with the check-in.

Box 2: Build policy -

https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/add-check-policies https://azuredevopslabs.com/labs/vstsextend/sonarcloud/