Question 806 of 975

Quick Answer

The answer is group-based licensing with a dynamic group that uses the department attribute. This approach is correct because it combines two core Microsoft Entra ID capabilities: group-based licensing automatically assigns Microsoft 365 E5 licenses to all members of a group, while a dynamic group rule like `user.department -eq "Sales"` continuously updates membership based on the user attribute, ensuring that any user added to or removed from the Sales department receives or loses their license without manual intervention. On the MS-102 exam, this scenario tests your understanding of how dynamic groups differ from assigned groups for license automation—a common trap is selecting a static group or direct license assignment, which would require ongoing manual updates. Remember the key pairing: dynamic group for attribute-driven membership, group-based licensing for automated assignment. A helpful memory tip is “Dynamic for attributes, group-licensing for seats”—the rule drives who’s in, the license policy drives what they get.

MS-102 Practice Question: Implement and manage identity and access in Microsoft Entra ID

This MS-102 practice question tests your understanding of implement and manage identity and access in microsoft entra id. 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 company wants to automatically assign Microsoft 365 E5 licenses to all users in the Sales department. The department is identified by the department attribute in Microsoft Entra ID. The administrator needs to configure a method where licenses are assigned based on group membership, and the group membership is automatically updated based on user attributes. Which licensing approach should the administrator use?

Question 1mediummultiple 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

Group-based licensing with a dynamic group that uses the department attribute.

Option B is correct because group-based licensing in Microsoft Entra ID allows automatic license assignment based on group membership, and a dynamic group can automatically update its membership using the department attribute rule (e.g., `user.department -eq "Sales"`). This meets the requirement for both automated license assignment and attribute-driven membership updates 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.

  • Per-user licensing with a PowerShell script.

    Why it's wrong here

    Per-user licensing requires manual management or scripting; the requirement is for automatic assignment based on attribute changes, which is better handled by group-based licensing.

  • Group-based licensing with a dynamic group that uses the department attribute.

    Why this is correct

    Group-based licensing assigns licenses to all members of a group. A dynamic group automatically updates membership based on user attributes like department, fulfilling the automated requirement.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Subscription-based licensing via the Microsoft 365 admin center.

    Why it's wrong here

    Subscription-based licensing is not a real term in Microsoft 365; licenses are assigned per user or per group. There is no subscription-based automatic assignment method.

  • Group-based licensing with an assigned group that must be manually updated.

    Why it's wrong here

    An assigned group would require manual updates whenever the department changes, which does not meet the automatic requirement.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse group-based licensing with assigned groups (Option D) and overlook the dynamic group requirement, assuming any group-based licensing approach automatically updates membership, when in fact only dynamic groups provide attribute-driven automatic membership updates.

Detailed technical explanation

How to think about this question

Dynamic groups in Microsoft Entra ID use rule expressions based on user or device attributes (e.g., `user.department -eq "Sales"`) to automatically add or remove members, and group-based licensing then assigns licenses to all members in near real-time. Under the hood, Microsoft Entra ID evaluates dynamic group membership every 5-10 minutes, and license assignment is processed asynchronously, which can take up to 30 minutes for large groups. A real-world scenario where this matters is when the Sales department frequently changes personnel; the dynamic group ensures new hires automatically receive the E5 license without administrator action.

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?

Implement and manage identity and access in Microsoft Entra ID — This question tests Implement and manage identity and access in Microsoft Entra ID — 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 a dynamic group that uses the department attribute. — Option B is correct because group-based licensing in Microsoft Entra ID allows automatic license assignment based on group membership, and a dynamic group can automatically update its membership using the department attribute rule (e.g., `user.department -eq "Sales"`). This meets the requirement for both automated license assignment and attribute-driven membership updates 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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More MS-102 practice questions

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.