- A
DeviceNetworkEvents | where RemoteIP == 'user@contoso.com' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Why wrong: DeviceNetworkEvents tracks network connections, not logon events. The RemoteIP filter with email is also invalid.
- B
IdentityLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Why wrong: IdentityLogonEvents captures logon events from Microsoft Entra ID and other identity providers, but not Windows interactive logons on devices. DeviceLogonEvents is the correct table for local device logons.
- C
DeviceLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Correct. This query filters for the user's interactive logons, groups by 10-minute windows, counts distinct DeviceNames, and returns windows where the count exceeds 5.
- D
DeviceLogonEvents | where AccountUpn == 'user@contoso.com' | summarize count() by DeviceName, bin(Timestamp, 10m) | where count_ > 5
Why wrong: This summarizes by DeviceName and time, giving count per device. It does not count the number of distinct devices per time window. The condition would filter for a single device with many logons, not multiple devices.
SC-200 Mitigate threats using Microsoft Defender XDR Practice Question
This SC-200 practice question tests your understanding of mitigate threats using microsoft defender xdr. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: deviceLogonEvents tracks logon activity directly on endpoints.. 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.
A security analyst uses advanced hunting in Microsoft 365 Defender to investigate a potential lateral movement attack. The analyst suspects that an attacker used stolen credentials to authenticate to multiple workstations via RDP. Which KQL query would return a list of devices where a single user account (user@contoso.com) had successful interactive logons on more than 5 distinct devices within a 10-minute window?
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
DeviceLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Option C is correct because DeviceLogonEvents is the Microsoft 365 Defender table that captures logon events on devices, including RDP interactive logons. The query filters for the specific user account and interactive logon type, then uses summarize with dcount(DeviceName) by bin(Timestamp, 10m) to count distinct devices within each 10-minute window, and finally filters for windows where the distinct device count exceeds 5, which matches the lateral movement scenario.
Key principle: DeviceLogonEvents tracks logon activity directly on endpoints.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
DeviceNetworkEvents | where RemoteIP == 'user@contoso.com' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Why it's wrong here
DeviceNetworkEvents tracks network connections, not logon events. The RemoteIP filter with email is also invalid.
- ✗
IdentityLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Why it's wrong here
IdentityLogonEvents captures logon events from Microsoft Entra ID and other identity providers, but not Windows interactive logons on devices. DeviceLogonEvents is the correct table for local device logons.
- ✓
DeviceLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5
Why this is correct
Correct. This query filters for the user's interactive logons, groups by 10-minute windows, counts distinct DeviceNames, and returns windows where the count exceeds 5.
Related concept
DeviceLogonEvents tracks logon activity directly on endpoints.
- ✗
DeviceLogonEvents | where AccountUpn == 'user@contoso.com' | summarize count() by DeviceName, bin(Timestamp, 10m) | where count_ > 5
Why it's wrong here
This summarizes by DeviceName and time, giving count per device. It does not count the number of distinct devices per time window. The condition would filter for a single device with many logons, not multiple devices.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse DeviceLogonEvents with IdentityLogonEvents or DeviceNetworkEvents, mistakenly thinking network events or identity provider logs can reveal device-level interactive logon patterns, but only DeviceLogonEvents contains the necessary fields (AccountUpn, LogonType, DeviceName) for this specific lateral movement detection.
Detailed technical explanation
How to think about this question
The DeviceLogonEvents table in Microsoft 365 Defender includes logon events from Windows security events (Event ID 4624) and supports filtering by LogonType values such as 2 (Interactive), 10 (RemoteInteractive/RDP), and 3 (Network). Using dcount() with bin() is critical here because it counts distinct devices per time window, which directly identifies a single user authenticating to multiple machines—a hallmark of lateral movement. In real-world attacks, an attacker may use stolen credentials to RDP to several workstations in quick succession to move laterally and escalate privileges.
KKey Concepts to Remember
- DeviceLogonEvents tracks logon activity directly on endpoints.
- LogonType 'Interactive' includes RDP sessions.
- dcount() is used to count distinct values within a group.
- bin() groups events into specified time windows.
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
DeviceLogonEvents tracks logon activity directly on endpoints.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Review deviceLogonEvents tracks logon activity directly on endpoints., then practise related SC-200 questions on the same topic to reinforce the concept.
- →
Mitigate threats using Microsoft Defender XDR — study guide chapter
Learn the concepts, then practise the questions
- →
Mitigate threats using Microsoft Defender XDR practice questions
Targeted practice on this topic area only
- →
All SC-200 questions
1,639 questions across all exam domains
- →
Microsoft Security Operations Analyst SC-200 study guide
Full concept coverage aligned to exam objectives
- →
SC-200 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SC-200 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Manage a security operations environment practice questions
Practise SC-200 questions linked to Manage a security operations environment.
Respond to security incidents practice questions
Practise SC-200 questions linked to Respond to security incidents.
Perform threat hunting practice questions
Practise SC-200 questions linked to Perform threat hunting.
Mitigate threats using Microsoft Defender XDR practice questions
Practise SC-200 questions linked to Mitigate threats using Microsoft Defender XDR.
Mitigate threats using Microsoft Defender for Cloud practice questions
Practise SC-200 questions linked to Mitigate threats using Microsoft Defender for Cloud.
Mitigate threats using Microsoft Sentinel practice questions
Practise SC-200 questions linked to Mitigate threats using Microsoft Sentinel.
SC-200 fundamentals practice questions
Practise SC-200 questions linked to SC-200 fundamentals.
SC-200 scenario practice questions
Practise SC-200 questions linked to SC-200 scenario.
SC-200 troubleshooting practice questions
Practise SC-200 questions linked to SC-200 troubleshooting.
Practice this exam
Start a free SC-200 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 SC-200 question test?
Mitigate threats using Microsoft Defender XDR — This question tests Mitigate threats using Microsoft Defender XDR — DeviceLogonEvents tracks logon activity directly on endpoints..
What is the correct answer to this question?
The correct answer is: DeviceLogonEvents | where AccountUpn == 'user@contoso.com' and LogonType == 'Interactive' | summarize dcount(DeviceName) by bin(Timestamp, 10m) | where dcount_DeviceName > 5 — Option C is correct because DeviceLogonEvents is the Microsoft 365 Defender table that captures logon events on devices, including RDP interactive logons. The query filters for the specific user account and interactive logon type, then uses summarize with dcount(DeviceName) by bin(Timestamp, 10m) to count distinct devices within each 10-minute window, and finally filters for windows where the distinct device count exceeds 5, which matches the lateral movement scenario.
What should I do if I get this SC-200 question wrong?
Review deviceLogonEvents tracks logon activity directly on endpoints., then practise related SC-200 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
DeviceLogonEvents tracks logon activity directly on endpoints.
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 →
Keep practising
More SC-200 practice questions
- An organization uses Microsoft 365 Defender. During an incident, the analyst wants to automatically isolate a compromise…
- A security analyst is preparing to use a Jupyter notebook for threat hunting in Microsoft Sentinel. Which of the followi…
- An organization has enabled enhanced security features for a hybrid infrastructure including SQL servers on-premises and…
- A phishing email was delivered to several users. The analyst wants to find all messages in the campaign, see delivery ac…
- A company uses Microsoft Defender for Cloud and wants to automatically ensure that all Azure virtual machines have a spe…
- A company uses Microsoft Defender for Cloud and wants to automatically remediate non-compliant Azure resources by deploy…
Last reviewed: Jun 11, 2026
This SC-200 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 SC-200 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.