Microsoft
AZ-400 · Question #447
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
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
How the community answered
(22 responses)- B9% (2)
- C86% (19)
- D5% (1)
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.