Microsoft - AZ-140: Configuring and Operating Microsoft Azure Virtual Desktop
Sample Questions
Question: 374
Measured Skill: Plan and implement user environments and apps (20–25%)
You have an Azure subscription that contains an Azure Virtual Desktop host pool named Pool1. Pool1 contains a single session host named Host1.
You need to ensure that when an Azure Virtual Desktop session has been inactive for 30 minutes, the user is signed out of the session automatically. The solution must NOT affect other session timeout settings.
What should you do?| A | From the Microsoft 365 admin center, configure the Security & privacy settings. |
| B | From Host1, run the Set-ItemProperty cmdlet. |
| C | From the Microsoft Entra admin center, create and assign a Conditional Access session policy. |
| D | From the Local Group Policy Editor on Host1, modify the Remote Desktop Services settings. |
Correct answer: DExplanation:
We should configure the "Set time limit for active but idle Remote Desktop Services sessions" setting from the local group policy on Host1 as shown below:

Question: 375
Measured Skill: Plan and implement an Azure Virtual Desktop infrastructure (40–45%)
You have an on-premises Hyper-V host named Server1 and an Azure subscription.
On Server1, you create a virtual machine named VM1 that has the following configurations:
- Generation: 2
- Virtual disk name: ImageC.vhdx
- Virtual disk type: Dynamically expanding
You generalize VM1.
You plan to deploy Azure Virtual Desktop by using a custom VM1 image.
You need to prepare ImageC.vhdx to ensure that can it be used as a source for the deployment.
What should you do?
(To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.)
| A | Convert ImageC.vhdx to: Dynamically expanding VHD
Upload the virtual disk to: Azure Files |
| B | Convert ImageC.vhdx to: Dynamically expanding VHD
Upload the virtual disk to: Azure Blob Storage |
| C | Convert ImageC.vhdx to: Fixed-size VHD
Upload the virtual disk to: Azure Container Registry |
| D | Convert ImageC.vhdx to: Fixed-size VHD
Upload the virtual disk to: Azure Blob Storage |
| E | Convert ImageC.vhdx to: Fixed-size VHDX
Upload the virtual disk to: Azure Container Registry |
| F | Convert ImageC.vhdx to: Fixed-size VHDX
Upload the virtual disk to: Azure Files |
Correct answer: DExplanation:
Azure Virtual Desktop custom images require the OS disk to be in a format supported by Azure. Before you upload a Windows virtual machine (VM) from on-premises to Azure, you must prepare the virtual hard disk (VHD or VHDX). Azure supports both generation 1 and generation 2 VMs that are in VHD file format and that have a fixed-size disk. The maximum size allowed for the OS VHD on a generation 1 VM is 2 TB.
We should use the Storage Explorer tool and upload the VHD file to Azure Blob Storage. Then, we can create an Azure image or a managed disk based on the blob.
References:
Prepare a Windows VHD or VHDX to upload to Azure
Prepare and customize a VHD image for Azure Virtual Desktop
Question: 376
Measured Skill: Plan and implement user environments and apps (20–25%)
You have an Azure Virtual Desktop deployment.
You need to enable the redirection of USB drives to the virtual machines. The solution must ensure that all the USB drives are accessible.
What should you do?| A | Configure the RDP properties of the host pool. |
| B | Install the Remote Desktop WebRTC Redirector Service on the session hosts. |
| C | Configure the local Group Policy settings of the session hosts. |
| D | Install Windows App on user devices. |
Correct answer: AExplanation:
You can configure the redirection of certain USB peripherals between a local Windows device and a remote session over the Remote Desktop Protocol (RDP).
To make all USB drives accessible in Azure Virtual Desktop, you control device redirection through the host pool RDP properties.

Reference: Configure USB redirection on Windows over the Remote Desktop Protocol
Question: 377
Measured Skill: Plan and implement an Azure Virtual Desktop infrastructure (40–45%)
You have a Microsoft 365 subscription that contains 200 users. Each user is assigned a Microsoft 365 Apps for business license.
You plan to deploy an Azure Virtual Desktop personal host pool to support 50 users. The planned deployment will have the following configurations:
- A dedicated virtual machine will be assigned to each user.
- Each virtual machine will run Windows 11 and have Microsoft 365 apps installed.
You need to recommend a licensing solution for the deployment. The solution must minimize costs.
Which type of license should you include in the recommendation?| A | Windows 11 Enterprise E3 |
| B | Microsoft Entra ID P2 |
| C | Microsoft 365 F3 |
| D | Remote Desktop Services client access licenses (RDS CALs) |
Correct answer: AExplanation:
The users currently have Microsoft 365 Apps for business licenses. This license provides Microsoft 365 applications, but it does not include Azure Virtual Desktop access rights for Windows 11 Enterprise desktops.
To access Windows 11 desktops in Azure Virtual Desktop, users must have an eligible license such as:
- Microsoft 365 E3/E5
- Microsoft 365 Business Premium
- Microsoft 365 F3
- Windows 11 Enterprise E3/E5
- Windows VDA per user
Reference: Licensing Azure Virtual Desktop
Question: 378
Measured Skill: Plan and implement user environments and apps (20–25%)
You have an Azure subscription that contains an Azure Virtual Desktop session host named Host1 and a user named User1.
You need to assign Host1 as a personal desktop to User1.
Which cmdlet should you run?| A | Update-AzWvdSessionHost |
| B | Set-AzWvdHostPool |
| C | Set-RdsSessionHost |
| D | Update-AzWvdHostPool |
Correct answer: AExplanation:
A personal host pool is a type of host pool that has personal desktops. Personal desktops have one-to-one mapping, which means a single user can only be assigned to a single personal desktop. Every time the user signs in, their user session is directed to their assigned personal desktop session host.
Personal desktops are ideal for users with resource-intensive workloads because the user experience and session performance improves if there's only one session on the session host. Another benefit of this host pool type is that user activities, files, and settings can persist on the virtual machine operating system (VM OS) disk after the user signs out because it's only for them.
Users can automatically be assigned to any previously unassigned personal desktop in the host pool when they connect. Alternatively, you can assign users to a specific personal desktop before they connect.
To assign a specific session host (Host1) as a personal desktop to a user, you update the session host's AssignedUser property.
The PowerShell cmdlet used for this is:
Update-AzWvdSessionHost `
-ResourceGroupName <RGName> `
-HostPoolName <HostPoolName> `
-Name <SessionHostName> `
-AssignedUser <UserUPN>
References:
Configure personal desktop assignment
Update-AzWvdSessionHost