You are developing a microservice named `OrderProcessing` that runs on an Azure App Service and sends telemetry to Azure Application Insights. You need to implement an Azure Monitor alert rule that triggers whenever the number of critical exceptions (where the `severityLevel` is ) exceeds within any -minute window. The alert evaluation must run every minutes. To minimize query execution latency and data scanning costs, you must configure the query and rule settings efficiently.
Which configuration should you implement?
- Configure a Log Search Alert rule with the KQL query `exceptions | where cloud_RoleName == "OrderProcessing" and severityLevel == 3`, set the Measure to Table rows, set the Aggregation granularity (Period) to minutes, and set the Evaluation frequency to minutes.Cevap
- BConfigure a Log Search Alert rule with the KQL query `exceptions | where timestamp > ago(24h) and cloud_RoleName == "OrderProcessing" and severityLevel == 3`, set the Measure to Table rows, set the Aggregation granularity (Period) to minutes, and set the Evaluation frequency to minutes.
- CConfigure an Action Group with an Autoscale action that references the `Exceptions` metric on the App Service, setting the scale-out threshold to , the Aggregation granularity to minutes, and the Evaluation frequency to minutes.
- DConfigure a Log Search Alert rule using the KQL query `exceptions | where cloud_RoleName == "OrderProcessing" and severityLevel == 3`, and configure the Action Group's webhook action to retrieve its destination URL from a Key Vault secret using the reference syntax `@Microsoft.KeyVault(SecretUri=...)` in the Action Group settings.
Cevap
Configure a Log Search Alert rule with a KQL query that filters the exceptions by cloud role name and severity level, setting the measure to Table rows, the aggregation granularity to 15 minutes, and the evaluation frequency to 5 minutes.
The correct configuration utilizes a Log Search Alert rule with a KQL query that filters for the specific cloud role and severity level, relying on Azure Monitor to automatically apply the time filter on the `timestamp` column based on the configured aggregation granularity ( minutes) and evaluation frequency ( minutes). This prevents redundant query execution and minimizes log scanning costs.
Adım Adım Çözüm
Anahtar Kavram
Azure Monitor Log Search Alerts and Action Groups configuration