How to Monitor Real-Time CPU and Memory Usage of an Azure VM with Azure Monitor Metrics
You need to monitor the real-time CPU utilization of an Azure virtual machine. Which Azure Monitor feature is designed for this purpose?
Quick Answer
The answer is Azure Monitor Metrics, which is the correct feature for monitoring real-time CPU utilization of an Azure VM because it collects and stores numeric time-series data at near-real-time intervals—typically every minute for Azure VMs—making it lightweight and low-latency for tracking CPU usage without the overhead of log ingestion. On the Microsoft Azure Developer Associate AZ-204 exam, this tests your ability to distinguish between Azure Monitor Metrics, designed for real-time performance data, and Azure Monitor Logs (Log Analytics), which is better suited for complex queries and historical analysis. A common trap is choosing Logs because it offers richer querying, but remember that Metrics is purpose-built for real-time dashboards and alerts. Memory tip: think “Metrics = Numbers in real time, Logs = Text over long time.”
⚠ Common exam trap
Watch out — candidates often confuse 'real-time monitoring' with 'log-based analysis' and select Logs (Option B), not realizing that Metrics are specifically designed for low-latency, numeric performance data like CPU utilization, while Logs are for text-based events with higher latency.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Metrics
Azure Monitor Metrics is the correct feature because it collects and stores numeric time-series data from Azure resources, including CPU utilization, at near-real-time intervals (typically every 1 minute for Azure VMs). Metrics are lightweight, low-latency, and designed for real-time monitoring and alerting, making them ideal for tracking CPU usage without the overhead of log ingestion.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Metrics
Why this is correct
Metrics provide real-time numerical values such as CPU usage, ideal for monitoring performance.
- ✗
Logs
Why it's wrong here
Logs are best for detailed event analysis and searching, not real-time numerical monitoring.
- ✗
Alerts
Why it's wrong here
Alerts trigger notifications based on metric conditions, but do not display the metric values in real-time.
- ✗
Workbooks
Why it's wrong here
Workbooks create interactive reports but are not the primary tool for real-time metric viewing.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AZ-204
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. You need to monitor the CPU and memory usage of an Azure Virtual Machine (VM) over the last 30 days. Which Azure service should you use?
easy- A.Azure Service Health
- B.Azure Advisor
- ✓ C.Azure Monitor Metrics
- D.Azure Log Analytics
Why C: Azure Monitor Metrics is the correct service because it collects and stores numerical performance data (such as CPU and memory utilization) from Azure resources, including VMs, at near-real-time intervals and retains it for up to 93 days. This allows you to query and visualize metrics over the last 30 days using the Azure portal, REST API, or CLI, directly meeting the requirement without additional configuration.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.