CertLumen

Microsoft DevOps Engineer Expert (AZ-400) · Section 5 · 8% of the exam

Configure Azure Monitor and Azure Monitor Logs to integrate with DevOps tools

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

Azure Monitor is the platform that stores metrics and logs for everything you run; Log Analytics is where you query them and Application Insights is its application performance monitoring feature. This lesson covers how Azure Monitor plugs into DevOps tools, how to switch on telemetry for applications, VMs, containers, storage and networks, and where to read CPU, memory, disk and network indicators.

Points to remember

  • Metrics are precomputed numeric series, logs live in a Log Analytics workspace and are queried with KQL; the activity log is free and automatic.
  • Resource logs need a diagnostic setting; platform metrics and the activity log do not.
  • Application Insights resources are workspace-based and use a connection string; code uses an OpenTelemetry distro, browsers use the JavaScript SDK.
  • Azure Monitor Agent plus a data collection rule replaced the Log Analytics (MMA) agent for guest data.
  • VM insights Map and the Dependency agent retire on 30 June 2028; build on Azure Monitor Agent instead.

Try a question

A team must be alerted when a VM stops sending data. They first built a log search alert on the Heartbeat table, but it misfires during short ingestion delays. What does Microsoft recommend to detect a lack of data reliably?

  1. AUse a metric alert, because metric data is less latent than log data
  2. BShorten the log alert frequency to 30 seconds and lower the threshold
  3. CSwitch to a smart detection alert on the VM
  4. DCreate an activity log alert for the VM's Heartbeat event
Show the answer

A. Log search alerts work best for detecting specific data. Because logs are inherently more latent than metrics, detecting an absence of data can misfire. Microsoft suggests metric alerts for this, including converting selected log data to metrics.

Written for practice in the style of the exam: never a question from the real exam.

In the course

2 lessons teach this objective: Azure Monitor, Application Insights and infrastructure telemetry, Monitoring and alerts in GitHub, Azure Pipelines and Azure Monitor (about 90 minutes), and 27 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

← Previous objective · All 86 objectives · Next objective →