An organization is deploying a set of APIs as .NET-based Azure Functions. They want to implement both Application Insights Profiler to identify performance bottlenecks and Snapshot Debugger to analyze unhandled exceptions in production. Which of the following requirements must be met to ensure that both services are supported and that developers can inspect the diagnostic data? (Select TWO).
- Host the Function App on an Azure Functions Premium or Dedicated (App Service) plan.Cevap
- Assign the Application Insights Snapshot Debugger role to developers who need to view the captured snapshots in the Azure portal.Cevap
- CHost the Function App on a Consumption plan, which automatically runs the Profiler background agent during execution.
- DInitialize the Application Insights SDK in the application code without configuring the APPLICATIONINSIGHTS_CONNECTION_STRING application setting.
Cevap
To successfully configure and view data for both Application Insights Profiler and Snapshot Debugger, you must host the Function App on a Premium or Dedicated plan and assign the Application Insights Snapshot Debugger role to developers who need to view the captured snapshots.
The correct requirements are hosting the Function App on a Premium or Dedicated (App Service) plan and assigning the Application Insights Snapshot Debugger role to developers. Profiler requires dedicated compute resources to capture trace profiles periodically, making it unsupported on the serverless Consumption plan. Additionally, because debug snapshots capture in-memory variable values that may contain sensitive data, users must be explicitly granted the Application Insights Snapshot Debugger role to view them.
Adım Adım Çözüm
Anahtar Kavram
Application Insights Profiler requires Premium/Dedicated hosting plans, while Snapshot Debugger requires the specialized Snapshot Debugger RBAC role to view collected snapshots.