A company has 500 users across Sales, Marketing, and IT departments. User objects are synced from on-premises Active Directory to Microsoft Entra ID using Azure AD Connect. Each department requires different Microsoft 365 license plans (e.g., Sales needs E3, Marketing needs Business Premium, IT needs E5). The administrator wants to automatically assign the appropriate license based on the department attribute without manual intervention. Which approach should the administrator use?
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Distractor review
Create a script that runs daily to sync department values and assign licenses using PowerShell.
While possible, a script is less efficient and more error-prone than group-based licensing. It requires maintenance and manual scheduling, whereas group-based licensing is automated and does not rely on custom scripts.
Best answer
Configure group-based licensing using Microsoft Entra dynamic groups with rules based on the department attribute.
Dynamic groups evaluate membership based on rules using user attributes. When combined with group-based licensing, licenses are automatically applied to all members. This is the recommended Microsoft approach for automated license assignment.
Distractor review
Use Azure AD Connect to filter objects and assign licenses during sync.
Azure AD Connect syncs identity objects only; it does not assign licenses. License assignment is separate and must be done through Entra ID or administrative tools.
Distractor review
Manually assign licenses to each user in the Microsoft 365 admin center.
Manual assignment is not scalable and does not meet the requirement for automation. It also risks errors when managing 500 users.
Common exam trap
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Technical deep dive
How to think about this question
This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.
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.
- Use explanations to understand the rule behind the answer.
TExam Day Tips
- Underline the problem statement mentally.
- 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.
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.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
A company recently added the custom domain 'contoso.com' to their Microsoft 365 tenant. Users report that they cannot receive external email sent to their new domain addresses. The administrator confirmed that the domain status shows 'Active' in the Microsoft 365 admin center. What is the most likely cause of this issue?
Question 2
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?
Question 3
A company has just purchased Microsoft 365 Business Standard and added the custom domain 'fabrikam.com' to the tenant. They want to verify domain ownership. Which DNS record type must they add to their DNS provider?
Question 4
A company plans to migrate their email from an on-premises Exchange server to Exchange Online. They want to ensure that during the migration, mail sent to users who have already been migrated is delivered to Exchange Online, while mail for non-migrated users is delivered to on-premises. Which type of domain configuration should they use?
Question 5
A company has registered the custom domain 'contoso.com' and wants to host email for the subdomain 'sales.contoso.com' in Exchange Online. They have already verified the root domain. What additional step is required?
Question 6
A company (Contoso) frequently collaborates with a partner company (Fabrikam) via B2B collaboration. Contoso wants to require Fabrikam's guest users to perform MFA using Contoso's MFA policies, ignoring any MFA claims from the Fabrikam home tenant. However, Fabrikam's users already have MFA enabled in their home tenant. What should Contoso configure in their cross-tenant access settings?
FAQ
Questions learners often ask
What does this MS-102 question test?
Read the scenario before looking for a memorised answer.
What is the correct answer to this question?
The correct answer is: Configure group-based licensing using Microsoft Entra dynamic groups with rules based on the department attribute. — Group-based licensing with dynamic groups allows automatic assignment of licenses based on user attributes like department. You create dynamic groups with membership rules (e.g., user.department -eq "Sales") and assign the appropriate license plan to each group. Licenses will be automatically assigned to new users and removed when the attribute changes.
What should I do if I get this MS-102 question wrong?
Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.
Discussion
Sign in to join the discussion.