Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your company uses GitHub Enterprise Cloud to host its application source code. Operations engineers want every production alert raised by Prometheus Alertmanager to immediately open a GitHub issue that includes the alert payload and to notify the on-call team in Microsoft Teams. The solution must rely only on native capabilities of GitHub and Teams and require minimal ongoing maintenance. Which approach should you recommend?
Publish a GitHub Pages site with a form where operators submit incident reports, then import the reports into issues with a scheduled workflow.
Enable Dependabot alerts for the repository and configure Dependabot to forward new alerts to a Microsoft Teams channel.
Configure an Azure Monitor action group that emails the development team; instruct recipients to create GitHub issues from any alert emails they receive.
Expose the Alertmanager alert as a webhook that calls the repository_dispatch endpoint of the GitHub repository, then run a GitHub Actions workflow that creates a new issue and posts the same details to a Teams incoming webhook.
The repository_dispatch webhook lets any external system call the GitHub REST API to trigger a workflow in a specific repository. By configuring Alertmanager to invoke that webhook, you can start a GitHub Actions workflow that: 1) calls the GitHub REST API to create a new issue containing the alert data, and 2) sends a JSON payload to a Microsoft Teams incoming webhook to post a message in the on-call channel. Both steps are supported through standard GitHub Actions and Teams webhooks, so no additional services or manual steps are needed. The other options either rely on unrelated GitHub features (Dependabot), introduce manual effort (email then manual issue creation), or add unnecessary infrastructure (static site with cron import).
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the repository_dispatch webhook in GitHub?
Open an interactive chat with Bash
How do Teams incoming webhooks work?
Open an interactive chat with Bash
Why is this solution considered low maintenance?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement processes and communications
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .