ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 187 - AZ-400 discussion

Report
Export

You are building an ASP.NET Core application.

You plan to create an application utilization baseline by capturing telemetry data.

You need to add code to the application to capture the telemetry data. The solution must minimize the costs of storing the telemetry data. Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point

A.
Add the <InitialSamplingPercentage>99</InitialSamplingPercentage> parameter to the ApplicationInsights.config file.
Answers
A.
Add the <InitialSamplingPercentage>99</InitialSamplingPercentage> parameter to the ApplicationInsights.config file.
B.
From the code of the application, enable adaptive sampling.
Answers
B.
From the code of the application, enable adaptive sampling.
C.
From the code of the application, add Azure Application Insights telemetry.
Answers
C.
From the code of the application, add Azure Application Insights telemetry.
D.
Add the <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond> parameter to the ApplicationInsights.config file.
Answers
D.
Add the <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond> parameter to the ApplicationInsights.config file.
E.
From the code of the application, disable adaptive sampling.
Answers
E.
From the code of the application, disable adaptive sampling.
Suggested answer: B, D

Explanation:

Sampling is a feature in Azure Application Insights. It is the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data.

The Application Insights SDK for ASP.NET Core supports both fixed-rate and adaptive sampling. Adaptive sampling is enabled by default.

D: For adaptive sampling: The volume is adjusted automatically to keep within a specified maximum rate of traffic, and is controlled via the setting MaxTelemetryItemsPerSecond. If the application produces a low amount of telemetry, such as when debugging or due to low usage, items won't be dropped by the sampling processor as long as volume is below MaxTelemetryItemsPerSecond.

Note: In ApplicationInsights.config, you can adjust several parameters in the AdaptiveSamplingTelemetryProcessor node. The figures shown are the default values:

<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling

asked 02/10/2024
Gufran Dalwai
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first