mediummulti selectObjective-mapped

A help desk analyst needs a KQL query that identifies each VM's most recent heartbeat so computers can be flagged if their last check-in is older than 20 minutes. Which two KQL elements should be used? Select two.

Question 1mediummulti select
Full question →

A help desk analyst needs a KQL query that identifies each VM's most recent heartbeat so computers can be flagged if their last check-in is older than 20 minutes. Which two KQL elements should be used? Select two.

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

Query the Heartbeat table, because it stores the heartbeat records for Azure VMs.

Heartbeat is the log source that records the VM check-in data required for this troubleshooting query.

B

Best answer

Summarize max(TimeGenerated) by Computer to get the most recent heartbeat per VM.

Summarizing the maximum timestamp per computer produces the latest heartbeat time needed for comparison.

C

Distractor review

Join the results to AzureActivity to calculate service health.

AzureActivity tracks control-plane operations, not VM heartbeat timestamps, so it is not needed here.

D

Distractor review

Filter where TimeGenerated is older than 20 minutes before summarizing.

Filtering rows first can drop newer heartbeat records and prevent the query from finding the latest check-in correctly.

E

Distractor review

Use the Perf table because it stores heartbeat timestamps.

Perf contains performance counters, not the heartbeat records that show whether a VM has checked in recently.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

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?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: Query the Heartbeat table, because it stores the heartbeat records for Azure VMs. — A correct heartbeat query must start with the Heartbeat table and then aggregate by computer to determine the latest timestamp for each VM. Using `summarize max(TimeGenerated) by Computer` gives a last-seen value that can then be compared with an age threshold such as 20 minutes. This pattern is common in Log Analytics because it turns many event rows into one current-status row per computer, which is easier to alert on and troubleshoot. Why others are wrong: AzureActivity is about management-plane events, not guest health heartbeats. Filtering on old timestamps before summarizing can produce misleading results because it removes recent rows that prove the VM is still connected. The Perf table is useful for counters like CPU and memory, but it does not hold heartbeat records. Those distractors look plausible, yet they do not produce a reliable last-seen view per VM.

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.