nerdexam
MicrosoftMicrosoft

AZ-400 · Question #447

AZ-400 Question #447: Real Exam Question with Answer & Explanation

The correct answer is C: startup.cs. Add AddApplicationInsightsTelemetry() to your startup.cs or program.cs class. The choice depends on your .NET Core version. https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net- core?tabs=netcorenew%2Cnetcore6#enable-application-insights-server-side-telemetry-no-visu

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

Question

You use Azure Pipelines to build and deploy an app named App1. You plan to monitor App1 by using Application Insights. You create an Application Insights instance named AI1. You need to configure App1 to use AI1. Which file should you modify?

Options

  • Aappsettings.json
  • BlaunchSettings.json
  • Cstartup.cs
  • Dproject.json

Explanation

Add AddApplicationInsightsTelemetry() to your startup.cs or program.cs class. The choice depends on your .NET Core version. https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net- core?tabs=netcorenew%2Cnetcore6#enable-application-insights-server-side-telemetry-no-visual-

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions