CertLumen

Microsoft Azure Administrator (AZ-104) · Section 5 · 13% of the exam

Interpret metrics in Azure Monitor

One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Monitor and maintain Azure resources”. Here is what it covers, the points to remember and a question to try.

What it covers

Azure Monitor keeps two kinds of data: numeric metrics and text-like logs. This lesson shows which data is collected for free, how diagnostic settings and data collection rules send the rest to a Log Analytics workspace, how long each store keeps data, and how to answer questions with Kusto Query Language (KQL).

Points to remember

  • Platform metrics and the activity log are collected automatically and free; resource logs and guest data are not.
  • Platform metrics: 1-minute frequency, kept 93 days, one chart queries at most 30 days.
  • Activity log: subscription-level control-plane events, kept 90 days; export it with a diagnostic setting for longer retention.
  • A diagnostic setting sends logs and AllMetrics to a Log Analytics workspace, a storage account, Event Hubs or a partner; up to 5 per resource, one destination per type in each.
  • Storage and Event Hubs destinations must be in the same region as a regional resource; allow trusted Microsoft services when a firewall is on.

Try a question

A support engineer needs the CPU history of an Azure virtual machine from 60 days ago. Nobody ever created a diagnostic setting for the VM. What can the engineer do?

  1. ANothing, because platform metrics are kept for only 30 days unless a diagnostic setting exists.
  2. BOpen Metrics explorer for the VM and pan the chart back, because platform metrics are kept for 93 days.
  3. CQuery the AzureActivity table in a Log Analytics workspace, because the activity log stores a CPU sample for every VM every minute.
  4. DRestore the VM from backup and read the performance counters from the restored copy.
Show the answer

B. Platform metrics are collected automatically, at no cost, every minute and are retained for 93 days. A single Metrics explorer chart can query at most 30 days, so the engineer pans the time window back to reach day 60. A diagnostic setting is needed only to keep metrics longer or to query them with KQL.

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

In the course

The lesson Azure Monitor metrics, logs and KQL teaches this objective (about 45 minutes), and 12 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 81 objectives · Next objective →