- A
Group-based licensing with dynamic groups
Correct. Dynamic groups automatically include users based on rules (e.g., department equals 'Sales'), and licenses assigned to the group are automatically applied.
- B
scheduled PowerShell script that runs daily
Why wrong: Incorrect. While possible, this requires ongoing maintenance and is not a built-in automated method.
- C
Manual license assignment via the Microsoft 365 admin center
Why wrong: Incorrect. Manual assignment is not automated and does not scale well for large numbers of users.
- D
Bulk assign licenses using the admin center import feature
Why wrong: Incorrect. The bulk import feature is a one-time operation and does not automatically handle new users or changes.
Quick Answer
The answer is group-based licensing with dynamic groups. This method is correct because it leverages Azure AD dynamic group membership rules that evaluate user attributes, such as the department attribute synchronized from on-premises Active Directory via Azure AD Connect, to automatically assign or remove Microsoft 365 E5 licenses without manual intervention. On the MS-102 exam, this scenario tests your understanding of how to combine Azure AD dynamic groups with group-based licensing for attribute-driven automation, often appearing as a distractor against PowerShell scripting or direct license assignment—a common trap is assuming you must use Azure AD Connect to assign licenses directly, but licenses are managed in the cloud. Remember the key memory tip: dynamic groups drive dynamic licensing; if the attribute changes, the license follows automatically.
MS-102 Deploy and manage a Microsoft 365 tenant Practice Question
This MS-102 practice question tests your understanding of deploy and manage a microsoft 365 tenant. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 company has purchased 1000 Microsoft 365 E5 licenses and wants to automatically assign licenses to users based on their department attribute, which is synchronized from on-premises Active Directory. The department attribute is stored in Azure AD. Which automated method should the administrator use to achieve this?
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
Group-based licensing with dynamic groups
Group-based licensing with dynamic groups is the correct method because it allows automatic license assignment based on user attributes like department, which is synchronized from on-premises Active Directory via Azure AD Connect. Dynamic groups evaluate membership rules in Azure AD, and when a user's department attribute matches the rule, the group-based licensing policy automatically assigns or removes the Microsoft 365 E5 license without manual intervention.
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.
- ✓
Group-based licensing with dynamic groups
Why this is correct
Correct. Dynamic groups automatically include users based on rules (e.g., department equals 'Sales'), and licenses assigned to the group are automatically applied.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
scheduled PowerShell script that runs daily
Why it's wrong here
Incorrect. While possible, this requires ongoing maintenance and is not a built-in automated method.
- ✗
Manual license assignment via the Microsoft 365 admin center
Why it's wrong here
Incorrect. Manual assignment is not automated and does not scale well for large numbers of users.
- ✗
Bulk assign licenses using the admin center import feature
Why it's wrong here
Incorrect. The bulk import feature is a one-time operation and does not automatically handle new users or changes.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often choose a scheduled PowerShell script (Option B) thinking it is more flexible or reliable, but they overlook that group-based licensing is the native, fully automated, and supported method for attribute-driven license assignment in Azure AD.
Detailed technical explanation
How to think about this question
Group-based licensing leverages Azure AD dynamic group rules, which use expressions like `user.department -eq "Sales"` to evaluate membership every 5-10 minutes via the Azure AD provisioning engine. When a user's department attribute changes (e.g., via Azure AD Connect sync), the group membership updates, and the licensing engine automatically adds or removes the license, including handling service plan dependencies and conflicts. This method also supports grace periods for license removal and can be monitored via the Azure AD audit logs.
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.
- →
Deploy and manage a Microsoft 365 tenant — study guide chapter
Learn the concepts, then practise the questions
- →
Deploy and manage a Microsoft 365 tenant practice questions
Targeted practice on this topic area only
- →
All MS-102 questions
975 questions across all exam domains
- →
Microsoft 365 Administrator MS-102 study guide
Full concept coverage aligned to exam objectives
- →
MS-102 practice test guide
How to use practice tests most effectively before exam day
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.
Deploy and manage a Microsoft 365 tenant practice questions
Practise MS-102 questions linked to Deploy and manage a Microsoft 365 tenant.
Implement and manage Microsoft Entra identity and access practice questions
Practise MS-102 questions linked to Implement and manage Microsoft Entra identity and access.
Manage security and threats by using Microsoft Defender XDR practice questions
Practise MS-102 questions linked to Manage security and threats by using Microsoft Defender XDR.
Manage compliance by using Microsoft Purview practice questions
Practise MS-102 questions linked to Manage compliance by using Microsoft Purview.
Manage users, groups, licensing, and support practice questions
Practise MS-102 questions linked to Manage users, groups, licensing, and support.
Implement and manage identity and access in Microsoft Entra ID practice questions
Practise MS-102 questions linked to Implement and manage identity and access in Microsoft Entra ID.
MS-102 fundamentals practice questions
Practise MS-102 questions linked to MS-102 fundamentals.
MS-102 scenario practice questions
Practise MS-102 questions linked to MS-102 scenario.
MS-102 troubleshooting practice questions
Practise MS-102 questions linked to MS-102 troubleshooting.
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?
Deploy and manage a Microsoft 365 tenant — This question tests Deploy and manage a Microsoft 365 tenant — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Group-based licensing with dynamic groups — Group-based licensing with dynamic groups is the correct method because it allows automatic license assignment based on user attributes like department, which is synchronized from on-premises Active Directory via Azure AD Connect. Dynamic groups evaluate membership rules in Azure AD, and when a user's department attribute matches the rule, the group-based licensing policy automatically assigns or removes the Microsoft 365 E5 license without manual intervention.
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 →
Last reviewed: Jun 11, 2026
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.
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.