AZ-400 Question 57
Select 2You are a DevOps engineer for a company that uses Azure Boards to manage work items and GitHub for code repositories. The development team wants to automatically link GitHub commits and pull requests to Azure Boards work items. Which two actions are required to establish this integration successfully? (Choose two.)
- A
Install the Azure Boards app from the GitHub Marketplace for your organization's GitHub account
- B
Enable GitHub Actions integration from within Azure DevOps to link commits to work items automatically
- C
Use the 'AB#
' syntax in GitHub commit messages to associate commits with Azure Boards work items - D
Configure GitHub environment secrets to store your Azure Boards project credentials
Show answer and explanation
Correct answers: A, C
Explanation
To integrate Azure Boards with GitHub, you must install the Azure Boards GitHub app in your GitHub organization or repository and then reference work items using the 'AB#
- A. Correct.
Correct. Installing the Azure Boards app from the GitHub Marketplace is a required step. It establishes the connection between the GitHub repository and Azure Boards, allowing the synchronization of commit and pull request data with corresponding work items.
- B. Incorrect.
Incorrect. While GitHub Actions can help automate many workflows, simply enabling GitHub Actions in Azure DevOps is not the standard or direct method to link commits to Azure Boards work items. The typical approach is to use the Azure Boards GitHub app and commit message references.
- C. Correct.
Correct. Including 'AB#
' in a commit message or pull request description is how Azure Boards recognizes and automatically links GitHub activity to the specified work item. This is a necessary convention for the integration to function properly. - D. Incorrect.
Incorrect. Storing credentials in GitHub environment secrets is not sufficient by itself and is not part of the standard Azure Boards-GitHub integration. Secrets can be used for other automation tasks, but they do not enable the out-of-the-box linkage of commits to Azure Boards.