You are developing an ASP.NET Core application and must capture telemetry to establish an application utilization baseline while minimizing storage costs. Which two actions should you perform in the application code?
Choose an answer
Tap an option to check your answer.
Correct answer: From the application code, add Azure Application Insights telemetry., From the application code, disable adaptive sampling..
Why this is the answer
To capture telemetry and establish an application utilization baseline, you must first integrate Azure Application Insights into your application. This is achieved by adding the necessary Application Insights telemetry code from within the application. While adaptive sampling is typically enabled by default to optimize data ingestion and minimize costs, the requirement to establish an application utilization baseline implies a need for a more consistent and complete dataset, at least initially. Disabling adaptive sampling ensures that a higher percentage of telemetry is collected, providing a more comprehensive view for baseline establishment, even if it temporarily increases storage costs. Once the baseline is established, adaptive sampling can be re-enabled to manage costs effectively. Modifying the ApplicationInsights.config file is an older method for configuring Application Insights; modern ASP.NET Core applications typically configure it programmatically.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed