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?

  1. 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
  2. B.AppRequests | where Success == false | join kind=inner (AppTraces | where SeverityLevel >= 3) on Name
  3. C.AppRequests | where Success == false | project OperationId | union AppTraces | where SeverityLevel >= 3
  4. 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

All of Application Insights – Metrics, Logs and Traces

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 free

Free to start · No credit card needed