AZ-400 Question 12
Select 2Your organization hosts its source code in GitHub and manages user stories and tasks in Azure Boards. You want every commit and pull request in GitHub to automatically link to the corresponding Azure Boards work item, ensuring traceability between code changes and planned work. Which two steps should you implement to achieve this integration?
- A
Install the Azure Boards app in your GitHub organization and connect the GitHub repository through Azure Boards Project Settings.
- B
Enable an 'Advanced Linking' feature in Azure Boards to automatically detect repository commits without referencing work item IDs.
- C
Add 'AB#
' or 'Fixes AB# ' in each commit message or pull request description to associate changes with a work item. - D
Create a service connection in Azure Pipelines specifically for GitHub, enabling automatic linking of commits to work items.
- E
Configure Azure Boards to automatically create GitHub Issues when new work items are created in Azure Boards.
Show answer and explanation
Correct answers: A, C
Explanation
To track work items across GitHub and Azure Boards, you must establish a GitHub-to-Azure Boards connection via the Azure Boards app (configured under Project Settings) and reference the relevant work item in your commit messages or pull requests (using AB#
- A. Correct.
Correct. Installing the Azure Boards app in GitHub and establishing the connection in Azure Boards Project Settings -> GitHub Connections is required for the two systems to communicate and share data. This step allows Azure Boards to track commits and pull requests from the linked GitHub repository.
- B. Incorrect.
Incorrect. There is no separate 'Advanced Linking' feature that automatically detects commits without referencing work items. GitHub commits and pull requests must explicitly mention the ID (e.g., AB#123) to be linked to the corresponding work item in Azure Boards.
- C. Correct.
Correct. Including 'AB#
' or 'Fixes AB# ' in commit messages or pull request descriptions enables Azure Boards to associate that commit with a specific work item. This is a documented practice for linking work items across GitHub and Azure Boards. - D. Incorrect.
Incorrect. While creating a service connection in Azure Pipelines is important for continuous integration/continuous delivery (CI/CD), it does not automatically link commits to work items in Azure Boards. Service connections manage pipeline permissions and resources, not work item tracking.
- E. Incorrect.
Incorrect. Azure Boards does not automatically create GitHub Issues for newly created work items. Instead, the integration focuses on linking commits and pull requests to Azure Boards work items, not generating GitHub Issues from Boards.