Question 409 of 975

MS-102 Practice Question: Manage security and threats by using Microsoft Defender XDR

This MS-102 practice question tests your understanding of manage security and threats by 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: deviceNetworkEvents tracks outbound and inbound network connections.. 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 is creating a custom detection rule in Microsoft 365 Defender Advanced Hunting. The rule should trigger when a device makes an outbound connection to a known malicious IP address, and within 10 minutes, a process with suspicious command-line arguments is started on the same device. Which two Advanced Hunting tables must be joined using a KQL query to create this detection?

Question 1mediummulti select
Full question →

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

DeviceNetworkEvents and DeviceProcessEvents.

Option A is correct because the detection rule requires correlating outbound network connections (DeviceNetworkEvents) with process creation events (DeviceProcessEvents) on the same device within a 10-minute window. The KQL query would join these two tables on the DeviceId field and use a time filter to ensure the process event occurs within 10 minutes after the network event, enabling the detection of post-connection malicious activity.

Key principle: DeviceNetworkEvents tracks outbound and inbound network connections.

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 and DeviceProcessEvents.

    Why this is correct

    DeviceNetworkEvents contains outbound connections with remote IPs; DeviceProcessEvents contains process start details including command line. Joining on DeviceId and timestamp enables correlation.

    Related concept

    DeviceNetworkEvents tracks outbound and inbound network connections.

  • DeviceEvents and DeviceLogonEvents.

    Why it's wrong here

    DeviceEvents includes various events but not process creation details, and DeviceLogonEvents is for sign-in events, not process or network events.

  • DeviceProcessEvents and DeviceFileEvents.

    Why this is correct

    DeviceFileEvents is for file creation/modification, which is not directly relevant to network connections or process command lines.

    Related concept

    DeviceNetworkEvents tracks outbound and inbound network connections.

  • DeviceNetworkEvents and DeviceRegistryEvents.

    Why it's wrong here

    DeviceRegistryEvents tracks registry changes, not process creation, so this join would not detect the required process start.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Microsoft often tests the misconception that DeviceEvents (which includes security alerts) can substitute for DeviceNetworkEvents, but DeviceEvents lacks the granular outbound connection details needed for IP-based detection rules.

Detailed technical explanation

How to think about this question

Under the hood, the Advanced Hunting schema in Microsoft 365 Defender uses DeviceNetworkEvents to log outbound connections with fields like RemoteIP, RemotePort, and Protocol, while DeviceProcessEvents captures ProcessCommandLine, FileName, and ProcessId. A KQL join on DeviceId with a where clause on Timestamp (e.g., | where TimeGenerated between (NetworkTime .. NetworkTime + 10m)) ensures temporal proximity. In real-world scenarios, this pattern detects post-exploitation behavior like a reverse shell connecting to a C2 server, followed by a malicious script execution (e.g., PowerShell with encoded commands).

KKey Concepts to Remember

  • DeviceNetworkEvents tracks outbound and inbound network connections.
  • DeviceProcessEvents records process creation, termination, and command-line arguments.
  • Advanced Hunting uses KQL to query and join multiple data tables.
  • Correlation across tables requires joining on common identifiers like DeviceId and time-based conditions.

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

DeviceNetworkEvents tracks outbound and inbound network connections.

Real-world example

How this comes up in practice

A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.

What to study next

Got this wrong? Here's your next step.

Review deviceNetworkEvents tracks outbound and inbound network connections., then practise related MS-102 questions on the same topic to reinforce the concept.

Related practice questions

Related MS-102 practice-question pages

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

Practice this exam

Start a free MS-102 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 MS-102 question test?

Manage security and threats by using Microsoft Defender XDR — This question tests Manage security and threats by using Microsoft Defender XDR — DeviceNetworkEvents tracks outbound and inbound network connections..

What is the correct answer to this question?

The correct answer is: DeviceNetworkEvents and DeviceProcessEvents. — Option A is correct because the detection rule requires correlating outbound network connections (DeviceNetworkEvents) with process creation events (DeviceProcessEvents) on the same device within a 10-minute window. The KQL query would join these two tables on the DeviceId field and use a time filter to ensure the process event occurs within 10 minutes after the network event, enabling the detection of post-connection malicious activity.

What should I do if I get this MS-102 question wrong?

Review deviceNetworkEvents tracks outbound and inbound network connections., then practise related MS-102 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

DeviceNetworkEvents tracks outbound and inbound network connections.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

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.

Loading comments…

Sign in to join the discussion.

This MS-102 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 MS-102 exam.