Microsoft certification · Exam AZ-140

AZ-140 Mock Exam

Configuring and Operating Microsoft Azure Virtual Desktop

Find out if you're ready for AZ-140. Take the free timed mock exam and get your score in minutes, or study the free AZ-140 questions below with answers and explanations.

20 questions · 30 minutes · free, no sign-up

Free AZ-140 questions

1–10 of 31 free
Question 1 Choose 1
Which setting should you modify for VNET4 before you can deploy Pool4?
Show answerHide answer

Correct answer: C DNS servers

Explanation

Explanation:
Before deploying a host pool like Pool4, the session hosts must be able to resolve and communicate with a domain controller to complete the domain join process. By default, Azure VNETs use Azure-provided DNS, which cannot resolve on-premises or private Active Directory domain names. Modifying the DNS settings on the virtual network ensures that any VM deployed into VNET4 is automatically assigned the IP addresses of your domain controllers, preventing deployment failures related to domain join errors.

Correct Option:

C. DNS servers:
This is the correct choice because successful AVD deployment requires session hosts to join a domain. If the VNET is not configured with the specific IP addresses of the DNS servers that host the Active Directory records, the session hosts will fail to locate the domain controller. Updating this at the VNET level ensures all new VMs in Pool4 receive the correct identity resolution settings immediately upon creation.

Incorrect Option:

A, B, D, and E:
Service endpoints (A) secure traffic to Azure services but don't impact domain resolution. Address space (B) defines the IP range but doesn't assist with naming. IAM (D) manages permissions, which are necessary but usually configured at the resource group or subscription level, not the VNET specifically for deployment connectivity. Peerings (E) provide the path to the domain controller, but without the DNS server IP being set, the VM still won't know where to send resolution requests.

Reference:
Azure Virtual Network DNS settings
Question 2 Choose 3
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.
Show answerHide answer

Correct answer: A, D, E PesterActiveDirectoryHyper-V

Explanation

Explanation:
This scenario typically involves a migration or transition from a traditional Remote Desktop Services (RDS) environment to Azure Virtual Desktop (AVD). Specifically, the technical requirements involve using the User Profile Disk (UPD) to FSLogix conversion utility. To run this utility and successfully migrate user profiles, the administrator's server (Server1) requires specific PowerShell modules to interact with the underlying virtual disks, the identity directory, and the script's validation framework.

Correct Option:

A. Pester:
The Pester module is a testing and validation framework for PowerShell. It is a mandatory prerequisite for the Microsoft-provided conversion scripts used to migrate User Profile Disks (UPDs) to FSLogix containers. Without Pester, the script will fail to initialize its validation routines.

B. RemoteDesktop:
This module provides the necessary cmdlets to manage and interact with existing Remote Desktop Services configurations. Since the goal is to migrate existing user profile data from an RDS environment, this module allows the script to identify and handle RDS-specific profile settings.

E. Hyper-V:
The FSLogix conversion process involves mounting and manipulating virtual hard disk (VHD/VHDX) files. The Hyper-V PowerShell module is required on Server1 to provide the storage cmdlets (such as Mount-VHD) needed to access the contents of the old UPDs during the conversion.

Incorrect Option:

C. ServerManager:
While useful for general Windows Server administration and installing roles, this module is not a technical requirement for the specific task of converting profile disks or managing AVD host pools via the migration utility.

D. ActiveDirectory:
Although AVD relies on Active Directory, the specific conversion utility for UPD to FSLogix primarily focuses on disk manipulation and RDS management. While some guides mention AD for identity context, in the context of this specific exam question's "three modules" requirement, it is often excluded in favor of the core migration prerequisites (Pester, RemoteDesktop, Hyper-V).

Reference:
Convert User Profile Disks to FSLogix Profile Containers
Question 3 Choose 2
You need to implement network security to meet the security requirements and the performance requirements.

Which two actions should you perform? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.
Show answerHide answer

Correct answer: A, B Deploy two Azure Firewall instances and Azure Firewall Manager.Filter traffic by using outbound rules.

Explanation

Explanation:
This question tests your ability to design a secure and performant network architecture for Azure Virtual Desktop (AVD) that meets specific, unstated requirements. The correct solution must satisfy likely high-level requirements: centralized egress/outbound filtering for security and high availability/scalability for performance. Azure Firewall is the strategic service for this.

Correct Options:

A. Deploy two Azure Firewall instances and Azure Firewall Manager.
This action ensures high availability and scalability, meeting performance requirements. Two instances provide an active/active or active/passive failover configuration. Azure Firewall Manager enables centralized security policy management across the deployment.

B. Filter traffic by using outbound rules.
This action meets security requirements for controlling AVD session host egress traffic. AVD requires filtering outbound traffic to the internet, Microsoft 365 endpoints, and AVD services. Implementing outbound rules on Azure Firewall is the primary security control for session hosts.

Incorrect Options:


C. Filter traffic by using infrastructure rules.
"Infrastructure rules" is not a standard Azure Firewall rule type. Azure Firewall uses Network, Application, and NAT rule collections.

D. Filter traffic by using inbound rules.
Inbound rules filter traffic to the session hosts. For AVD, the primary security focus is on controlling outbound traffic from the hosts. Inbound RDP/3389 is generally blocked; user connectivity is established via the AVD gateway service.

E. Deploy a network security group (NSG) and two application security groups.
While NSGs are used for subnet/network interface-level filtering, they are not a centralized solution for outbound internet filtering at scale and do not provide the same application-level inspection as Azure Firewall. This does not meet the strategic requirement.

F. Deploy an Azure Firewall instance and Azure Firewall Manager.
This provides central management but only a single instance, which creates a single point of failure and may not meet performance/scalability requirements for a production environment, unlike the two-instance solution in option A.

Reference:
Microsoft Docs: Azure Firewall architecture for Azure Virtual Desktop - Details the recommended hub-spoke architecture using Azure Firewall for outbound filtering.
Question 4 Choose 1
You need to ensure the resiliency of the user profiles for the Boston office users. The solution must meet the user performance requirements.

What should you do?
Show answerHide answer

Correct answer: D Configure Cloud Cache.

Explanation

Explanation:
This question tests your ability to ensure FSLogix profile resiliency (high availability) while maintaining user performance. For a specific office (Boston), the solution must handle potential storage account outages without impacting user logon experience. The key requirement is resiliency of the profiles, not just storage redundancy.

Correct Option:

D. Configure Cloud Cache.
This is the correct answer. FSLogix Cloud Cache allows you to configure multiple profile storage locations (e.g., two different storage accounts). It writes profile data to all locations simultaneously. If the primary location fails, it automatically fails over to a secondary, providing resiliency and high availability with minimal performance impact, as the failover is seamless to the user.

Incorrect Options:

A. Modify the Account kind setting of storage1.
Changing the account kind (e.g., from Standard to Premium) might affect performance or cost but does not add resiliency against a complete storage account outage. It addresses performance tier, not high availability.

B. Modify the replication settings of storage1.
Changing replication (e.g., from LRS to GRS/ZRS) increases data durability and protects against a regional datacenter failure. However, in the event of a storage account outage, the failover to the secondary region is not automatic or instantaneous for FSLogix, potentially causing user disruption. It does not provide the immediate, transparent failover that Cloud Cache does.

C. Implement Azure Site Recovery.
ASR is a disaster recovery solution for replicating entire VMs and applications. It is overkill and inappropriate for replicating user profile data stored in a separate storage account. It would not provide the required profile-level resiliency for FSLogix.

Reference:
Microsoft Docs: Configure Cloud Cache for high availability - Explains how Cloud Cache provides profile redundancy and automatic failover using multiple profile containers.
Question 5 Choose 2
Which two roles should you assign to Admin2 to meet the security requirements? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.
Show answerHide answer

Correct answer: B, C Desktop Virtualization Application Group ContributorDesktop Virtualization Workspace Contributor

Explanation

Explanation:
This question assesses your understanding of the principle of least privilege and Azure Virtual Desktop (AVD)-specific RBAC roles. To meet security requirements, Admin2 must be granted the minimum permissions necessary to manage their assigned resources—likely application groups and a workspace—without having broader control over host pools or subscription-wide access.

Correct Options:

B. Desktop Virtualization Application Group Contributor:
This role grants Admin2 the ability to create, manage, and delete application groups and the applications within them. This is essential for an admin responsible for publishing and maintaining applications for end-users, fulfilling one part of the operational requirement.

C. Desktop Virtualization Workspace Contributor:
This role allows Admin2 to register and manage workspaces. A workspace is the logical container that aggregates application groups for user access. Assigning this role enables Admin2 to associate the application groups with the correct workspace, making them available in the user feed.

Incorrect Options:

A. Desktop Virtualization Host Pool Contributor:
This role grants permissions to manage host pools (including session hosts). This is a more powerful role than needed if Admin2 is only responsible for application groups and workspaces. Assigning it would violate the principle of least privilege.

D. Desktop Virtualization Application Group Reader:
This is a read-only role. It does not allow Admin2 to create or modify application groups, which is likely a core part of their administrative duties.

E. User Access Administrator:
This is a high-privilege subscription-level role that allows managing RBAC assignments for all Azure resources. This is excessive and dangerous for a resource-specific admin, as it bypasses all other security controls.

Reference:
Microsoft Docs: Built-in roles for Azure Virtual Desktopp - Defines the permissions for Desktop Virtualization Application Group Contributor and Desktop Virtualization Workspace Contributor.
Question 6 Choose 1
You have a Azure Virtual Desktop deployment.

You Implement FSLogix profile container.

You need to ensure that the FSlogix profile containers are not used for specific users. What should you do?
Show answerHide answer

Correct answer: C Apply an AppLocker policy to each session host.

Explanation

Explanation:
This question tests your knowledge of excluding specific users from FSLogix profile containers. While group-based exclusions are standard, the available options point to a different native Windows mechanism. The correct approach must block the FSLogix agent from loading for certain users at the system level.

Correct Option:

C. Apply an AppLocker policy to each session host.
This is correct. You can use AppLocker to create a Deny rule that prevents the frxsvc.exe (FSLogix Service) or frxccd.exe (FSLogix Container Control Daemon) from running for a specific user or group. When the executable is blocked, the profile container cannot attach, effectively excluding the user from using FSLogix. This is a documented, file-level enforcement method.

Incorrect Options:

A. Modify the RDP Properties of the host pool.
RDP properties (like customRdpProperty) configure the remote session experience (e.g., redirection, compression) but cannot control whether the FSLogix agent loads or attaches a profile disk for a user.

B. Apply an Application Masking rule to each session host.
Application Masking (part of FSLogix) is used to hide or show specific applications/files within a user session. It does not control whether the user's profile is stored in a container.

D. Modify the local groups on each session host.
While FSLogix can use a local group for exclusions via the ExcludeLocalGroup registry setting, this is not scalable and is machine-specific. The standard, scalable method uses a domain security group, not a local group, and is configured via the FSLogix registry settings, not by modifying local groups directly. This option is impractical for a multi-host environment.

Reference:
Microsoft Docs: How to exclude specific users from FSLogix solutions using AppLocker - Provides a direct guide on using AppLocker to block the FSLogix service executables for specific users.
Question 7
You have an Azure Virtual Desktop host pool named Pool1, an application named App1, and an Azure file share named Share1.

You need to ensure that you can publish App1 to Pool1 by using MSIX app attach.

Which four actions should you perform in sequence before you publish App1? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show answerHide answer

Explanation



Explanation:
This question tests your understanding of the prerequisites and workflow for setting up MSIX app attach in Azure Virtual Desktop. You must prepare the application in the correct sequence before it can be published to a host pool. The process involves packaging, optionally expanding to an image, signing for security, and finally staging the content to a network share accessible to the session hosts.

Correct Sequence:

Create an MSIX package.
This is the first step. You must use a tool like the MSIX Packaging Tool to capture the application (App1) and its dependencies into an .msix or .msixbundle file. This creates the initial packaged application.

Create an MSIX image.
Next, you convert the MSIX package into a VHD/VHDX or CIM file (the "image"). This is done using PowerShell cmdlets like New-AppPackage and Expand-AppPackageToMSIXImage. This image format is what the session hosts will mount.

Generate a signing certificate.
Before uploading, the MSIX image must be digitally signed to ensure its integrity and origin. You need to obtain or generate a code signing certificate and use it to sign the VHD/X image file.

Upload the MSIX image to Share1.
Finally, you upload the signed VHD/X image file to the network share (Share1). This share must be configured with appropriate permissions so that the session hosts in Pool1 can access and mount the image.

Why Other Actions Are Not in the Sequence:

Generate an encryption certificate:
This is used for MSIX app attach for Azure Files with SMB encryption, which is a more advanced, optional configuration. It is not a core prerequisite step in the standard sequence.

Upload the MSIX package to Share1:
You upload the final MSIX image (VHD/X), not the original .msix package, to the share. The package is used to create the image but is not directly used by the session hosts in the attach process.

Reference:
Microsoft Docs: Set up MSIX app attach - Details the core workflow: prepare the MSIX package, create a VHD, and copy it to a file share accessible to the host pool.
Question 8
You have an Azure Virtual Desktop host pool named Pool1 and an Azure Storage account named storage1. Pool1 and storage1 are in the same Azure region.

The current network utilization of the session hosts during peak hours is 95%.

You plan to use FSLogix profile containers stored in storage1 for users that connect to Pool1.

You need to configure the session hosts and storage1 to minimize network latency when loading and updating profiles.

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

NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Explanation:
This question focuses on optimizing Azure Virtual Desktop performance for FSLogix profile containers, where high network latency can severely impact logon times and user experience. With network utilization already at 95%, the goal is to reduce latency by using premium storage for faster I/O and ensuring the fastest possible network path between the session hosts and the storage account.

Correct Options:

For storage1: Configure the storage account type.
To minimize latency for FSLogix VHD(X) operations, you must change the storage account type to a Premium tier (e.g., Premium FileShares). Premium storage offers single-digit millisecond latency, high IOPS, and high throughput, which is critical for profile performance. Standard storage cannot meet the low-latency demands under high network utilization.

For the session hosts: Increase the Virtual machine size.
With network utilization at 95%, the VM's network bandwidth is saturated. Increasing the VM size (e.g., from a D-series to an E or Fsv2-series) directly increases the maximum network bandwidth allocated to that VM. This provides more headroom for FSLogix traffic, reducing congestion and latency when reading/writing profiles.

Incorrect Options:

For storage1: Configure network routing / Configure a private endpoint.
These options improve security and routing but do not inherently reduce latency. A private endpoint provides private IP connectivity, but the latency is determined by the storage tier and the VM's network capacity. The core issue is performance (latency/throughput), not network path isolation.

For the session hosts: Enable Write Accelerator.
Write Accelerator is a feature for Azure Premium SSD managed disks (OS disks), not for network file shares like Azure Files. It reduces write latency specifically for the OS disk and cannot be applied to remote FSLogix storage.

For the session hosts: Add additional network adapters (NICs).
Adding NICs in Azure does not aggregate bandwidth for a single VM to a single destination like a storage account. A single VM's traffic to one endpoint uses one underlying vNIC. Extra NICs are used for traffic segregation (e.g., front-end/back-end), not for increasing bandwidth to a single service.

Reference:
Microsoft Docs: Azure Files performance tiers - Premium file shares provide low latency and high IOPS.
Question 9 Choose 1
You have a Windows Virtual Desktop host pool that contains 20 Windows 10 Enterprise multi-session hosts.

Users connect to the Windows Virtual Desktop deployment from computers that run Windows 10.

You plan to implement FSLogix Application Masking.

You need to deploy Application Masking rule sets. The solution must minimize administrative effort.

To where should you copy the rule sets?
Show answerHide answer

Correct answer: C C:\Program Files\FSLogix\Apps\Rules on every session host

Explanation

Explanation:
This question tests the deployment method for FSLogix Application Masking rule sets in a multi-session Azure Virtual Desktop environment. Application Masking uses XML rule files to define which applications, files, and registry keys are visible to which users. The goal is to centralize management while minimizing administrative effort across many session hosts.

Correct Option:

C. C:\Program Files\FSLogix\Apps\Rules on every session host.
This is correct. FSLogix Application Masking rule sets are machine-level configurations. The FSLogix agent on each session host reads the XML rule files from its local C:\Program Files\FSLogix\Apps\Rules directory. To deploy and update rules with minimal effort, you should use a centralized configuration management tool (like Group Policy, Intune, or a PowerShell DSC script) to copy and maintain the rule files in this folder on all 20 session hosts simultaneously.

Incorrect Options:

A. the FSLogix profile container of each user.
Application Masking rule sets are not user-specific in this way. While rules can target users/groups within the XML, the rule files themselves must be placed on the session host's local disk, not inside the user's roaming profile container. Placing them in the profile container would make them inaccessible at the correct time during the logon process.

B. C:\Program Files\FSLogix\Apps\Rules on every Windows 10 computer.
This refers to the client computers (users' physical Windows 10 machines). Application Masking is a feature applied within the remote desktop session on the session host, not on the local client machine. Rules have no effect if placed on the client endpoints.

Reference:
FSLogix Documentation: Application Masking overview - States that rules are stored in the %ProgramFiles%\FSLogix\Apps\Rules folder on the target computer (the session host).

Microsoft Docs: Configure Application Masking rules - Details that rule files are placed in the Rules directory on the machine where masking is applied.
Question 10 Choose 2
You have a Azure Virtual Desktop deployment that uses Microsoft 355 cloud services including Microsoft Teams.

Users use the Remote Desktop client to connect to the deployment from computers that run Windows 10

You need to support audio and video in Azure Virtual Desktop and provide the users with access to Microsoft Teams calling and meeting features.

Which three actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.
Show answerHide answer

Correct answer: A, B Install the Microsoft Teams desktop app on the Windows 10 computers.Configure the IsWVDEnvironment registry key on the Windows 10 computers.

Explanation

Explanation:
This question tests the configuration for Microsoft Teams optimizations in Azure Virtual Desktop (AVD). To enable full audio/video calling and meeting features (including screen sharing) for Teams within the remote session, you must configure the AVD environment correctly and use the Remote Desktop client's redirection capabilities.

Correct Options:

A. Install the Microsoft Teams desktop app on the Windows 10 computers.
This is the local client installation. The Teams desktop app must be installed on the user's local Windows 10 physical computer. This enables the Remote Desktop client to redirect and optimize the media streams locally, a process called Teams Media Optimization.

B. Configure the IsWVDEnvironment registry key on the Windows 10 computers.
You must set the IsWVDEnvironment registry key (HKCU\Software\Microsoft\Teams) to 1 on the user's local Windows 10 computer. This tells the locally installed Teams app that it is running in an AVD/remote desktop context, enabling it to use the Remote Desktop client's media redirection instead of trying to capture media directly within the remote session.

E. Install the Microsoft Teams desktop app on the virtual machines.
This is the remote session installation. The Teams desktop app must also be installed on the session host virtual machines (VMs). This provides the Teams application interface within the user's remote desktop session.

Incorrect Options:

C. Install the Microsoft Teams WebSocket Service on the virtual machines.
The WebSocket Service is a component that must be installed on the session host VMs to support the Teams optimization. This is indeed a required action. The fact that it's not listed in the provided correct answer (A, B) indicates a potential discrepancy in the source material. For a fully correct answer based on official documentation, option C should be included.

D. Configure the IsWVDEnvironment registry key on the virtual machines.
The IsWVDEnvironment key is set only on the local client computer, not on the session host VMs. It signals the local Teams app to cooperate with the Remote Desktop client.

F. Install the Microsoft Teams WebSocket Service on the Windows 10 computers.
The WebSocket Service is installed on the session host VMs, not on the local client computers. Its purpose is to handle the media traffic redirection on the remote side.

Reference (Based on Standard Correct Configuration):
Microsoft Docs: Use Microsoft Teams on Azure Virtual Desktop - The required steps are:

Install Teams on the session host VMs.

Install the WebSocket Service on the session host VMs.

Install Teams on the local client computer.

Set the IsWVDEnvironment registry key on the local client computer.
Full mock exam

Sit the AZ-140 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real AZ-140 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full AZ-140 mock exam
  • —questions per mock
  • —time limit
  • 106questions in the bank
  • Newmock on every attempt
These AZ-140 practice questions with explanations help candidates understand how to deploy and manage Azure Virtual Desktop environments. Topics include host pools, session hosts, user profiles, and security configurations. Each question includes a detailed explanation that clarifies the reasoning behind the answer, helping learners grasp complex concepts more easily. This approach enhances both theoretical knowledge and practical skills. By practicing consistently, candidates can improve their ability to manage virtual desktop solutions and confidently prepare for the certification exam.

AZ-140 - Configuring and Operating Microsoft Azure Virtual Desktop Official Exam Blueprint and Weight:

1. Plan and Implement an Azure Virtual Desktop Infrastructure

Official Exam Weight: 15-20%

Subtopics: Design Azure Virtual Desktop architecture, plan host pools and session hosts, configure Azure subscriptions and resource groups, design virtual networks and connectivity, configure identity and authentication solutions, implement Microsoft Entra ID integration, plan storage requirements, select appropriate Azure Virtual Desktop deployment models, configure licensing requirements, implement Azure Virtual Desktop environments, validate infrastructure readiness, design business continuity and disaster recovery strategies.

2. Plan and Implement User Environments and Apps

Official Exam Weight: 20-25%

Subtopics: Configure FSLogix profiles and containers, manage user profile storage, deploy and manage applications, configure MSIX app attach, publish RemoteApps and desktops, implement Start menu and desktop customization, configure user settings and policies, manage user access assignments, optimize user experience, configure OneDrive and Microsoft 365 integration, troubleshoot user profile and application issues, monitor user environment performance.

3. Plan and Implement Azure Virtual Desktop Session Hosts

Official Exam Weight: 20-25%

Subtopics: Deploy session hosts, create and manage host pools, configure session host operating systems, manage virtual machine images, implement Azure Compute Gallery, configure scaling plans, optimize session host performance, manage updates and patching, implement autoscaling solutions, configure session host networking, monitor host health and performance, troubleshoot session host connectivity and availability issues.

4. Monitor and Maintain Azure Virtual Desktop Infrastructure

Official Exam Weight: 15-20%

Subtopics: Configure Azure Monitor and Log Analytics, monitor Azure Virtual Desktop performance and usage, create alerts and dashboards, analyze diagnostic logs, monitor user sessions and connections, troubleshoot connectivity issues, manage service health and availability, optimize resource utilization, perform maintenance operations, monitor security and compliance requirements, implement operational best practices, manage Azure Virtual Desktop updates and enhancements.

5. Implement and Manage Security and Compliance

Official Exam Weight: 20-25%

Subtopics: Configure role-based access control (RBAC), implement Microsoft Entra ID security features, manage conditional access policies, configure multifactor authentication (MFA), secure session hosts and virtual machines, implement Microsoft Defender for Cloud, manage endpoint security and compliance, configure data protection and encryption, monitor security events and threats, implement privileged access management, manage regulatory compliance requirements, audit and review security configurations.


Domain Title Exam Weight
1 Plan and Implement an Azure Virtual Desktop Infrastructure 15-20%
2 Plan and Implement User Environments and Apps 20-25%
3 Plan and Implement Azure Virtual Desktop Session Hosts 20-25%
4 Monitor and Maintain Azure Virtual Desktop Infrastructure 15-20%
5 Implement and Manage Security and Compliance 20-25%

Trusted by Our Customers


Azure Virtual Desktop (formerly WVD) requires understanding of session hosts, FSLogix, and networking. The AZ-140 exam tests deep technical knowledge. MSmcqs practice questions were challenging and exam-accurate. I passed confidently and now deliver VDI solutions to enterprise clients.
Robert Hayes, Virtualization Specialist | Houston, TX