AZ-140 Practice Test Questions

106 Questions


Topic 3, Misc. Questions

You deploy an Azure Virtual Desktop session host pool.

You need to provide a group of pilot users access to the virtual machines in the pool. What should you do?


A. Create a role definition.


B. Add the users to a Remote Desktop Users group on the virtual machines.


C. Add the users to the local Administrators group on the virtual machines.


D. Create a role assignment.





D.
  Create a role assignment.

Explanation:
This question tests the fundamental Azure Virtual Desktop (AVD) access control model. Access to AVD resources (like desktops and applications) is not managed via local machine groups on the session hosts. Instead, it is controlled through Azure role-based access control (RBAC) assignments on the AVD objects themselves. This centralizes management and scales across all VMs in the pool.

Correct Option:

D. Create a role assignment.
This is the correct answer. You must create a role assignment that grants the pilot user group (as a security principal) the appropriate AVD user role (like Desktop Virtualization User) on the application group or workspace. This assignment authorizes the users to see and launch the resources in their feed.

Incorrect Options:

A. Create a role definition.
A role definition is a custom set of permissions you create if the built-in Azure roles don't meet your needs. It does not, by itself, grant access. You must still create a role assignment that links a user/group to this custom role. This step is unnecessary for standard user access.

B. Add the users to a Remote Desktop Users group on the virtual machines.
While this local group is technically required for RDP logon, the AVD agent automatically manages its membership based on Azure RBAC assignments. Manual addition is not scalable, prone to error, and bypasses the central AVD management model.

C. Add the users to the local Administrators group on the virtual machines.
This grants excessive administrative privileges on the session host VMs, violating the principle of least privilege and posing a major security risk. Users only need access to their remote desktop session, not administrative control of the VM.

Reference:
Microsoft Docs: Delegate access in Azure Virtual Desktop - Explains that you grant user access by assigning the built-in role "Desktop Virtualization User" to users/groups on an application group.

You have an Azure Active Directory (Azure AD) tenant named contoso.com and an Azure virtual network named VNET1.

To VNET1, you deploy an Azure Active Directory Domain Services (Azure AD DS) managed domain named litwareinc.com.

To VNET1, you plan to deploy a Windows Virtual Desktop host pool named Pool1.

You need to ensure that you can deploy Windows 10 Enterprise host pools to Pool1.

What should you do first?


A. Modify the settings of the litwareinc.com DNS zone.


B. Modify the DNS settings of VNET1.


C. Add a custom domain name to contoso.com.


D. Implement Azure AD Connect cloud sync.





B.
  Modify the DNS settings of VNET1.

Explanation:
This question tests the prerequisite network configuration for deploying Azure Virtual Desktop (AVD) session hosts into an Azure AD DS managed domain. The session host VMs must be able to resolve and communicate with the Azure AD DS managed domain controllers to join the domain. This requires the virtual network to be configured to use the Azure AD DS-provided DNS servers.

Correct Option:

B. Modify the DNS settings of VNET1.
This is the correct first step. When you deploy an Azure AD DS managed domain, it provides two dedicated IP addresses that act as DNS servers for the domain. You must configure VNET1's DNS server settings to use these Azure AD DS-provided IP addresses. This ensures any VMs deployed into VNET1 (including future AVD session hosts) can resolve the litwareinc.com domain and successfully join it.

Incorrect Options:

A. Modify the settings of the litwareinc.com DNS zone.
The DNS zone in Azure AD DS is managed by the service itself. You cannot directly modify its core settings (like NS or SOA records) to facilitate VM domain join. The resolution issue is at the network level (VNET configuration), not the zone level.

C. Add a custom domain name to contoso.com.
This relates to adding a verified domain (like litwareinc.com) to the Azure AD tenant contoso.com. This step is already implied as completed because the Azure AD DS domain litwareinc.com exists. It is not an action that resolves the session host's ability to find and join the domain.

D. Implement Azure AD Connect cloud sync.
Azure AD Connect (or Cloud Sync) is used to synchronize identities from an on-premises Active Directory to Azure AD. It is not required for Azure AD DS, which is a separate, standalone managed domain service. It does not help VMs join the Azure AD DS domain.

Reference:
Microsoft Docs: Update DNS settings for the Azure virtual network - Explicitly states that after enabling Azure AD DS, you must update the virtual network's DNS settings to point to the Azure AD DS DNS IP addresses.

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?


A. Apply a Group Policy setting that blocks the cleanup of unused language packs.


B. Apply a Group Policy setting to disable the Time & language settings.


C. Configure the international settings on each host.


D. Assign a default time zone on each host.





B.
  Apply a Group Policy setting to disable the Time & language settings.

Explanation:
This question addresses a specific issue in multi-session AVD environments where Windows 10/11 Enterprise multi-session or Windows Server session hosts can automatically remove unprovisioned language packs to save disk space. The French language pack was likely installed as a "standalone" pack and not integrated into the base image, causing the system to clean it up.

Correct Option:

B. Apply a Group Policy setting to disable the Time & language settings.
This is correct. The specific policy is "Disable the Time & language settings page" located under Computer Configuration > Administrative Templates > Control Panel. Enabling this policy prevents the system's automatic cleanup process from removing language packs that are not in the provisioned list. It locks the language configuration, preserving manually installed language packs like French.

Incorrect Options:

A. Apply a Group Policy setting that blocks the cleanup of unused language packs.
There is no direct Group Policy named exactly this. The cleanup behavior is controlled indirectly by policies related to language provisioning and the settings page, not by a standalone "cleanup blocker."

C. Configure the international settings on each host.
This is a manual, per-host action that does not prevent the system cleanup process. The settings would be reverted when the system automatically removes the unprovisioned language pack. It is not a permanent, policy-enforced solution.

D. Assign a default time zone on each host.
This has no relation to preserving installed language packs. Time zone and language settings are separate configurations.

Reference:
Microsoft Docs: Language packs in Windows 10/11 multi-session - Explains that language packs can be removed if not provisioned and recommends using Group Policy to restrict changes to language settings to prevent this automatic cleanup.

You have an Azure Virtual Desktop deployment.

You deploy and configure Azure Virtual Desktop in a secondary location.

You plan to perform a test failover to the secondary location, but discover existing user sessions to the primary location.

You need to sign out users from the session hosts in the primary location.

Which PowerShell cmdlet should you run?


A. Invoke-RdsUserSessionLogoff


B. Remove-AzWvdUserSession


C. Invoke-RestMethod


D. Remove-Alias





B.
  Remove-AzWvdUserSession

Explanation:
This question tests your knowledge of PowerShell cmdlets for managing Azure Virtual Desktop (AVD) user sessions in the modern Az.DesktopVirtualization module. The requirement is to actively sign out (log off) existing user sessions from the primary location's session hosts, which is a direct administrative action on a user session object.

Correct Option:

B. Remove-AzWvdUserSession.
This is the correct cmdlet from the Az.DesktopVirtualization PowerShell module. It is specifically designed to log off a user session from a session host in an AVD host pool. You can specify the host pool, session host, and session ID to target the users in the primary location for sign-out.

Incorrect Options:

A. Invoke-RdsUserSessionLogoff.
This cmdlet belongs to the legacy RDS PowerShell module (Microsoft.RDInfra.RDPowershell), which was used for the classic Windows Virtual Desktop deployment model. It is not the correct module for current Azure Resource Manager (ARM)-based AVD deployments.

C. Invoke-RestMethod.
This is a generic PowerShell cmdlet used to call REST API endpoints. While the underlying AVD action might use a REST API, this is not the direct, purpose-built cmdlet for managing AVD user sessions. It requires manual construction of the API call, which is inefficient and error-prone.

D. Remove-Alias.
This cmdlet is used to remove an alias (a nickname for a cmdlet) from the current PowerShell session. It has absolutely nothing to do with managing AVD user sessions or resources.

Reference:
Microsoft Docs: Remove-AzWvdUserSession - The official documentation for the cmdlet used to log off a user session in an Azure Virtual Desktop host pool.

You have an Azure Virtual Desktop deployment.

You need to create a host pool. The solution must ensure that during periods of tow CPU usage, credits can be accumulated, and then used to raise performance above the purchased baseline during periods of high CPU usage.

Which virtual machine series should you specify when you create the pool?


A. H-series


B. series


C. series


D. series





B.
  series

Explanation:
This question tests your knowledge of Azure VM series and their performance characteristics, specifically focusing on bursting capability. The key requirement is the ability to accumulate CPU credits during low usage and use them for higher performance later. This is the defining feature of burst-capable VM series, which are optimized for workloads with variable CPU demand.

Correct Option:

B. B-series.
The correct answer is B-series (Burstable). VMs in the B-series (like B2s, B4ms) have a baseline CPU performance. When usage is below baseline, they accumulate CPU credits. When an application requires higher CPU performance, the VM can burst above its baseline by consuming those accumulated credits. This perfectly matches the requirement described.

Incorrect Options (Based on Standard VM Series Naming):

A. H-series.
The H-series is designed for high-performance computing (HPC) workloads. These are specialized VMs with high CPU core counts, high memory bandwidth, and fast InfiniBand networking. They do not feature a bursting model; they provide consistent, high-level performance.

C. D-series / Dsv3-series.
The D-series (General Purpose) and Dsv3-series are standard, fixed-performance VMs. They offer consistent CPU performance at their selected tier but do not have a credit-based bursting mechanism. For variable performance, you would need to scale the VM size up/down or use the B-series.

D. A-series / Av2-series.
The A-series are basic, economical VMs for entry-level workloads. They offer consistent performance at a low cost but do not support CPU credit-based bursting. They are not suitable for the described scenario.

Reference:
Microsoft Docs: B-series burstable virtual machine sizes - Explains how B-series VMs can accumulate credits when using less than the baseline and burst when needed.

You have an Azure Virtual Desktop host pool. The pool contains session hosts that run Windows 10 Enterprise multi-session.

You connect to a Remote Desktop session on Pool1 and discover an issue with the frequency of screen updates.

You need to identify whether the issue related to insufficient server, network, or client resources. The solution must minimize how long it takes to identify the resource type.

What should you do?


A. From within the current session, use the Azure Virtual Desktop Experience Estimator.


B. From Azure Cloud Shell, run the Get-AzOperationalInsightsWorkspaceUsage cmdlet and specify the DefaultProfile parameter.


C. From Azure Cloud Shell, run the Get-AzWvdUserSession cmdlet and specify the UserSessionId parameter.


D. From within the current session, use Performance Monitor to display the values of all the RemoteFX Graphics(*)\Frames Skipped/Second counters.





D.
  From within the current session, use Performance Monitor to display the values of all the RemoteFX Graphics(*)\Frames Skipped/Second counters.

Explanation:
This question tests your ability to diagnose performance issues (specifically screen update frequency) within an active AVD session. The requirement is to quickly identify the resource bottleneck type (server, network, client) from within the problematic session itself. The most direct, real-time method is to examine performance counters that differentiate between graphics rendering (server) and network transport issues.

Correct Option:

D. From within the current session, use Performance Monitor to display the values of all the RemoteFX Graphics(*)\Frames Skipped/Second counters.
This is correct. Within the Performance Monitor (perfmon) on the session host (accessible from within your session), the RemoteFX Graphics counters are key. High values in specific sub-counters, like "Frames Skipped/Second - Insufficient Server Resources" vs. "Frames Skipped/Second - Insufficient Network Resources", directly identify whether he bottleneck is the server (CPU/GPU) or the network. This provides immediate, actionable diagnostics.

Incorrect Options:

A. From within the current session, use the Azure Virtual Desktop Experience Estimator.
The Experience Estimator is a planning tool used before deployment to estimate user density based on workloads. It cannot diagnose real-time performance issues in an existing session.

B. From Azure Cloud Shell, run the Get-AzOperationalInsightsWorkspaceUsage cmdlet...
This cmdlet retrieves log analytics workspace usage data (volume of data ingested), not real-time session performance metrics. It is irrelevant for troubleshooting screen update frequency.

C. From Azure Cloud Shell, run the Get-AzWvdUserSession cmdlet...
This cmdlet retrieves administrative information about a user session (e.g., session ID, state, host name) but provides no performance or diagnostic data about resource bottlenecks causing graphics issues.

Reference:
Microsoft Docs: Troubleshoot Azure Virtual Desktop graphics and GPU issues - Recommends using Performance Monitor and the RemoteFX Graphics counters to identify the root cause of graphical performance issues.

You have a Azure Virtual Desktop host pool named Pool1 that contains three session
hosts. The session hosts are configured to use FSLogtx profile containers. You need to
configure Cloud Cache on the session hosts. What should you do?


A.

Remove VHDlocations entries from the Windows registry.


B.

Configure FSLogtx Office Container.


C.

Add VHDlocations entries to the Windows registry.


D.

Uninstall the FSLogix agent





C.
  

Add VHDlocations entries to the Windows registry.



You have an Azure Virtual Desktop deployment.
You have a RemoteApp named App1.
You discover that from the Save As dialog box of App1, users can run executable
applications other than App1 on the session hosts.
You need to ensure that the users can run only published applications on the session hosts. What should you do?


A.

Configure a conditional access policy in Azure Active Directory (Azure AD).


B.

Modify the Access control (1AM) settings of the host pool.


C.

Modify the RDP Properties of the host pool.


D.

Configure an AppLocker policy on the session hosts





D.
  

Configure an AppLocker policy on the session hosts



Reference:
https://docs.microsoft.com/en-us/azure/virtual-desktop/security-guide

Your company has the offices shown in the following table.






You have a Windows Virtual Desktop host pool named Pool1 that runs Windows 10
Enterprise multi-session hosts.
You need to use Performance Monitor to troubleshoot a low frame quality issue that is
affecting a current use session to Pool1.
What should you run to retrieve the user session ID?


A.

Get-ComputerInfo


B.

qwinsta


C.

whoami


D.

Get-LocalUser





B.
  

qwinsta



Reference:
https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-vm-configuration

You have a Azure Virtual Desktop deployment.
In Azure Advisor, you discover the following recommendation related to Azure Virtual
Desktop:
• Impact Medium
• Description: No validation environment enabled
• Potential Benefit Ensure business continuity through AVD service deployments
• Impacted Resource:' Host Pool
What can you validate by implementing the recommendations?


A.

Capacity requirements of the session hosts


B.

Security settings of Azure Virtual Desktop


C.

Preview features for Azure Virtual Desktop


D.

Azure Site Recovery failover of the session hosts





C.
  

Preview features for Azure Virtual Desktop



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 the following:
A Microsoft 365 E5 tenant
An on-premises Active Directory domain
A hybrid Azure Active Directory (Azure AD) tenant
An Azure Active Directory Domain Services (Azure AD DS) managed domain
An Azure Virtual Desktop deployment
The Azure Virtual Desktop deployment contains personal desktops that are hybrid joined to
the on-premises domain and enrolled in Microsoft Intune.
You need to configure the security settings for the Microsoft Edge browsers on the
personal desktops.
Solution: You create and configure a Group Policy Object (GPO) in the on-premises
domain.
Does this meet the goal?


A.

Yes


B.

No





A.
  

Yes



Reference:
https://www.compete366.com/blog-posts/eight-tips-on-how-to-manage-azure-virtualdesktop-
avd/


Page 3 out of 9 Pages
Previous