Setting a custom detection rule frequency to identify C2 communication within the past 14 days
You have a Microsoft 365 E5 subscription that uses Microsoft Defender XDR. The security team at your company detects command and control (C2) agent traffic on the network. Agents communicate once every 50 hours. You need to create a Microsoft Defender XDR custom detection rule that will identify compromised devices and establish a pattern of communication. The solution must meet the following requirements: • Identify all the devices that have communicated during the past 14 days. • Minimize how long it takes to identify the devices. To what should you set the detection frequency for the rule?
Community Votes
55% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Each custom detection rule frequency pairs with a fixed lookback: Every 24 hours checks the past 30 days, so it satisfies the 14-day historical identification in a single run, whereas shorter frequencies have much smaller lookback windows.
A custom detection rule must identify devices that communicated in the past 14 days and minimize identification delay; the Every 24 hours frequency uses a 30-day lookback, so every run covers the full 14-day window while keeping a simple daily cadence.
Choosing Every hour to 'minimize time' — its lookback is only a few hours, so it does not cleanly cover the 14-day historical window each run the way the 30-day lookback of the 24-hour frequency does.
Community Discussion (9 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Microsoft Defender XDR custom detection rules map each frequency to a lookback duration: Every 24 hours runs daily and checks data from the past 30 days. That 30-day lookback satisfies the requirement to identify all devices that communicated during the past 14 days on every run, and a daily cadence is sufficient given the agents beacon only once every 50 hours.Why the Other Options Are Wrong
Every 12 hours (A) checks only the past 48 hours per run, so it does not cover the full 14-day window each run. Every 3 hours (C) and Every hour (D) have even smaller lookback windows (around 12 hours and 4 hours respectively), which fragment the 14-day coverage and add unnecessary run overhead without improving the 50-hour beacon detection.Community Comment Notes
The community is split (B 56, A 28, D 17). talosDevbot, smosmo, and sapphire cite https://learn.microsoft.com/en-us/defender-xdr/custom-detection-rules#rule-frequency, confirming the 24-hour frequency's 30-day lookback. The deciding factor is that the 30-day lookback cleanly satisfies the 14-day historical identification requirement on every run.Official Reference
Related Analysis
Practice All SC-200 Questions
Access 80 questions with complete answers and detailed explanations.
View Full SC-200 Practice Test →