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.)
- Create an action group that contains an Email receiver and an Azure Function receiver.Answer
- Create a metric alert rule that monitors the ActiveMessages metric of the queue.Answer
- CCreate an activity log alert rule that monitors the namespace write operations.
- DCreate 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
Key Concept
Azure Monitor Metric Alerts and Action Group Receivers