The correct answer is that the Kusto query returns computers that have not sent a heartbeat in the last 5 minutes. This works because the query filters the Heartbeat table for records where TimeGenerated is older than ago(5m), meaning it selects only heartbeats that occurred before that five-minute window, and then uses distinct Computer to list each machine whose most recent heartbeat falls outside that threshold. On the Microsoft Azure Solutions Architect Expert AZ-305 exam, this pattern tests your ability to interpret Kusto queries for monitoring and health scenarios, often appearing in questions about detecting offline VMs or unresponsive agents. A common trap is misreading the less-than operator as “recent” instead of “older than,” so remember: the query finds the absence of recent data, not its presence. Memory tip: think “less than ago” means “left behind”—the heartbeat is older than the cutoff, so the VM is offline.
AZ-305 Practice Question: Design identity, governance, and monitoring solutions
This AZ-305 practice question tests your understanding of design identity, governance, and monitoring solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit.
```kusto
Heartbeat
| where TimeGenerated > ago(1h)
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat < ago(5m)
```
Refer to the exhibit. You run this Kusto query in Azure Monitor Logs. What does it return?
Refer to the exhibit.
```kusto
Heartbeat
| where TimeGenerated > ago(1h)
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat < ago(5m)
```
A
The number of heartbeats per computer in the last hour.
Why wrong: The query summarizes by max timestamp, not count.
B
Computers that sent a heartbeat in the last 5 minutes.
Why wrong: The condition is LastHeartbeat < ago(5m), meaning older than 5 minutes.
C
Computers that have not sent a heartbeat in the last 5 minutes.
The query filters for computers whose last heartbeat is older than 5 minutes.
D
The average heartbeat frequency per computer.
Why wrong: The query does not calculate frequency.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Computers that have not sent a heartbeat in the last 5 minutes.
The query uses the `Heartbeat` table and filters for heartbeats older than 5 minutes (`ago(5m)`). The `where` clause selects records where `TimeGenerated` is less than 5 minutes ago, meaning it finds heartbeats that were sent before that threshold. The `distinct Computer` then returns only computers whose most recent heartbeat is older than 5 minutes, i.e., computers that have not sent a heartbeat in the last 5 minutes. This is a common pattern for detecting unresponsive or offline machines.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The number of heartbeats per computer in the last hour.
Why it's wrong here
The query summarizes by max timestamp, not count.
✗
Computers that sent a heartbeat in the last 5 minutes.
Why it's wrong here
The condition is LastHeartbeat < ago(5m), meaning older than 5 minutes.
✓
Computers that have not sent a heartbeat in the last 5 minutes.
Why this is correct
The query filters for computers whose last heartbeat is older than 5 minutes.
Related concept
Read the scenario before looking for a memorised answer.
✗
The average heartbeat frequency per computer.
Why it's wrong here
The query does not calculate frequency.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates misread the comparison operator: `TimeGenerated < ago(5m)` selects records older than 5 minutes (not newer), leading them to incorrectly think the query returns computers that recently sent a heartbeat.
Detailed technical explanation
How to think about this question
The `Heartbeat` table in Azure Monitor Logs is populated by the Log Analytics agent (or Azure Monitor Agent) sending a heartbeat record every 5 minutes by default. The `ago(5m)` function uses the Kusto query language's time offset to create a sliding window. This query is often used in alert rules to detect when a computer has stopped reporting, as a missing heartbeat for more than 5 minutes can indicate a connectivity issue, agent failure, or system shutdown. The `distinct` operator ensures each computer is listed only once, even if it sent multiple heartbeats before the 5-minute mark.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-305 question in full detail.
Design identity, governance, and monitoring solutions — This question tests Design identity, governance, and monitoring solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Computers that have not sent a heartbeat in the last 5 minutes. — The query uses the `Heartbeat` table and filters for heartbeats older than 5 minutes (`ago(5m)`). The `where` clause selects records where `TimeGenerated` is less than 5 minutes ago, meaning it finds heartbeats that were sent before that threshold. The `distinct Computer` then returns only computers whose most recent heartbeat is older than 5 minutes, i.e., computers that have not sent a heartbeat in the last 5 minutes. This is a common pattern for detecting unresponsive or offline machines.
What should I do if I get this AZ-305 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This AZ-305 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-305 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.