Question 84 of 999

Quick Answer

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?

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.
```kusto
Heartbeat
| where TimeGenerated > ago(1h)
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat < ago(5m)
```

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

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.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-305 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-305 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-305 question test?

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

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.

Loading comments…

Sign in to join the discussion.

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.