Question 645 of 975
Manage compliance by using Microsoft PurvieweasyMultiple ChoiceObjective-mapped

MS-102 Manage compliance by using Microsoft Purview Practice Question

This MS-102 practice question tests your understanding of manage compliance by using microsoft purview. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

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?

Question 1easymultiple choice
Full question →

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)

Option D is correct because 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.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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

    DLP policies are designed to prevent sensitive information from being shared or exposed, not to apply retention labels. They can trigger actions like blocking or alerting but not automatic labeling for retention.

  • An auto-apply retention label using a trainable classifier

    Why it's wrong here

    Trainable classifiers use AI to identify content by concept (e.g., contracts), but for an exact phrase like 'Contract', a content query (KQL) is more precise and simpler to configure. The question specifies an exact phrase match.

  • An auto-apply retention label using a content query (KQL)

    Why this is correct

    Auto-apply retention labels can be configured with a Keyword Query Language (KQL) condition to match documents containing the exact phrase 'Contract'. This meets the requirement precisely and automatically applies the retention label.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that 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.

Trap categories for this question

  • Keyword trap

    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.

Detailed technical explanation

How to think about this question

The auto-apply retention label with a content query uses Keyword Query Language (KQL) to search for exact phrases in SharePoint Online documents via the search index. The label is then applied asynchronously via a timer job, and the retention period (10 years) is enforced at the item level, overriding any site-level policies. A real-world scenario is a legal department needing to retain all documents with 'Contract' in the body, which KQL can handle with a query like 'Contract' (exact phrase), while a trainable classifier would require sample documents and may misclassify non-contract documents.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related MS-102 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free MS-102 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this MS-102 question test?

Manage compliance by using Microsoft Purview — This question tests Manage compliance by using Microsoft Purview — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: An auto-apply retention label using a content query (KQL) — Option D is correct because 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.

What should I do if I get this MS-102 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.