Application Insights – Metrics, Logs and Traces · AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions
An application sends request and trace telemetry to a workspace-based Application Insights resource. You need to find failed requests together with e…
Practice question from Application Insights – Metrics, Logs and Traces (AZ-204: Developing Solutions for Microsoft Azure Monitor and Troubleshoot Azure Solutions), with the correct answer and a step-by-step solution.
medium · MCQ · Q-7291B8
An application sends request and trace telemetry to a workspace-based Application Insights resource. You need to find failed requests together with error-level traces produced during the same operation. Which Kusto query correctly correlates the two telemetry types?
- A.AppRequests | where Success == false | project OperationId, RequestName=Name, RequestTime=TimeGenerated | join kind=inner (AppTraces | where SeverityLevel >= 3 | project OperationId, TraceTime=TimeGenerated, Message) on OperationIdCorrect answer
- B.AppRequests | where Success == false | join kind=inner (AppTraces | where SeverityLevel >= 3) on Name
- C.AppRequests | where Success == false | project OperationId | union AppTraces | where SeverityLevel >= 3
- D.AppTraces | where SeverityLevel == "Error" | join kind=inner (AppRequests | where Success == false) on Message
Solution
Application Insights uses OperationId to correlate requests and traces belonging to the same distributed operation. In AppTraces, numeric severity values use 3 for Error, so the query filters failed requests, filters error-level traces, and joins both sets on OperationId.
More from Application Insights – Metrics, Logs and Traces
- A production ASP.NET Core API uses Application Insights. The operations team wants a dashboard showing the number of failed requests and th…
- A multi-instance .NET service must publish a reliable count of checkout attempts. Adaptive sampling is enabled for request and trace teleme…
- A .NET worker records one CPU-utilization value every second and needs an accurate one-minute average in Application Insights Metrics Explo…
- An ASP.NET Core application sends informational traces with a custom property named Region. You need a KQL query that returns only trace me…
Practise more Monitor and Troubleshoot Azure Solutions
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed