MS-900 Describe Microsoft 365 apps and services Practice Question
This MS-900 practice question tests your understanding of describe microsoft 365 apps and services. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
Exhibit
Refer to the exhibit.
$policies = Get-ComplianceTag
foreach ($policy in $policies) {
if ($policy.RetentionAction -eq "Delete") {
Write-Host "Policy $($policy.Name) will delete data after $($policy.RetentionDuration) days"
}
}
Refer to the exhibit. The PowerShell script retrieves compliance tags from Microsoft Purview. What does the script do?
Refer to the exhibit.
$policies = Get-ComplianceTag
foreach ($policy in $policies) {
if ($policy.RetentionAction -eq "Delete") {
Write-Host "Policy $($policy.Name) will delete data after $($policy.RetentionDuration) days"
}
}
A
Changes the retention action from Delete to Archive
Why wrong: The script only reads, not modifies.
B
Deletes compliance tags that have a Delete retention action
Why wrong: It only writes to console, does not delete.
C
Outputs the name and retention duration for compliance tags that delete data
The script filters tags with Delete action and outputs name and duration.
D
Lists all compliance tags and their retention actions
Why wrong: It only outputs tags with delete action.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Outputs the name and retention duration for compliance tags that delete data
The script uses Get-ComplianceTag to retrieve all compliance tags, then filters with Where-Object to select only those where the RetentionAction property equals 'Delete'. For each matching tag, it outputs the Name and RetentionDuration. This directly matches option C: it outputs the name and retention duration for compliance tags that delete data.
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.
✗
Changes the retention action from Delete to Archive
Why it's wrong here
The script only reads, not modifies.
✗
Deletes compliance tags that have a Delete retention action
Why it's wrong here
It only writes to console, does not delete.
✓
Outputs the name and retention duration for compliance tags that delete data
Why this is correct
The script filters tags with Delete action and outputs name and duration.
Related concept
Read the scenario before looking for a memorised answer.
✗
Lists all compliance tags and their retention actions
Why it's wrong here
It only outputs tags with delete action.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may assume the script deletes the tags (option B) because of the word 'Delete' in the filter, but the script only retrieves and displays information—it does not perform any deletion of tags or data.
Trap categories for this question
Command / output trap
It only outputs tags with delete action.
Detailed technical explanation
How to think about this question
The Get-ComplianceTag cmdlet is part of the Exchange Online PowerShell module and retrieves retention labels (compliance tags) from Microsoft Purview. The RetentionAction property can have values like Delete, Archive, Keep, or KeepAndDelete. The Where-Object clause filters the collection in memory, and the Select-Object @{Name='...';Expression={...}} syntax creates a calculated property to display the retention duration in days. In a real-world scenario, an administrator might use this script to audit which tags are set to permanently delete content, ensuring compliance with data retention policies.
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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this MS-900 question in full detail.
Describe Microsoft 365 apps and services — This question tests Describe Microsoft 365 apps and services — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Outputs the name and retention duration for compliance tags that delete data — The script uses Get-ComplianceTag to retrieve all compliance tags, then filters with Where-Object to select only those where the RetentionAction property equals 'Delete'. For each matching tag, it outputs the Name and RetentionDuration. This directly matches option C: it outputs the name and retention duration for compliance tags that delete data.
What should I do if I get this MS-900 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 →
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.
This MS-900 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-900 exam.
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.
Sign in to join the discussion.