AZ-400 Question 41
Single answerYou are the DevOps engineer for a multinational software development team that uses Azure Boards for project tracking and Microsoft Teams for internal collaboration. Stakeholders want to receive automatic notifications in a specific Teams channel whenever a new 'Bug' is created in Azure Boards. What is the best way to set up these notifications from Azure DevOps to Teams?
- A
Configure a service hook in Azure DevOps to send a notification to Teams whenever a new Bug work item is created.
- B
Use GitHub Actions to automatically push updated bug notifications from Azure Boards to Teams in real-time.
- C
Set up an email subscription within Azure Boards to send bug creation alerts to a shared mailbox monitored by the Teams channel.
- D
Implement an Azure Logic App that reads all new work items from Azure Analytics and posts messages to the Teams channel.
Show answer and explanation
Correct answer: A
Explanation
To configure collaboration and communication effectively in Azure DevOps, it's recommended to use built-in integration features whenever possible. In this case, a service hook that posts automatic notifications to Microsoft Teams upon the creation of new work items is the most direct and efficient solution. For more details, refer to the official Microsoft documentation on Azure DevOps service hooks integration: https://docs.microsoft.com/azure/devops/service-hooks/overview
- A. Correct.
Option 1 is correct because Azure DevOps can directly integrate with Teams via a service hook. You can configure a service hook that triggers whenever a new work item of type 'Bug' is created, and then sends a message to a designated Teams channel. This is a straightforward, built-in method for achieving real-time collaboration.
- B. Incorrect.
Option 2 is incorrect because GitHub Actions are designed for GitHub repositories and workflows. While you could theoretically write a solution to connect Azure DevOps work items with GitHub, this would be overly complex and not the recommended approach for direct Azure Boards to Teams integration.
- C. Incorrect.
Option 3 is incorrect because using a shared mailbox is not as direct or efficient a solution as a service hook, and it could lead to cluttered mail threads within Teams. Moreover, email-based notifications are slower and less interactive compared to direct service hook events.
- D. Incorrect.
Option 4 is a possible but more complex approach than necessary. While Azure Logic Apps can integrate with Azure DevOps and Microsoft Teams, using a built-in service hook is simpler to configure and maintain for basic notifications.