Data Loss Prevention (DLP)
SC-400 Exam Alignment
SC-400
Skill: Create and configure DLP policies — Understand DLP policy anatomy (rules, conditions, actions), configure DLP for Exchange, SharePoint, OneDrive, Teams, and endpoint devices, manage policy tips and user overrides, and investigate DLP alerts and policy matches in Activity Explorer.
- A DLP policy consists of locations (where to scan) + rules (conditions to match + actions to take)
- Rules are evaluated in priority order — the first rule that matches determines the action; lower priority number = higher precedence
- Know the difference between “Block” (prevent the action), “Block with override” (user can override with business justification), and “Audit” (log only)
- Endpoint DLP requires devices to be onboarded to Microsoft Defender for Endpoint AND Microsoft Purview. Available on Windows 10/11 and macOS.
🏗️ DLP Policy Anatomy
Every DLP policy has three core components: locations, rules, and settings.
| Component | What You Configure |
|---|---|
| Locations | Where the policy applies: Exchange Online, SharePoint Online, OneDrive accounts, Teams chats and channel messages, Endpoint devices (Windows/macOS), On-premises repositories, Power BI, Microsoft Fabric |
| Rules | Each rule has conditions (what to detect) + exceptions + actions (what to do on a match). A policy can have multiple rules with different thresholds and actions. |
| Policy mode | Simulation (audit only — no user-facing impact), Turn it on right away (active enforcement), or Keep it off (disabled) |
📋 DLP Rule Conditions
Rules detect sensitive content using one or more conditions. Conditions can be combined with AND/OR logic.
| Condition Type | Examples |
|---|---|
| Content contains | Sensitive information types (e.g. “Credit Card Number” with minimum confidence 75%), sensitivity labels, trainable classifiers |
| Content is shared | “With people outside my organisation” — triggers when sending externally; “Only with people inside my organisation” — triggers on internal sharing of specific content |
| Sender / Recipient | Sender is a member of a specific group; Recipient domain is / is not a specific domain; Recipient is an internal/external user |
| Count threshold | “Content contains at least X instances” — use a low threshold rule for policy tips and a high threshold rule for blocking, in the same policy |
⚡ DLP Rule Actions
| Action | What Happens | User Experience |
|---|---|---|
| Audit only | Match is logged — no action taken. No user notification. | Invisible to user — only visible in DLP reports and Activity Explorer |
| Show policy tip to user | User sees an inline notification about the policy but can still proceed | Yellow warning banner in Outlook, Word, SharePoint |
| Block | The action (send email, upload file, share link) is completely prevented | Error message shown — action cannot be completed. No override option. |
| Block with override | Action is blocked but user can override by providing a business justification or by marking as false positive | Block message with options: “Override this” or “Report as false positive” |
| Restrict access or encrypt | For SharePoint/OneDrive: removes sharing access. For email: can apply encryption automatically. | Existing shares are revoked; new shares blocked. |
| Send incident report | Sends an email alert to compliance team with details of the policy match | No user impact — admin notification only |
💡 Layered Rules Strategy
Best practice is to create multiple rules within the same DLP policy:
• Rule 1: 1–4 instances of credit card numbers → Show policy tip, send incident report
• Rule 2: 5+ instances of credit card numbers → Block with override, notify compliance team
• Rule 3: 10+ instances → Block (no override allowed), high-severity alert
Rules are evaluated in priority order — the first matching rule wins.
📱 DLP Locations in Detail
| Location | What It Covers | Key Notes |
|---|---|---|
| Exchange Online | Outbound and internal emails | DLP applies to sent messages — not to content at rest in mailboxes. Also covers shared mailboxes. |
| SharePoint Online | All files in SharePoint document libraries and lists | Scans at upload/modification and on schedule. DLP can restrict sharing links. |
| OneDrive accounts | Files in individual users’ OneDrive | Same engine as SharePoint. Can scope to specific accounts or include all users. |
| Teams chat and channel messages | Teams message bodies (text) only — not file attachments | Files in Teams are stored in SharePoint/OneDrive and covered by those locations. |
| Endpoint (Windows/macOS) | File activities on managed devices: copy to USB, upload to cloud services, print, copy to clipboard | Requires Defender for Endpoint onboarding. Works even when devices are offline. |
| On-premises repositories | File shares and SharePoint Server on-premises | Requires Microsoft Purview Information Protection scanner deployment on-premises. |
💻 Endpoint DLP
Endpoint DLP extends DLP protection to activities on Windows 10/11 and macOS devices. Unlike cloud-based DLP that monitors network traffic, Endpoint DLP monitors activities at the device level — even when the user is offline.
Monitored Endpoint Activities
| Activity | Example |
|---|---|
| Upload to cloud service or browser | User drags a file to a personal Dropbox, Google Drive, or uploads to a non-allowed website |
| Copy to USB removable media | User inserts a USB drive and copies a sensitive document to it |
| Copy to network share | User copies a file to an unmanaged network file share |
| User sends a sensitive document to any local or network printer | |
| Copy to clipboard | User copies content from a sensitive document to the Windows clipboard |
| Create an item | User saves a newly created document containing sensitive information |
| Rename an item | User renames a file containing sensitive information |
⚠️ Endpoint DLP Requirements
- Devices must be onboarded to Microsoft Defender for Endpoint
- The Microsoft Purview Compliance extension or built-in Windows Purview agent must be active
- Requires Windows 10/11 (Build 1809+) or macOS Catalina or later
- Requires Microsoft 365 E5 Compliance or equivalent add-on
🔔 Policy Tips & User Notifications
Policy tips are in-app notifications shown to users when DLP detects sensitive content as they work. They are the key user-education tool in a DLP programme.
| App | Where Policy Tip Appears |
|---|---|
| Outlook | Yellow notification bar above the message composition window, with the option to override or report false positive |
| Word, Excel, PowerPoint | Information bar at the top of the document when content triggers a DLP rule |
| SharePoint Online | When a user tries to share a document that matches a DLP rule — notification before completing the share |
| Teams | Inline message notification when a user sends a message matching a DLP rule |
# List all DLP policies and their current mode Get-DlpCompliancePolicy | Select-Object Name,Mode,Workload,Enabled # Get detailed rules for a specific DLP policy Get-DlpComplianceRule -Policy 'PCI Credit Card Protection' | Select-Object Name,Priority,Actions # Create a new DLP policy in AuditAndNotify mode New-DlpCompliancePolicy -Name 'UK NI Number Protection' ` -ExchangeLocation All ` -Mode AuditAndNotify # Add a blocking rule to the policy New-DlpComplianceRule -Name 'Block external NI sharing' ` -Policy 'UK NI Number Protection' ` -ContentContainsSensitiveInformation @{Name='UK National Insurance Number';minCount=1;minConfidence=75} ` -ContentIsShared ShareWithExternalUsersOnly ` -BlockAccess $true # Promote policy from AuditAndNotify to full enforcement Set-DlpCompliancePolicy -Identity 'UK NI Number Protection' -Mode Enable
💡 Best Practices
- Always deploy new DLP policies in simulation mode first — review matches in Activity Explorer and the DLP policy matches report for 2–4 weeks before enforcing blocks
- Use “Block with override” rather than hard “Block” for initial enforcement — it trains users and provides business justification audit trails without completely disrupting legitimate workflows
- Target Endpoint DLP on USB and cloud service upload activities first — these are the highest-risk exfiltration paths
- Configure incident reports to a compliance DL (not individual email) for DLP alerts — this ensures continuity even when team members change
🎓 Interview Q&A
Option 2 — Change action to “Block with override”: Change the DLP action from “Block” to “Block with override” for messages with NI numbers. HR staff can then override the block for legitimate use cases by providing a business justification, which is logged in the audit trail.
The recommended approach is typically Option 1 (domain exception) for trusted business partners — it’s precise and doesn’t require user action.
A DLP policy is deployed to Teams locations to prevent sharing of credit card numbers. A user reports they can still send a Word document containing credit card numbers in a Teams message. What is the most likely explanation?
Which TWO prerequisites are required to enable Endpoint DLP on a Windows 11 device?
A DLP policy with two rules is configured: Rule 1 (priority 1) blocks messages with 5+ credit card numbers; Rule 2 (priority 2) shows a policy tip for 1+ credit card numbers. An email with 7 credit card numbers is sent. What happens?
A compliance team wants to see all DLP policy matches across Exchange, SharePoint, and Teams in the past 30 days sorted by policy name. Which tool provides this?
You want to prevent users from copying sensitive files (labelled “Highly Confidential”) to USB drives on company laptops, even when the device is not connected to the internet. Which solution should you implement?