Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your organization hosts an AKS-based service monitored by Azure Monitor. The source code is stored in a GitHub repository that follows the GitHub Flow branching model. You must implement a feedback cycle with these requirements: when an Azure Monitor alert fires, a GitHub issue must be created in the same repository, labeled sev2, and assigned to the on-call team; the alert details must also be posted to a Microsoft Teams channel. Custom code and infrastructure should be minimized. Which solution should you recommend?
Implement a repository-level GitHub Actions workflow triggered by push events that calls the Azure Monitor REST API to obtain active alerts and then uses curl commands to create the issue and send the Teams message.
Configure an Azure Monitor action group that triggers an Azure Logic App which uses the GitHub and Microsoft Teams connectors to create the issue and post the message.
Enable GitHub Discussions for the repository and integrate the DevOps Teams channel with GitHub Discussions notifications.
Create a GitHub webhook that invokes an Azure Function written in Node.js to process alert payloads and call both the GitHub REST API and Microsoft Teams incoming-webhook API.