An enterprise web application hosted on Azure App Service is instrumented with Application Insights. You are implementing an Azure Monitor Log Search Alert rule to monitor server-side errors. The alert rule must trigger an Action Group if the percentage of HTTP 5xx responses exceeds of the total requests over a rolling 15-minute window, evaluated every 5 minutes.
The alert rule condition is configured with the following properties:
- Measure: Metric measurement
- Metric column: ErrorRate
- Aggregation type: Average
- Aggregation granularity (Period): 15 minutes
- Frequency of evaluation: 5 minutes
Which of the following configurations should you implement to satisfy the monitoring requirement and ensure telemetry ingestion and alert execution are successful?
- Use a KQL query that groups by 'bin(timestamp, 5m)' and projects 'timestamp' and 'ErrorRate' without any time-range filter clause, and configure the web app with the 'APPLICATIONINSIGHTS_CONNECTION_STRING' app setting.Cevap
- BUse a KQL query that filters for 'timestamp > ago(15m)' before grouping by 'bin(timestamp, 5m)', and configure the web app with the 'APPLICATIONINSIGHTS_CONNECTION_STRING' app setting.
- CUse a KQL query that groups by 'bin(timestamp, 5m)' and projects 'timestamp' and 'ErrorRate' without any time-range filter clause, and initialize the Application Insights SDK in code without setting the connection string, relying on parameterless initialization.
- DUse a KQL query that groups by 'bin(timestamp, 5m)' and projects 'timestamp' and 'ErrorRate' without any time-range filter clause, and configure the action group to use a secure webhook that retrieves its client secret from Key Vault using a key vault reference, without assigning a 'Get Secret' permission to the Azure Monitor service principal.