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 criter...


Microsoft AZ-400 Exam

Questions Number: 325 out of 535 Questions
60.75%

Question 325
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:
AZ-400_325Q.png related to the Microsoft AZ-400 Exam



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 -
Reference:
https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/add-check-policies
https://azuredevopslabs.com/labs/vstsextend/sonarcloud/





Previous Questions Next Questions