Question 301 of 194
Scheduled Query Rule for Custom Detection of Azure VM with Public IP
A security operations team uses Microsoft Sentinel. They want to create a custom analytics rule that detects when an Azure virtual machine is created with a public IP address that is not in an approved list. Which type of rule should they use?
Quick Answer
The answer is a scheduled query rule. This is the correct choice because it allows you to define a KQL query that runs on a recurring schedule—such as every five minutes—to detect when an Azure VM is created with a public IP not in an approved list, using AzureActivity logs or Azure Resource Graph for periodic evaluation. On the Microsoft Azure Security Engineer Associate AZ-500 exam, this scenario tests your understanding of custom detection logic in Microsoft Sentinel, where scheduled query rules are the go-to for proactive, time-based monitoring, unlike NRT or fusion rules which serve different purposes. A common trap is confusing scheduled rules with analytics rules that trigger on specific events only; remember that scheduled rules are for recurring checks, not one-off alerts. Memory tip: think “Schedule = Scan,” meaning the rule scans logs on a timer to catch unauthorized public IPs.
⚠ Common exam trap
Watch out — candidates often confuse NRT rules with scheduled query rules, assuming NRT's lower latency is always better, but NRT rules lack the ability to reference external data sources like watchlists for dynamic approved IP comparisons.
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
✓
Scheduled query rule
A scheduled query rule is the correct choice because it allows you to define a KQL query that runs on a recurring schedule (e.g., every 5 minutes) to detect when an Azure VM is created with a public IP not in an approved list. This rule type is designed for custom detection logic that requires periodic evaluation of log data, such as AzureActivity logs or Azure Resource Graph, making it ideal for this scenario.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Scheduled query rule
Why this is correct
Correct. Scheduled query rules allow you to run a KQL query on a schedule and create incidents based on the results. This is ideal for checking new VM creations against an approved IP list.
- ✗
NRT rule
Why it's wrong here
An NRT (Near-Real-Time) rule is not ideal here because its primary purpose is to detect threats with minimal latency, typically within minutes. While it could technically detect the VM creation, the scenario doesn't necessitate such immediate detection, and the overhead for near-real-time processing is unnecessary. It's tempting because NRT rules are commonly used for active threat hunting, but for periodic checks against an approved list, a scheduled rule offers better resource optimisation.
- ✗
Anomaly rule
Why it's wrong here
Anomaly rules use machine learning to detect unusual patterns, not static list matching. They are not suitable for checking against a fixed approved IP list.
- ✗
Fusion rule
Why it's wrong here
Fusion rules correlate multiple alerts from different sources to detect multi-stage attacks. They are not used for single-event detection like a new VM creation.
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 →
Same concept, more angles
1 more way this is tested on AZ-500
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A security operations team uses Microsoft Sentinel. They want to create a rule that generates an incident when an Azure virtual machine is deployed with a public IP address that is not in a predefined approved list. The rule should run every hour and query Azure Activity logs. Which type of analytics rule should they create?
medium- ✓ A.Scheduled query rule
- B.NRT (Near-Real-Time) rule
- C.Anomaly rule
- D.Fusion rule
Why A: A scheduled query rule is correct because the requirement specifies a rule that runs every hour and queries Azure Activity logs. Scheduled query rules in Microsoft Sentinel are designed for periodic, time-based queries against log data, such as Azure Activity logs, and can generate incidents based on predefined conditions like detecting a VM deployment with an unapproved public IP. This aligns perfectly with the need for a recurring, non-real-time check.
Last reviewed: Jun 11, 2026
This AZ-500 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-500 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.