easymultiple choiceObjective-mapped

A VM named VM01 stopped sending Heartbeat records to Log Analytics 15 minutes ago. Which KQL query should you run to confirm the VM's recent heartbeat entries?

Question 1easymultiple choice
Full question →

A VM named VM01 stopped sending Heartbeat records to Log Analytics 15 minutes ago. Which KQL query should you run to confirm the VM's recent heartbeat entries?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Heartbeat | where Computer == "VM01" and TimeGenerated > ago(15m)

This query filters the Heartbeat table for VM01 entries from the last 15 minutes.

B

Distractor review

AzureActivity | where ResourceProviderValue == "Microsoft.Compute/virtualMachines"

This query reads activity logs, not heartbeat data from Log Analytics.

C

Distractor review

Heartbeat | summarize count() by Computer

This query counts heartbeats, but it does not limit results to the last 15 minutes.

D

Distractor review

Perf | where CounterName == "% Processor Time"

This query looks at performance counters, not the heartbeat table used for agent health.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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.

Related practice questions

Related AZ-104 practice-question pages

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

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Heartbeat | where Computer == "VM01" and TimeGenerated > ago(15m) — The Heartbeat table is used to verify that a machine is still reporting into Log Analytics. Filtering by Computer isolates VM01, and using TimeGenerated > ago(15m) limits the results to the last 15 minutes. This makes the query suitable for quickly checking whether recent heartbeat records exist before building an alert or investigating an agent communication issue. Why others are wrong: AzureActivity contains management events such as create and delete actions, not heartbeat telemetry. The summarize query only counts rows and does not verify recency. The Perf table stores performance metrics like processor time, which is different from the heartbeat signal used to confirm connectivity and agent reporting.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.