AZ-140 sample exam questions

15 exam-style questions for Microsoft AZ-140: Azure Virtual Desktop, with answers and explanations. Take them as a timed practice exam first if you want a score out of 1000.

  1. Question 1Single choiceTopic 1
    You have an Azure subscription that contains 500 users. The users are assigned Microsoft Office 365 E1 licenses.
    You deploy an Azure Virtual Desktop solution that contains Windows 10 multi-session hosts and streams a custom remote app named App1.
    You need to ensure that the users are licensed to stream App1. The solution must minimize costs.
    Which license should you use?
    1. A
      Microsoft 365 E5
    2. B
      Office 365 E3
    3. C
      a Remote Desktop Services (RDS) client access license (CAL)
    4. D
      Windows 10 Enterprise E3
    Show answer

    Correct answer: D

    Why

    Streaming apps from Windows 10 multi-session requires a Windows per-user license such as Windows 10 Enterprise E3. Office 365 E1 does not include Windows rights, while Microsoft 365 E5 costs more, and an RDS CAL is not needed for Azure Virtual Desktop with eligible Windows licenses.

  2. Question 2Single choiceTopic 2
    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 Virtual Desktop host pool that contains five session hosts. The session hosts run Windows 10 Enterprise multi-session.
    You need to prevent users from accessing the internet from Azure Virtual Desktop sessions. The session hosts must be allowed to access all the required
    Microsoft services.
    Solution: You configure rules in the network security group (NSG) linked to the subnet of the session hosts.
    Does this meet the goal?
    1. A
      Yes
    2. B
      No
    Show answer

    Correct answer: A

    Why

    An NSG on the session host subnet can deny outbound internet traffic while allowing the WindowsVirtualDesktop, AzureMonitor and other Microsoft service tags. This blocks general internet access yet permits required services, so the solution meets the goal.

  3. Question 3HotspotTopic 2
    HOTSPOT

    You have an Azure subscription that contains a user named User1.

    The subscription uses the Azure Virtual Desktop host pools shown in the following table.



    You need to ensure that User1 can create RemoteApp app groups that will be used to stream a suite of custom apps from the host pools. The solution must meet the following requirements:

    • The apps must be available to the users in all the pools.
    • The principle of least privilege must be followed.
    • Administrative effort must be minimized.

    Which role should you assign to User1, and what is the minimum number of app groups that User1 should create? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    Role:Desktop Virtualization Application Group Contributor / Desktop Virtualization Contributor / Desktop Virtualization Host Pool Contributor / Desktop Virtualization Workplace Contributor
    Number of app groups:1 / 2 / 3 / 22
    Show answer
    • Role: Desktop Virtualization Application Group Contributor
    • Number of app groups: 3
    Why

    Desktop Virtualization Application Group Contributor is the least-privileged role for creating app groups. Each app group is linked to exactly one host pool, so all three pools need one RemoteApp group each. Personal host pools now support RemoteApp too; older answers that leave out Pool3 are outdated.

  4. Question 4HotspotTopic 3
    HOTSPOT

    You have a Microsoft Entra hybrid tenant that contains the users shown in the following table.



    You have an Azure Virtual Desktop deployment that contains the host pools shown in the following table.



    Which users can sign in to the session hosts of each pool? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    Pool1:User1 only / User2 only / User1 and User2 only / User1 and User3 only / User1, User2, and User3
    Pool2:User1 only / User2 only / User1 and User2 only / User1 and User3 only / User1, User2, and User3
    Show answer
    • Pool1: User2 only
    • Pool2: User1 and User2 only
    Why

    AD DS-joined session hosts need hybrid identities synced from AD DS, so only User2 can sign in. Entra-joined hosts accept cloud-only and hybrid member users. External (guest) identities on Entra-joined hosts were added later in preview, so newer guidance may differ for User3.

  5. Question 5Single choiceTopic 4
    You deploy multiple Azure Virtual Desktop session hosts that have only private IP addresses.
    You need to ensure that administrators can initiate an RDP session to the session hosts by using the Azure portal.
    What should you implement?
    1. A
      Remote Desktop Connection Broker (RD Connection Broker)
    2. B
      Azure Application Gateway
    3. C
      Azure Bastion
    4. D
      Remote Desktop Session Host (RD Session Host)
    Show answer

    Correct answer: C

    Why

    Azure Bastion provides browser-based RDP from the Azure portal to VMs that have only private IP addresses. Connection Broker and Session Host are RDS roles, and Application Gateway is a web load balancer, not an RDP access service.

  6. Question 6HotspotTopic 4
    HOTSPOT

    You plan to deploy Azure Virtual Desktop.

    Users have the devices shown in the following table.



    From which device types can the users connect to Azure Virtual Desktop resources by using the Windows app and the Remote Desktop web client? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    Windows app:Tablet only / Tablet and phone only / Tablet and laptop only / Tablet, phone, and laptop
    Remote Desktop web client:Tablet only / Tablet and phone only / Tablet and laptop only / Tablet, phone, and laptop
    Show answer
    • Windows app: Tablet, phone, and laptop
    • Remote Desktop web client: Tablet and laptop only
    Why

    Windows App is available on Windows, macOS, iOS/iPadOS and Android, so all three devices can use it. The web client runs in HTML5 browsers on Windows, macOS, Linux and ChromeOS, but mobile operating systems such as Android are not supported, which excludes the phone.

  7. Question 7Single choiceTopic 5
    You have an Azure Virtual Desktop host pool.
    You add a French language pack to each session host in the host pool.
    Several days later, users report that English displays when they connect to Azure Virtual Desktop.
    After an investigation, you discover that the French language pack was removed, and the session hosts reverted to English.
    You need to ensure that the French language pack is always available on the session hosts.
    What should you do?
    1. A
      Configure the international settings on each host
    2. B
      Assign a default time zone on each host
    3. C
      Apply a Group Policy setting to disable the Time & language settings
    4. D
      Apply a Group Policy setting that blocks the cleanup of unused language packs
    Show answer

    Correct answer: D

    Why

    Windows removes unused language packs through a cleanup task, so the French pack disappears. Applying the Group Policy setting that blocks cleanup of unused language packs keeps it installed. Regional or time zone settings do not stop this removal.

  8. Question 8HotspotTopic 5
    HOTSPOT

    You have an Azure subscription that contains an Azure Virtual Desktop host pool named Pool1 and a standard storage account named account1. Pool1 contains two session hosts and uses FSLogix profile containers. account1 contains an Azure Files share named share1 that stores the profile containers.

    Users report that signing in to the session hosts is slow.

    You need to reduce how long it takes to sign in to the session hosts. The solution must minimize administrative effort.

    What should you do? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    Recreate share1:As an Azure Blob Storage container / In an Azure Files Premium share / On a Storage Spaces Direct storage volume
    Configure:Azure Files identity-based authentication / Azure File Sync cloud tiering on the session hosts / SMB Multichannel
    Show answer
    • Recreate share1: In an Azure Files Premium share
    • Configure: SMB Multichannel
    Why

    A standard account cannot be converted, so the share must be recreated on Premium (SSD) storage for lower latency. SMB Multichannel, available on premium file shares, adds parallel connections and throughput, speeding profile loads with little administrative effort.

  9. Question 9Single choiceTopic 6
    You have an Azure Virtual Desktop deployment that contains a host pool named Pool1.

    Pool1 contains a session host named Host1 that is Azure AD-joined.

    You need to verify whether a Windows license is assigned to Host1.

    What should you do?
    1. A
      From the Azure Active Directory admin center, view the product licenses.
    2. B
      From VM1, run the Get-WindowsDeveloperLicense cmdlet.
    3. C
      From the Azure portal, view the properties of Host1.
    4. D
      From Azure Cloud Shell, run the Get-AzVm cmdlet.
    Show answer

    Correct answer: D

    Why

    The Windows license type is a property of the Azure VM, so Get-AzVM in Cloud Shell shows LicenseType (for example Windows_Client). The Entra admin center lists user product licenses, not VM licensing, and Get-WindowsDeveloperLicense is unrelated.

  10. Question 10Drag and dropTopic 6
    DRAG DROP

    You have an Azure subscription that contains a Bicep file named AVD.bicep.

    You plan to use AVD.bicep to deploy Azure Virtual Desktop.

    Which commands should you run in sequence? To answer, drag the appropriate commands to the correct order. Each command may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

    NOTE: Each correct selection is worth one point.

    Move each item to the matching row:

    • az bicep install
    • az bicep build
    • az bicep publish
    • az deployment group create
    • az desktopvirtualization hostpool create
    • Step 1:
    • Step 3:
    Show answer
    • Step 1: az bicep install
    • Step 3: az deployment group create
    Why

    The Bicep CLI must be installed first so Azure CLI can process the file. After az group create provides the target resource group, az deployment group create deploys AVD.bicep to it. Building to ARM JSON is unnecessary, and the hostpool command would ignore the Bicep file.

  11. Question 11Single choiceTopic 9
    Which setting should you modify for VNET4 before you can deploy Pool4?
    1. A
      Service endpoints
    2. B
      Address space
    3. C
      DNS servers
    4. D
      Access control (IAM)
    5. E
      Peerings
    Show answer

    Correct answer: C

    Why

    VNET4 is new and holds domain-joined session hosts, so its DNS servers must be set to the domain controllers (as the other VNets use) to let hosts resolve and join contoso.com. Peering already exists, and service endpoints, address space and IAM are not the issue.

  12. Question 12Single choiceTopic 10
    You need to modify the custom virtual machine images to meet the deployment requirements.
    What should you install?
    1. A
      the RSAT: Remote Desktop Services Tools optional feature
    2. B
      the Azure Virtual Desktop Agent
    3. C
      the Microsoft Monitoring Agent
    4. D
      the FSLogix agent
    Show answer

    Correct answer: D

    Why

    The custom images must support profile containers, so the FSLogix agent is installed on them. The AVD agent is installed during session host deployment through the registration process, and RSAT and the Monitoring Agent are not required.

  13. Question 13Multiple responseTopic 12
    Which two roles should you assign to Admin1 to meet the security requirements? Each correct answer presents part of the solution.
    NOTE: Each correct selection is worth one point.
    1. A
      Desktop Virtualization Host Pool Contributor
    2. B
      Desktop Virtualization Application Group Contributor
    3. C
      Desktop Virtualization Workspace Contributor
    4. D
      Desktop Virtualization Application Group Reader
    5. E
      User Access Administrator
    Show answer

    Correct answer: C, D

    Why

    Admin1 needs to view application groups and manage workspaces, matching the least-privilege requirement: Workspace Contributor lets them manage workspaces and Application Group Reader gives read-only access to app groups. Host pool contributor, app group contributor and User Access Administrator grant more than required.

  14. Question 14Single choiceTopic 13
    You need to configure the device redirection settings. The solution must meet the technical requirements.
    Where should you configure the settings?
    1. A
      Workspace1
    2. B
      MontrealUsers
    3. C
      Group1
    4. D
      Pool1
    Show answer

    Correct answer: D

    Why

    Device redirection (RDP properties such as drive, clipboard and USB redirection) is a host pool setting in Azure Virtual Desktop. Configure it in the Pool1 host pool's RDP Properties, not on the workspace, which only controls feed registration, nor on user groups.

  15. Question 15Single choiceTopic 14
    You need to configure the user settings of Admin1 to meet the user profile requirements.
    What should you do?
    1. A
      Modify the membership of the FSLogix ODFC Exclude List group.
    2. B
      Modify the membership of the FSLogix Profile Exclude List group.
    3. C
      Modify the HKLM\SOFTWARE\FSLogix\Profiles registry settings.
    4. D
      Modify the HKLM\SOFTWARE\FSLogix\ODFC registry settings.
    Show answer

    Correct answer: B

    Why

    FSLogix excludes members of the local group 'FSLogix Profile Exclude List' from using Profile containers, so adding Admin1 there gives a normal local profile. The ODFC group affects Office containers only, and registry edits would apply to all users rather than just Admin1.