Microsoft Purview Data Loss Prevention (DLP) uses sensitive information types (SITs) to detect sensitive content in Exchange Online email messages, documents, and other supported Microsoft 365 locations.
Option B is correct because the customer IDs follow a predictable format consisting of 10 digits followed by 10 characters, with hyphens separating the components.
Administrators can create a custom sensitive information type using a regular expression to identify this structure.
For example, to match the specific format shown in the question:
\b(\d{3}-\d{3}-\d{4}-[A-Za-z]{3}-[A-Za-z] {2}-[A-Za-z]{5})\b
Administrators can configure the SIT through Microsoft Purview portal → Information Protection → Classifiers → Sensitive info types → Create sensitive info type.
After creating and testing the SIT, administrators can reference it in the DLP policy ' s Content contains → Sensitive info types condition to detect emails containing matching customer IDs.
Option A is incorrect because sensitivity labels classify and protect content rather than independently defining custom detection patterns.
Option C is incorrect because a PowerShell script is not necessary to detect the specified customer ID format.
Option D is incorrect because retention labels control content retention and disposition rather than pattern-based sensitive information detection.
For production use, supporting keywords or additional validation can reduce false positives. The regular expression should also be adjusted if actual customer IDs permit characters or separators beyond those in the example.
Microsoft References: