Microsoft DevOps Engineer Expert AZ-400 Practice Question
You connected your Azure DevOps organization to Azure Monitor so that pipeline run metrics are emitted as Azure Monitor metrics. You must be alerted whenever a run of the pipeline named web-api-ci that is triggered from the main branch fails, and the alert must fire as soon as the first failure is recorded. Which alert rule configuration meets the requirement while minimizing noise?
Create a log alert that runs a KQL query against the AzureDevOpsAuditing table every 5 minutes and triggers if any record with Outcome == "failed" and PipelineName == "web-api-ci" is returned.
Create a metric alert on the Azure DevOps Pipeline resource for Runs Succeeded, dimension BranchName = "refs/heads/main", aggregation period 1 minute, static threshold LessThan 1.
Create a metric alert on the Azure DevOps Project resource for Runs Failed, no dimension filter, aggregation period 5 minutes, static threshold GreaterThan 1.
Create a metric alert on the Azure DevOps Pipeline resource for Runs Failed, set the dimension filter BranchName = "refs/heads/main", aggregation period 1 minute, static threshold GreaterThan 0.
Azure Monitor exposes one metric for each Azure DevOps pipeline: Runs Failed. Creating a metric-based alert on the Azure DevOps Pipeline resource allows Azure Monitor to evaluate the metric in near real time without the overhead of log queries. Setting the dimension filter BranchName = "refs/heads/main" restricts evaluation to runs of the main branch only, and applying a static threshold of GreaterThan 0 over a one-minute aggregation period causes the rule to fire immediately after the first failed run.
The other options are incorrect because:
Alerting on the Runs Failed metric at the project scope ignores the branch dimension and would raise alerts for failures from any branch.
The Runs Succeeded metric cannot detect failures.
Log-based queries introduce latency and additional cost compared to a metric alert and are unnecessary when the required metric is available natively.
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 purpose of Azure Monitor metrics in Azure DevOps?
Open an interactive chat with Bash
How does a dimension filter improve alert specificity?
Open an interactive chat with Bash
Why are metric-based alerts preferred over log-based alerts in this scenario?
Open an interactive chat with Bash
What is the difference between Azure Monitor metrics and log-based alerts?
Open an interactive chat with Bash
How does setting a dimension filter improve alert accuracy?
Open an interactive chat with Bash
Why is the aggregation period important in metric alert configuration?
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 .