Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your company's operations team uses an Azure Monitor action group that pages the on-call engineer whenever an alert is fired. You are asked to surface an alert each time any run of the multi-stage YAML pipelines in your Azure DevOps project ends in a failed state. You must meet the following requirements:
Do not modify any existing pipeline YAML files.
Configure and manage the alert entirely from the Azure portal.
Re-use the existing action group without additional code.
Which approach should you implement?
Add a task to every pipeline that calls the Azure Monitor REST API to emit a custom metric on failure, and configure a metric alert on that custom metric.
Enable diagnostic settings for the Azure DevOps organization to stream audit logs to a Log Analytics workspace, then create a Log Analytics query alert rule that filters BuildCompleted events where Result equals "failed" and assigns the existing action group.
Configure continuous export of pipeline run data to Azure Data Explorer and set up a scheduled Kusto query alert that detects failed runs and calls the action group.
Create an Azure DevOps notification subscription for the "Build completed" event and set the delivery channels to email and Microsoft Teams for the operations group.
Streaming Azure DevOps auditing data to a Log Analytics workspace meets every requirement. Diagnostic settings can forward auditing events-including Build completed and Build failed-to Azure Monitor Logs. You can then create a Log Analytics query alert rule that detects events where Result = "failed" and wire that rule to the existing action group, causing the pager to fire. Notification subscriptions (email/Teams) do not integrate with Azure Monitor alerts, adding a REST call to every pipeline violates the no-YAML-changes constraint, and exporting to Azure Data Explorer would require additional infrastructure plus a scheduled query alert outside the Azure portal workflow.
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 are diagnostic settings in Azure Monitor?
Open an interactive chat with Bash
What are Log Analytics query alert rules?
Open an interactive chat with Bash
How do action groups work in Azure Monitor?
Open an interactive chat with Bash
What are Azure Monitor diagnostic settings in the context of DevOps pipelines?
Open an interactive chat with Bash
How do Log Analytics query alert rules work and why are they useful here?
Open an interactive chat with Bash
What is the role of an Azure Monitor action group, and how does it integrate with alert rules?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Implement an instrumentation strategy
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 .