You are implementing an end-to-end monitoring and alerting solution for a new API hosted on Azure. You must configure the API to send telemetry to Application Insights, write an efficient Kusto Query Language (KQL) query to analyze exception trends over the past day, and configure an Azure Monitor Action Group to trigger a webhook that requires an API key stored in Azure Key Vault.
Which combination of configurations should you implement to meet these requirements?
- AEnable the Application Insights SDK in the API code without configuring the connection string, include in the KQL troubleshooting query, and assign the Key Vault Secrets User role to the Action Group's managed identity.
- Configure the API environment variable to send telemetry, include in the KQL troubleshooting query, and assign the Key Vault Secrets User role to the Action Group's managed identity.Cevap
- CConfigure the API environment variable to send telemetry, omit the time filter from the KQL troubleshooting query, and assign the Key Vault Secrets User role to the Action Group's managed identity.
- DConfigure the API environment variable to send telemetry, include in the KQL troubleshooting query, and configure the Action Group webhook without granting the Action Group's managed identity access to the Key Vault.
Cevap
Configure the API environment variable to send telemetry, include in the KQL troubleshooting query, and assign the Key Vault Secrets User role to the Action Group's managed identity.
The correct implementation requires routing API telemetry via the setting, specifying a time range filter (such as ) to keep the troubleshooting KQL query efficient, and assigning the Key Vault Secrets User role to the Action Group's managed identity so it can securely fetch the webhook API key.
Adım Adım Çözüm
Anahtar Kavram
Configuring Azure Monitor alerts, telemetry ingestion via connection strings, query optimization, and securing action group webhook receivers with managed identities.
Tahmini Süre:1m 30s