Courseiva
Deploy and manage a Microsoft 365 tenanthardMultiple ChoiceObjective-mapped

MS-102 Deploy and manage a Microsoft 365 tenant Practice Question

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?

⚠ Common exam trap

A common mix-up: candidates confuse Azure AD Connect's attribute filtering or sync capabilities with license assignment, or assume that a PowerShell script is the only automated method, overlooking the native group-based licensing feature that is designed exactly for this scenario.

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

Configure group-based licensing using Microsoft Entra dynamic groups with rules based on the department attribute.

Microsoft Entra ID supports group-based licensing, which allows automatic license assignment to users based on their membership in dynamic groups. By creating dynamic groups with rules that filter on the department attribute (e.g., 'user.department -eq "Sales"'), the administrator can assign the appropriate license plan (E3, Business Premium, E5) to each group, and licenses are automatically applied or removed as users are added or removed from the group, without any manual or scripted intervention.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a script that runs daily to sync department values and assign licenses using PowerShell.

    Why it's wrong here

    While scripted automation appears to solve the problem, a custom PowerShell job is operationally fragile: it requires secure stored credentials, scheduled execution, and continuous maintenance to handle error conditions like throttling or license exhaustion. Any delay or script failure leaves users without correct assignments, and it bypasses native Entra ID lifecycle features. Group-based licensing removes this dependency by making Entra ID itself evaluate membership and apply licenses.

  • Configure group-based licensing using Microsoft Entra dynamic groups with rules based on the department attribute.

    Why this is correct

    Dynamic groups in Microsoft Entra ID evaluate membership using a rule on the department attribute, so users are automatically added or removed as their department changes. When combined with group-based licensing, a license is provisioned to every member of the group automatically, and it is removed when a user leaves the group. This approach is the recommended Microsoft solution because it scales to thousands of users without manual steps or custom code, and it integrates with Entra ID's inherent license management.

  • Use Azure AD Connect to filter objects and assign licenses during sync.

    Why it's wrong here

    Azure AD Connect is an identity synchronization tool, not a license assignment engine; it copies user, group, and device attributes from on-premises Active Directory to Entra ID, but it has no ability to apply Microsoft 365 licenses. Filtering objects during sync simply limits which identities are replicated, and licenses still must be assigned by Entra ID licensing or PowerShell separately. Relying on the sync pipeline for licensing would misunderstand the separation between identity provisioning and license entitlement.

  • Manually assign licenses to each user in the Microsoft 365 admin center.

    Why it's wrong here

    Manually assigning licenses user-by-user in the Microsoft 365 admin center is impractical for 500 accounts and guarantees a high risk of errors, including missed users, incorrect license plans, and inconsistent coverage. It also requires a human to revisit assignments every time a user changes department or leaves the organization, making the process inherently unscalable and non-automated. Group-based licensing with dynamic membership is the appropriate automated alternative.

About these practice questions

This MS-102 question is part of Courseiva's 241-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.