Microsoft Purview Data Loss Prevention (DLP) policies support different actions depending on the Microsoft 365 workload to which a policy is applied. Administrators must select a supported location before configuring a particular DLP action.
Option B is correct because the Set headers action is supported specifically for Exchange Online email.
This action allows administrators to add or modify an email message header when the message matches the conditions of a DLP rule. For example, an organization can configure a rule that detects sensitive financial information and adds a custom header indicating that the email requires additional handling.
Microsoft documents Set headers as a non-halting action, meaning it does not automatically stop subsequent DLP rule processing.
Option A is incorrect because OneDrive policies govern files and sharing activities rather than Exchange transport message headers.
Option C is incorrect because SharePoint DLP policies primarily protect stored documents and control access to sensitive content.
Option D is incorrect because Teams chat and channel messages do not expose the Exchange-specific Set headers action.
Therefore, the DLP policy must include the Exchange email location to support Set headers.
Microsoft Reference: Microsoft Learn — Data Loss Prevention policy reference .