Correct Answer: Instrument the app with Application Insights SDK, use TelemetryClient.TrackException() and TelemetryClient.TrackEvent()
Application Insights provides unified APM for Azure Functions โ automatic exception capture, distributed tracing, and custom event/metric tracking via the TelemetryClient SDK. Trac...
Correct Answer
Instrument the app with Application Insights SDK, use TelemetryClient.TrackException() and TelemetryClient.TrackEvent()
Why This Answer Is Correct
Application Insights provides unified APM for Azure Functions โ automatic exception capture, distributed tracing, and custom event/metric tracking via the TelemetryClient SDK. TrackException() captures structured exception details and TrackEvent() logs custom business events, all correlated by operation ID for end-to-end tracing.
This question evaluates your knowledge of Application Insights โ a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Application Insights is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.
You are analyzing Application Insights telemetry for your web API. You need to find all requests that took longer than 2 seconds in the last 24 hours and count them by operation name. Which tool in Application Insights should you use?
Your production Azure App Service application is experiencing intermittent slow response times that are hard to reproduce. You want to capture the exact call stack, dependencies (database queries, external API calls), and execution time automatically for every slow request without modifying source code. Which Application Insights feature should you enable?
Your web application uses Application Insights for monitoring. You want to enrich all collected telemetry (requests, exceptions, dependencies) with custom metadata, such as the current deployment slot name and the user's subscription tier, so that you can filter performance metrics in Log Analytics. Which Application Insights extensibility point should you implement?