Practice Test 5 | Designing And Implementing Microsoft DevOps Solutions | AZ-400 | Dumps | Mock Test
Your company has a Git repository hosted in Azure DevOps.
You have to configure the pull requests in a branch to meet the following requirements before they are merged.
- Ensure that the committed code is compiled successfully.
- Ensure that pull requests have a Quality gate status of passed in SonarCloud.
Which of the following can be used for the requirement?
“Ensure that committed code is compiled successfully.”
A. A build policy
B. A check-in policy
C. A status policy
D. A deployment policy
Answer – A
With Git repositories, you can ensure that a build passes before the code is committed using a build policy.
Option B is incorrect since this is used for Team Foundation Version Control.
Option C is incorrect since this is used for checking for the status of external services.
Option D is incorrect since this is not an option for working with Azure Repos.
For more information on build validation, one can browse to the following URL-
Comments are closed, but trackbacks and pingbacks are open.