AZ-104 Question 256
Single answerYour company has a critical web application deployed in Azure App Service. You want to configure an alert rule in Azure Monitor that triggers if the application's average response time exceeds 2 seconds for five consecutive minutes. You also want to send an SMS to the on-call engineer via an action group. However, your team performs scheduled maintenance on Saturdays from 2 AM to 3 AM, and you do not want any alerts during that window. Which configuration meets these requirements?
- A
Create a Metric alert rule for average response time with a threshold of 2 seconds over 5 minutes, configure an action group with an SMS contact, and set up an Alert Processing Rule to suppress notifications on Saturdays from 2 AM to 3 AM.
- B
Create a Log alert rule based on Azure Monitor logs for average response time, define an action group that sends email notifications, and apply a scheduled query rule to skip weekend alerts.
- C
Create a Metric alert rule for average response time without specifying a threshold, send emails through an action group, and configure a firewall rule to block all traffic on Saturdays from 2 AM to 3 AM.
- D
Create a Metric alert rule for CPU usage with a threshold of 2 seconds, configure an action group with SMS notification, and set up a weekly recurring runbook to disable alerts during the maintenance window.
Show answer and explanation
Correct answer: A
Explanation
The key requirements are to track average response time exceeding 2 seconds, invoke an SMS-based action group, and suppress alerts during a specific maintenance window. The correct solution is to use a Metric alert for the response time metric, configure an appropriate action group for SMS notifications, and create an Alert Processing Rule to stop alert notifications during the scheduled maintenance.
- A. Correct.
This option aligns with all requirements: a Metric alert rule monitoring average response time over 5 minutes, an action group with SMS, and an Alert Processing Rule to suppress during maintenance.
- B. Incorrect.
This option sets up a Log alert rather than a Metric alert, specifies email instead of SMS, and uses a scheduled query rule, which doesn’t precisely target the maintenance window as required.
- C. Incorrect.
This option leaves the threshold unspecified and relies on blocking traffic rather than properly suppressing the alert during maintenance, which does not meet the scenario requirements.
- D. Incorrect.
This option monitors CPU usage instead of average response time and uses a runbook schedule instead of an Alert Processing Rule. It doesn’t fulfill the need for suppressing notifications specifically for Saturdays 2 AM to 3 AM.