nerdexam
Microsoft

AZ-204 · Question #91

You develop an Azure web app. You monitor performance of the web app by using Application Insights. You need to ensure the cost for Application Insights does not exceed a preset budget. What should…

The correct answer is E. Implement adaptive sampling using the Application Insights SDK. Sampling is an effective way to reduce charges and stay within your monthly quota. You can set sampling manually, either in the portal on the Usage and estimated costs page; or in the ASP.NET SDK in the .config file; or in the Java SDK in the ApplicationInsights.xml file, to…

Submitted by viktor_hu· Mar 30, 2026Monitor, troubleshoot, and optimize Azure solutions

Question

You develop an Azure web app. You monitor performance of the web app by using Application Insights. You need to ensure the cost for Application Insights does not exceed a preset budget. What should you do?

Options

  • AImplement ingestions sampling using the Application Insights SDK.
  • BSet a daily cap for the Application Insights instance.
  • CImplement ingestion sampling using the Azure portal.
  • DImplement adaptive sampling using the Azure portal.
  • EImplement adaptive sampling using the Application Insights SDK.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    3% (1)
  • D
    3% (1)
  • E
    86% (25)

Explanation

Sampling is an effective way to reduce charges and stay within your monthly quota. You can set sampling manually, either in the portal on the Usage and estimated costs page; or in the ASP.NET SDK in the .config file; or in the Java SDK in the ApplicationInsights.xml file, to also reduce the network traffic. Adaptive sampling is the default for the ASP.NET SDK. Adaptive sampling automatically adjusts to the volume of telemetry that your app sends. It operates automatically in the SDK in your web app so that telemetry traffic on the network is reduced. Incorrect Answers: B: You can use the daily volume cap to limit the data collected. To change the daily cap, in the Configure section of your Application Insights resource, in the Usage and estimated costs pane, select Daily Cap. https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling

Topics

#Application Insights#adaptive sampling#cost control#telemetry

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice