MS-102 Manage compliance by using Microsoft Purview Practice Question
A compliance officer needs to automatically apply a retention label to all documents in SharePoint Online that contain the exact phrase 'Contract'. The label must retain the documents for 10 years. Which Microsoft Purview feature should the officer configure?
⚠ Common exam trap
Watch out — candidates often confuse auto-apply labels with trainable classifiers, thinking a machine learning model is needed for any content-based labeling, when in fact a simple KQL query is sufficient for exact phrase matching.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
An auto-apply retention label using a content query (KQL)
An auto-apply retention label using a content query (KQL) allows you to define a specific keyword or phrase (e.g., 'Contract') to automatically label documents in SharePoint Online that contain that exact text. This meets the requirement to retain documents for 10 years by applying the label based on content matching, without needing a pre-trained classifier.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
retention policy applied to the entire site
Why it's wrong here
A retention policy applies to all content in the site automatically, but it cannot be selectively applied based on content matching a specific phrase. The requirement is for automatic labeling based on content, not a blanket policy.
- ✗
Data Loss Prevention (DLP) policy
Why it's wrong here
Data Loss Prevention (DLP) policies are designed to detect and protect sensitive information by triggering actions such as blocking access, notifying users, or encrypting content—they are not extensible to assign lifecycle management settings like retention labels. DLP cannot create or apply a retention label, which determines how long content is kept and whether it is deleted. While DLP can integrate with sensitivity labels for protection, it has no mechanism to enforce retention schedules, so it fails to meet the requirement of automatically applying a retention label.
- ✗
An auto-apply retention label using a trainable classifier
Why it's wrong here
An auto-apply retention label using a trainable classifier is unsuitable because it identifies content based on learned patterns and examples, not an exact phrase match. The scenario specifically requires matching the literal string 'Contract'. This option is tempting as it involves auto-apply retention and advanced classification. It would be the correct choice for identifying content by concept, such as all documents broadly related to "contracts" or "HR policies", where variations in phrasing necessitate machine learning to recognise the underlying subject matter.
- ✓
An auto-apply retention label using a content query (KQL)
Why this is correct
An auto-apply retention label using a content query (KQL) is the only option that directly satisfies the requirement. In Microsoft Purview, you create an auto-apply retention label policy, select "Apply label to content that matches a query," and enter a KQL expression such as "Contract" to match documents containing that exact phrase. The KQL query runs against the search index, automatically assigns the retention label to matching content, and enforces the configured retention period. This approach is rule-based and deterministic, precisely targeting the literal string "Contract" as specified.
Go deeper
Related to this question
Learn chapter
Microsoft 365 Tenant Setup
Key term
Microsoft Purview
Microsoft Purview is a unified data governance and compliance service that helps organizations discover, manage, and protect their data across on-premises, cloud, and hybrid environments.
Key term
Retention label
A retention label is a tag applied to emails, documents, or files in Microsoft 365 that tells the system how long to keep the item and what to do with it when the time is up.
About these practice questions
Courseiva writes every MS-102 question from scratch — 241 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MS-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MS-102 exam.