Question

Difficulty: MediumImplement Azure Monitor Alerts and Action Groups

You are designing a monitoring solution for a message-processing application. The application processes messages from an Azure Service Bus queue named orders-queue. You must configure Azure Monitor to trigger an alert when the number of active messages in orders-queue exceeds 1,000. When the alert is triggered, it must perform the following actions:

1. Send an email notification to the operations manager.
2. Execute an Azure Function named ScaleProcessor to increase processing capacity.

Which two configurations are required to implement this solution? (Select TWO.)

  1. Create an action group that contains an Email receiver and an Azure Function receiver.Answer
  2. Create a metric alert rule that monitors the ActiveMessages metric of the queue.Answer
  3. C
    Create an activity log alert rule that monitors the namespace write operations.
  4. D
    Create a log search alert rule that runs a KQL query on the AzureDiagnostics table every 5 minutes.

Answer

The correct configurations are to create an action group containing Email and Azure Function receivers, and to create a metric alert rule monitoring the ActiveMessages metric of the queue.
To satisfy the requirements, you need to monitor a quantitative, numerical metric (queue size) and trigger both a notification and custom automation code. The option stating to create an action group with Email and Azure Function receivers addresses the notification and execution requirements. The option stating to create a metric alert rule monitoring the ActiveMessages metric ensures that the alert fires immediately when the count exceeds 1,000.

Step-by-Step Solution

1
Define notifications and automation
An Azure Monitor action group is configured with an Email receiver pointing to the operations manager's address and an Azure Function receiver pointing to the ScaleProcessor function.
Action groups centralize the execution of notification and remediation steps triggered by alerts.
2
Configure the metric alert source
A new metric alert rule is created with the target resource set to the orders-queue within the Service Bus namespace.
This establishes the scope of the alert to monitor queue-specific metrics.
3
Set the alert condition and link the action group
The metric alert condition is set to evaluate the ActiveMessages metric using a static threshold greater than 1,000, and the rule is linked to the created action group.
This completes the alert configuration, connecting the criteria to the automated actions.

Key Concept

Azure Monitor Metric Alerts and Action Group Receivers
Rate this question