nerdexam
Microsoft

AZ-104 · Question #644

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…

The correct answer is A. Yes. The solution effectively meets the goal by using the New-MgInvitation cmdlet in a PowerShell script to invite 500 external users, thereby creating guest accounts for each in Azure AD.

Submitted by miguelv· Mar 4, 2026Manage identities and governance

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-MgInvitation cmdlet for each external user. Does this meet the goal?

Options

  • AYes
  • BNo

How the community answered

(34 responses)
  • A
    79% (27)
  • B
    21% (7)

Why each option

The solution effectively meets the goal by using the `New-MgInvitation` cmdlet in a PowerShell script to invite 500 external users, thereby creating guest accounts for each in Azure AD.

AYesCorrect

The `New-MgInvitation` cmdlet is specifically designed to invite external users to an Azure AD tenant, which provisions a guest user account for each invited user. By scripting this cmdlet to iterate through the 500 external users from the CSV file, it provides an efficient and scalable method for bulk guest user creation.

BNo

Concept tested: Bulk invitation of Azure AD guest users

Source: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.directorymanagement/new-mginvitation

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice