Courseiva

MS-900 Describe Microsoft 365 apps and services Practice Question

Exhibit

Get-MgUser -Filter "userPrincipalName eq 'jdoe@contoso.com'" | Select-Object -Property DisplayName, UserPrincipalName, AssignedLicenses, UsageLocation

Refer to the exhibit. A Microsoft Graph PowerShell command is run. What does this command retrieve about user jdoe?

⚠ Common exam trap

A common mix-up: candidates assume the `Get-MgUser` cmdlet returns all user properties by default, but the explicit `-Property` parameter restricts the output to only the listed fields, making it a selective retrieval rather than a full one.

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

✓

Display name, user principal name, assigned licenses, and usage location.

The command `Get-MgUser -UserId jdoe -Property DisplayName, UserPrincipalName, AssignedLicenses, UsageLocation` explicitly specifies only those four properties in the `-Property` parameter. Microsoft Graph PowerShell by default returns a subset of properties, but when you list specific properties, it retrieves only those requested. Therefore, the output includes exactly the display name, user principal name, assigned licenses, and usage location.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Only the user's display name and email.

    Why it's wrong here

    The command does not request the mail or email property at all; it explicitly selects DisplayName, UserPrincipalName, AssignedLicenses, and UsageLocation. Additionally, userPrincipalName (UPN) is not the same as the user's SMTP email address, so saying 'email' misidentifies the property. The result also includes license assignments and usage location, which this option omits, making it incomplete and technically incorrect.

  • ✗

    All properties of the user.

    Why it's wrong here

    The command uses an explicit property selection that includes only four fields: DisplayName, UserPrincipalName, AssignedLicenses, and UsageLocation. Microsoft Graph PowerShell does not automatically return every Microsoft Entra ID user attribute; even its default response contains a limited property set. By explicitly selecting these four, the command restricts the output to exactly those properties and discards all other user attributes, so 'all properties' is factually wrong.

  • ✓

    Display name, user principal name, assigned licenses, and usage location.

    Why this is correct

    This is correct because the exhibit's command specifies Select-Object -Property DisplayName, UserPrincipalName, AssignedLicenses, UsageLocation (or equivalent -Select parameter in Get-MgUser). These four properties map exactly to the output shown: display name, user principal name, assigned licenses (as a collection of service plan identifiers), and usage location (the ISO 3166-1 alpha-2 country code). No other properties are projected, so the selected list precisely matches the stated result.

  • ✗

    Only the user's display name.

    Why it's wrong here

    The command actually returns three additional properties beyond the display name: UserPrincipalName, AssignedLicenses, and UsageLocation. Selecting only the display name would produce one column, but the output includes four distinct data fields. This option ignores the license assignment and location data, which are key licensing-related fields that the command is explicitly designed to retrieve.

About these practice questions

Courseiva writes every MS-900 question from scratch — 794 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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-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.