Practice Free AZ-140 Exam Online Questions
You have an Azure subscription that contains an Azure Virtual Desktop deployment, a standard Azure Firewall instance named FW1, and the virtual networks shown in the following table.
You need to configure VNet2 to route all outbound traffic via FW1. The solution must minimize the impact on the Azure Virtual Desktop deployment.
What should you do first?
- A . Upgrade FW1 to the Premium SKU
- B . Deploy Azure NAT Gateway to VNet1.
- C . For FW1, enable DNS Proxy.
- D . Deploy Azure Route Server to VNet2.
You have an Azure subscription that contains an Azure Compute Gallery named Gallery1 and a virtual machine named Template1 Template1 has custom apps and settings configured.
You plan to deploy Azure Virtual Desktop session hosts by using a custom virtual machine image.
The solution must meet the following requirements:
• The custom image must be stored in Gallery"1.
• The custom image must be based on Template1.
• All new session hosts must have unique compute1 names and identifiers.
You need to create the custom image.
What should you do in the Azure portal?
- A . From Template1 capture a generalized virtual machine image.
- B . From Gallery1, create a new VM image definition.
- C . From Gallery1, create a new VM application definition.
- D . From Template1, capture a specialized virtual machine image.
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 a Windows 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 Windows Virtual Desktop sessions. The session hosts must be allowed to access all the required Microsoft services.
Solution: You configure the Address space settings of the virtual network that contains the session hosts.
Does that meet the goal?
- A . Yes
- B . No
HOTSPOT
You have an Azure subscription that contains the vaults shown in the following table.
You have an Azure Virtual Desktop deployment that contains the host pools shown in the following table.
You need to back up all the session hosts in Pool1 and Pool2.
What should you do for each pool? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

HOTSPOT
You have an Azure Virtual Desktop host pool that contains 10 session hosts.
You plan to configure each session host to use an FSLogix profile container that will exclude specific folders in the user profile.
You need to perform the following configurations:
• Create a configuration file to list the excluded profile folders.
• Identify which registry setting will distribute the file to each session host automatically.
What should you name the configuration file, and which registry setting should you identify? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You deploy a Windows Virtual Desktop host pool named Pool1.
You have an Azure Storage account named store1 that stores FSLogix profile containers in a share named profiles.
You need to configure the path to the storage containers for the session hosts.
Which path should you use?
- A . \store1.blob.core.windows.netprofiles
- B . https://store1.file.core.windows.net/profiles
- C . \store1.file.core.windows.netprofiles
- D . https://store1.blob.core.windows.net/profiles
C
Explanation:
https://docs.microsoft.com/en-us/azure/virtual-desktop/store-fslogix-profile
Azure offers multiple storage solutions that you can use to store your FSLogix profile container. We recommend storing FSLogix profile containers on Azure Files for most of our customers.
You have an Azure subscription.
You create an Azure Resource Manager (ARM) template named AVDjson that defines an Azure Virtual Desktop deployment. You need to use PowerShell to provision the deployment by using AVDjson.
Which PowerShell cmdlet should you use?
- A . New-AzWvdRegistrationlnfo
- B . New-AzWvdHostPool
- C . New-AzResource
- D . New-AzResourceGroupOeployment
Which three PowerShell modules should you install on Server1 to meet the technical requirements? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Pester
- B . RemoteDesktop
- C . ServerManager
- D . ActiveDirectory
- E . Hyper-V
BDE
Explanation:
Given that we are looking for three PowerShell modules necessary for managing an Azure Virtual Desktop (AVD) environment and converting user profile disks to FSLogix profile containers, we should consider modules that are related to these tasks. Based on the options provided and the typical requirements for these tasks, here are the considerations:
RemoteDesktop: This module is used to configure and manage a Remote Desktop environment, which is necessary for tasks such as configuring RDP properties on a Windows Virtual Desktop host.
ActiveDirectory: Since Azure Virtual Desktop integrates with Azure AD and may require synchronization or management of user entities, the ActiveDirectory module could be useful for scripting tasks related to domain services.
Hyper-V: While the Azure Virtual Desktop environment operates in the cloud, the Hyper-V module could potentially be used if there is a need to manage local VMs or if Server1 is also being used to configure or convert virtual machines that are being prepared for Azure.
Given that the FSLogix profile containers are related to user profiles and the conversion process might involve actions related to Active Directory and virtual machines, the three PowerShell modules that should be installed on Server1 to meet the technical requirements are likely:
B. RemoteDesktop: To manage RDP properties and sessions within the AVD environment.
D. ActiveDirectory: To handle any user profile and directory services-related tasks.
E. Hyper-V: To manage virtual machines, especially if the conversion process involves local VMs before they are migrated to Azure.
These modules would provide the necessary tools to administer the AVD environment and handle the conversion of user profiles to FSLogix containers as per the requirements of the case study.
You have an Azure Active Directory Domain Services (Azure AD DS) managed domain named conioso.com.
You create a Azure Virtual Desktop host pool named Pool1. You assign the Virtual Machine Contributor role for the Azure subscription to a user named Admin1.
You need to ensure that Admin1 can add session hosts to Pool1. The solution must use the principle of least privilege.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Add Admin1 to the AAD DC Administrators group.
- B . Assign a Microsoft 36S Enterprise E3 license to Admin1.
- C . Assign Admin1 the Desktop Virtualization Session Host Operator role tor Pool1.
- D . Assign Admin1 the Desktop Virtualization Host Pool Contributor role for Pool1.
- E . Generate a registration token.
C, E
Explanation:
To ensure that Admin1 can add session hosts to Pool1 in Azure Virtual Desktop with the principle of least privilege, the following actions should be performed:
C. Assign Admin1 the Desktop Virtualization Session Host Operator role for Pool1: This role provides the specific permissions needed to manage session hosts within a given host pool without granting broader permissions that are not necessary.
E. Generate a registration token: Admin1 will need a registration token to add session hosts to Pool1. The registration token is used when setting up new session hosts to join them to the host pool.
Adding Admin1 to the AAD DC Administrators group (A) would provide broader administrative privileges over the Azure AD DS managed domain than necessary for the task. Assigning a Microsoft 365 Enterprise E3 license to Admin1 (B) is related to user licensing for Microsoft 365 services and is not directly related to managing Azure Virtual Desktop resources. Assigning Admin1 the Desktop Virtualization Host Pool Contributor role for Pool1 (D) would grant more permissions than necessary for just adding session hosts.
HOTSPOT –
You have an Azure Virtual Desktop deployment that contains a host pool named Pool1. Pool1 contains two session hosts.
Pool1 is configured as shown in the following exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic. NOTE: Each correct selection is worth one point.
