Question 1
A financial services company is implementing a new DevOps strategy. They are using Azure DevOps for work item tracking and Azure Repos for their private source code. For compliance reasons, every commit pushed to the main branch must be linked to an approved work item in Azure Boards. The team lead wants to enforce this policy automatically and reject any pushes that do not comply. Which source control feature should be configured in Azure Repos?
Answer and explanation
Correct answer: B
The most effective and automated way to enforce that commits are linked to work items before they are merged into a protected branch like main is by using a branch policy. This policy can be configured on the main branch to require work item linking on pull requests, effectively preventing direct pushes and ensuring traceability for all changes.