DLP Policy Set Headers Action Location
Short answer
B The Set headers action is supported only in Exchange email DLP policies, as it modifies SMTP message headers upon detection of sensitive content.
Question
You need to create a data loss prevention (DLP) policy that is configured to use the Set headers action.
To which location can the policy be applied?
Key Takeaways
Tests knowledge of DLP action limitations across workloads; the trap is assuming all locations support all actions, but header modification is unique to Exchange.
Learn which Microsoft 365 workload supports the Set headers action in DLP policies. Only Exchange email allows custom header injection for sensitive content detection scenarios.
Common mistake: Candidates may incorrectly choose Teams or SharePoint, assuming that any location can have metadata modified. However, 'headers' refer specifically to email transport headers, which do not exist in file or chat contexts.
Expert Analysis
The question asks where a Microsoft Purview Data Loss Prevention (DLP) policy can utilize the "Set headers" action. This action is specifically designed to modify email transport properties by injecting custom headers (such as X-MS-Exchange-Organization-AuthAs or custom X- headers) into messages.
Among the available locations, only Exchange email supports header modification. DLP policies for Exchange can trigger actions like adding recipients, redirecting messages, blocking access, and setting custom headers when sensitive information is detected. These headers are processed by the mail flow rules and can be used for further routing, classification, or security enforcement within the email infrastructure.
In contrast:
- OneDrive accounts: DLP policies here focus on preventing unauthorized sharing or downloading of files containing sensitive data. Actions include blocking download, encrypting files, or notifying users. There is no concept of "email headers" in file storage contexts.
- SharePoint sites: Similar to OneDrive, SharePoint DLP actions involve blocking file access, applying watermarking, or sending notifications. Header modification is not applicable.
- Teams chat and channel messages: DLP for Teams can block, redact, or forward messages containing sensitive data. It does not support modifying email-style headers because Teams messages are not transmitted via SMTP with traditional email headers in the same way Exchange emails are.
Therefore, the "Set headers" action is exclusive to the Exchange workload within the Microsoft 365 DLP framework.
Exam Strategy
When reviewing DLP actions, always map them to their specific workload capabilities. Remember that actions involving email transport mechanics (like adding headers or changing recipients) are exclusive to Exchange. For file-based workloads (OneDrive/SharePoint), focus on access control and encryption. For Teams, focus on message redaction or forwarding. Memorize these distinctions to avoid confusion during the exam.
Frequently Asked Questions
Why can't I set headers in Teams DLP policies?
What other actions can I use in Exchange DLP policies?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
linux_admin 👍 1 Answered BAnswer: B. Exchange email Explanation: In Microsoft Purview Data Loss Prevention (DLP), the Set headers action is used to inject custom email headers (such as X-headers) into messages when sensitive content is detected. Exchange email: This is the only location that supports email transport actions such as header modification, adding recipients, or routing adjustments. OneDrive accounts, SharePoint sites, and Teams chat and channel messages: These workloads handle file storage, collaboration, and messaging streams. Because they do not process MIME email headers, header modification actions cannot be applied to them.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.