You run an ASP.NET Core 6 API on Windows App Service with Application Insights auto-instrumentation enabled. You need code-level snapshots when exceptions occur, with minimal performance overhead and no code changes. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: In the Application Insights resource, enable Snapshot Debugger (Collect .NET snapshots), then restart the App Service.
Why this is the answer
Enabling Snapshot Debugger directly in the Application Insights resource and restarting the App Service is the correct approach for obtaining code-level snapshots on exceptions with auto-instrumentation and minimal performance impact. This feature is designed to work with existing auto-instrumentation without requiring code changes. Adding the Microsoft.ApplicationInsights.SnapshotCollector NuGet package and configuring it in Startup would require code changes, which the prompt explicitly states to avoid. Enabling Application Insights Profiler focuses on performance profiling, not exception snapshots, and setting sampling to 100% would incur significant performance overhead. Live Metrics Stream provides real-time telemetry but does not capture code-level snapshots for debugging exceptions.
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