AZ-204 · Question #604
You develop an ASP. Net Core application by integrating the Application Insights SDK into your solution. The application sends a very high rate of telemetry in a short time interval. You observe a…
The correct answer is B. Disable adaptive sampling. Enable and configure the fixed-rate sampling module. To address high telemetry volume, costs, and ingestion errors while preserving statistical correctness and correlation in Application Insights, configure sampling within the SDK.
Question
Options
- AConfigure a Log Analytics workspace data collection rule (DCR). Use a Kusto Query Language
- BDisable adaptive sampling. Enable and configure the fixed-rate sampling module.
- CSet a daily cap on the Log Analytics workspace. Create an Activity log alert rule.
- DConfigure the TelemetryConfiguration object in the instrumented code. Increase the metric
How the community answered
(19 responses)- A5% (1)
- B79% (15)
- C11% (2)
- D5% (1)
Why each option
To address high telemetry volume, costs, and ingestion errors while preserving statistical correctness and correlation in Application Insights, configure sampling within the SDK.
Data collection rules (DCRs) are primarily used for collecting logs into Log Analytics, not for reducing telemetry traffic generated by the Application Insights SDK at the source. KQL is for querying data, not for ingestion control.
Enabling and configuring the fixed-rate sampling module in the Application Insights SDK directly reduces the volume of telemetry data sent, thereby lowering traffic, data costs, and storage costs. Sampling is designed to preserve statistically correct analysis and ensures correlation by sampling related items together, addressing all specified requirements for high telemetry rates.
A daily cap on a Log Analytics workspace stops data ingestion once reached, leading to data loss and preventing statistically correct analysis, rather than intelligently reducing traffic from the source. It does not reduce the telemetry traffic generated by the application.
While `TelemetryConfiguration` is used for configuring sampling, 'increase the metric' is vague and counterproductive to the goal of reducing telemetry traffic. Configuring sampling involves setting a percentage, not 'increasing the metric.'
Concept tested: Application Insights telemetry sampling
Source: https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling
Topics
Community Discussion
No community discussion yet for this question.