Question 624 of 997

Quick Answer

The correct answer is to create a metric alert on the Http5xxErrors metric with a 5-percent threshold, a 5-minute evaluation window, and an action group that sends email. This works because Azure Monitor metric alerts natively evaluate platform metrics like Http5xxErrors over a specified time aggregation, such as the average error rate across five minutes, and trigger an action group when the threshold is breached—all without any custom code. On the AZ-204 exam, this scenario tests your understanding of the metric alert pipeline versus log alerts or custom solutions, and a common trap is confusing the evaluation frequency (every minute) with the total window length (five minutes) needed to detect sustained violations. Remember the key distinction: metric alerts use static thresholds on pre-collected metrics, while log alerts require queries. For a quick memory tip, think “5-5-5”: 5xx errors, 5 percent threshold, 5-minute window.

AZ-204 Practice Question: Azure Monitor metric alert for 5xx error rate…

This AZ-204 practice question tests your understanding of monitor, troubleshoot, and optimize azure solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: azure Monitor metric alert. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

The team needs to receive an email when an App Service's HTTP 5xx error rate exceeds 5 percent for more than five consecutive minutes. No custom code should be written. What combination of Azure Monitor features implements this requirement?

Question 1easymultiple choice
Read the full NAT/PAT explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create a metric alert on the Http5xxErrors metric with a 5-percent threshold, a 5-minute evaluation window, and an action group that sends email

Option A is correct because Azure Monitor metric alerts can directly evaluate the Http5xxErrors metric over a specified time window (e.g., 5 minutes) and trigger an action group when the threshold (5%) is breached. This requires no custom code and uses the native metric alert pipeline, which polls the metric every minute and aggregates over the evaluation window to detect sustained violations.

Key principle: Azure Monitor metric alert

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a metric alert on the Http5xxErrors metric with a 5-percent threshold, a 5-minute evaluation window, and an action group that sends email

    Why this is correct

    App Service emits Http5xxErrors as a platform metric. A metric alert configured with a 5-percent threshold and a PT5M evaluation window checks the condition every minute and fires after the threshold is breached continuously for 5 minutes. The action group routes the alert to the team's email.

    Related concept

    Azure Monitor metric alert

  • Create a log alert that queries the App Service diagnostic log table every 5 minutes and emails the team if the 5xx count exceeds a threshold

    Why it's wrong here

    Log alerts work, but they require diagnostic settings to route logs to a Log Analytics workspace, and query latency adds delay beyond the 5-minute evaluation window. For platform metrics already exposed natively, metric alerts are simpler, faster, and require no log forwarding setup.

  • Enable Application Insights availability tests and configure an alert on test failure rate

    Why it's wrong here

    Availability tests check whether an endpoint responds to HTTP pings from external locations. They detect downtime or reachability issues but do not reflect the HTTP 5xx error rate of real user traffic.

  • Configure a diagnostic setting to stream logs to Azure Storage, then write a Function that reads the storage file and sends email when errors are found

    Why it's wrong here

    This is an over-engineered custom pipeline. Azure Monitor's built-in metric alert and action group system eliminates the need for custom code, storage routing, and a Function just to send an alert email.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse metric alerts (which work on platform metrics like Http5xxErrors) with log alerts (which require querying diagnostic logs), or mistakenly think Application Insights availability tests are the correct tool for server-side error monitoring.

Detailed technical explanation

How to think about this question

Metric alerts in Azure Monitor use a sliding window aggregation (e.g., 'Total' or 'Average' over 5 minutes) and evaluate the condition every minute using a 'frequency' setting. The Http5xxErrors metric is emitted by the App Service platform at 1-minute granularity, and the alert fires only when the threshold is breached for the entire evaluation window (e.g., 5 consecutive minutes), preventing false positives from transient spikes. Action groups support multiple notification channels (email, SMS, webhook) and can be reused across alerts.

KKey Concepts to Remember

  • Azure Monitor metric alert
  • action group
  • HTTP 5xx errors
  • evaluation period

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Azure Monitor metric alert

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Review azure Monitor metric alert, then practise related AZ-204 questions on the same topic to reinforce the concept.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Monitor, troubleshoot, and optimize Azure solutions — This question tests Monitor, troubleshoot, and optimize Azure solutions — Azure Monitor metric alert.

What is the correct answer to this question?

The correct answer is: Create a metric alert on the Http5xxErrors metric with a 5-percent threshold, a 5-minute evaluation window, and an action group that sends email — Option A is correct because Azure Monitor metric alerts can directly evaluate the Http5xxErrors metric over a specified time window (e.g., 5 minutes) and trigger an action group when the threshold (5%) is breached. This requires no custom code and uses the native metric alert pipeline, which polls the metric every minute and aggregates over the evaluation window to detect sustained violations.

What should I do if I get this AZ-204 question wrong?

Review azure Monitor metric alert, then practise related AZ-204 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Azure Monitor metric alert

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.