nerdexam
Microsoft

AZ-400 · Question #413

You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1. Webapp1 sends telemetry data to AppInsights1. You nee

The correct answer is B. From the code repository of webapp1, modify the Startup.cs file.. The ApplicationInsights.config and .xml instructions don't apply to the .NET Core SDK. To configure .NET Core applications, follow the instructions in Application Insights for ASP.NET Core https://learn.microsoft.com/en-us/azure/azure-monitor/app/configuration-with-applicationins

Submitted by parkjh· Mar 6, 2026Implement an instrumentation strategy

Question

You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1. Webapp1 sends telemetry data to AppInsights1. You need to ensure that webapp1 sends the telemetry data at a fixed sampling rate. What should you do?

Options

  • AFrom the code repository of webapp1, modify the ApplicationInsights.config file.
  • BFrom the code repository of webapp1, modify the Startup.cs file.
  • CFrom AppInsights1, modify the Usage and estimated costs settings.
  • DFrom AppInsights1, configure the Continuous export settings.

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    71% (40)
  • C
    9% (5)
  • D
    16% (9)

Explanation

The ApplicationInsights.config and .xml instructions don't apply to the .NET Core SDK. To configure .NET Core applications, follow the instructions in Application Insights for ASP.NET Core https://learn.microsoft.com/en-us/azure/azure-monitor/app/configuration-with-applicationinsights-

Topics

#Application Insights#fixed-rate sampling#telemetry configuration#Startup.cs

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice