easymultiple choiceObjective-mapped

Exhibit

KQL draft:
Heartbeat
| __________
| summarize LastSeen = max(TimeGenerated) by Computer

Requirement: show only records from the last 30 minutes before summarizing.

Based on the exhibit, which KQL clause should replace the blank to show only heartbeat records from the last 30 minutes?

Question 1easymultiple choice
Full question →

Based on the exhibit, which KQL clause should replace the blank to show only heartbeat records from the last 30 minutes?

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

Distractor review

project Computer, TimeGenerated

Project changes the columns returned, but it does not limit the records by time.

B

Best answer

where TimeGenerated >= ago(30m)

The where clause filters rows before summarizing, and ago(30m) is the KQL function that represents the last 30 minutes from the current time. This is the correct way to restrict the Heartbeat table to recent records before calculating the most recent check-in for each computer. It is a standard operational troubleshooting pattern in Log Analytics.

C

Distractor review

extend TimeWindow = 30m

Extend creates a new calculated column, but it does not filter the table to recent records.

D

Distractor review

sort by TimeGenerated desc

Sorting changes the order of results, but it does not exclude older heartbeat records from the query.

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: where TimeGenerated >= ago(30m) — The query needs a filter before aggregation, and KQL uses the where operator for that purpose. The ago(30m) function represents a time window ending now and starting 30 minutes earlier. By filtering on TimeGenerated first, the summarize step works only with recent heartbeat records. This is a common and practical Log Analytics pattern when checking whether machines have reported in recently. Why others are wrong: Project only changes the shape of the output. Extend adds fields but does not remove old records. Sorting may help readability, but it does not narrow the dataset. The question asks for a time filter, so the where clause with ago() is the correct choice.

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.