You have an Azure App Service named App1. You need to configure a diagnostic setting for App1 to meet the following requirements:
- Retain App Service HTTP logs for a minimum of 365 days at the lowest possible cost.
- Perform interactive analysis of performance metrics using Kusto Query Language (KQL) queries.
Which two destinations should you configure in the diagnostic setting? Select two.
- A Log Analytics workspaceAnswer
- An Azure Storage accountAnswer
- CAn Azure Event Hub
- DAn Azure Recovery Services vault
Answer
Configure a Log Analytics workspace for KQL query capabilities, and an Azure Storage account for low-cost, long-term 365-day retention.
Configuring a Log Analytics workspace allows you to run interactive Kusto Query Language (KQL) queries on diagnostic data. Configuring an Azure Storage account allows you to store the diagnostic logs for long-term archiving (such as 365 days) at a lower cost than active Log Analytics retention.
Step-by-Step Solution
Key Concept
Azure Monitor diagnostic settings support sending platform logs and metrics to a Log Analytics workspace (for querying and analysis), an Azure Storage account (for archiving), an Event Hub (for streaming), or Azure Monitor Metrics.
Estimated Time:1m 30s