Microsoft DevOps Engineer Expert (AZ-400) · Section 5 · 8% of the exam
Inspect distributed tracing by using Azure Monitor Application Insights
One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Implement an instrumentation strategy”. Here is what it covers, the points to remember and a question to try.
What it covers
Collected telemetry only pays off when you can interrogate it. This lesson covers usage and application performance analysis in Application Insights, how distributed tracing stitches one transaction across services with operation IDs and the application map, and the basic Kusto Query Language operators the exam expects, with the table names for both the Application Insights and the workspace view.
Points to remember
- Application Insights experiences: Investigate (map, failures, performance, availability), Usage (users, funnels, flows, cohorts), Monitoring (alerts, metrics, logs, workbooks).
- Use percentiles and failure rate, not averages and raw counts; with sampling use sum(itemCount).
- Distributed tracing uses W3C Trace Context: operation_Id is the trace ID, operation_ParentId points to the caller.
- cloud_RoleName (AppRoleName) names the service on the application map; duplicates merge nodes.
- End-to-end transaction details shows one transaction across components; Application map shows topology, call duration and failure rate.
Try a question
A workspace-based Application Insights resource sends data to a Log Analytics workspace. You must write a query in the workspace (not in the Application Insights Logs blade) that returns failed dependency calls by target in the last day. Which query is correct?
- A
dependencies | where timestamp > ago(1d) and success == false | summarize count() by target | order by count_ desc - B
AppDependencies | where timestamp > ago(1d) and success == false | count by Target - C
AppRequests | where Success == false | summarize count() by Target - D
AppDependencies | where TimeGenerated > ago(1d) and Success == false | summarize count() by Target
Show the answer
D. The same telemetry has two naming styles. The Application Insights Logs blade uses requests, dependencies, timestamp, success; a Log Analytics workspace uses AppRequests, AppDependencies, TimeGenerated, Success. Retention for these tables is 90 days by default.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Analyzing telemetry, distributed tracing and KQL teaches this objective (about 50 minutes), and 10 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Configure Azure Monitor and Azure Monitor Logs to integrate with DevOps tools
- Configure collection of telemetry by using Azure Monitor Application Insights, Azure VM Insights, Azure Container Insights, Azure Monitor for Storage, and Azure Monitor for Networks
- Configure monitoring in GitHub, including enabling insights and creating and configuring charts
- Configure alerts for events in GitHub Actions and Azure Pipelines
- Inspect infrastructure performance indicators, including CPU, memory, disk, and network
- Analyze metrics by using collected telemetry, including usage and application performance
- Interrogate logs using basic Kusto Query Language (KQL) queries