# Free AZ-140 practice questions

> 10 free AZ-140 practice questions with the correct answer and an explanation.

Page: https://devopscodelab.com/exams/microsoft-az-140/free-practice-questions/
Practice exams: https://devopscodelab.com/exams/microsoft-az-140/

### Question 1 of 10

A bank requires that no Azure Virtual Desktop traffic, including feed discovery and session connections, traverse the public internet from its on-premises network, which is connected to Azure through ExpressRoute. Session hosts must also register with the service privately. Which combination of private endpoints should you deploy?

- A. A connection sub-resource endpoint on each host pool only, because feed discovery is always served from Microsoft-managed public endpoints
- B. A global sub-resource endpoint on one workspace, a feed sub-resource endpoint on each workspace, and a connection sub-resource endpoint on each host pool
- C. A global sub-resource endpoint on every workspace and a service endpoint for Microsoft.DesktopVirtualization on the session host subnet
- D. A feed sub-resource endpoint on each workspace plus a private endpoint for the storage account that holds FSLogix profiles

**Answer:** B

**Explanation:** Private Link for Azure Virtual Desktop uses three sub-resources: a single global endpoint (typically on a placeholder workspace) for initial feed discovery, a feed endpoint per workspace, and a connection endpoint per host pool that also carries session host registration traffic. Deploying only connection endpoints leaves discovery on public paths. A storage private endpoint protects profile traffic but not the service traffic. Only one global endpoint is needed, and virtual network service endpoints do not exist for Azure Virtual Desktop.

### Question 2 of 10

Contoso has an ExpressRoute private peering connection between its branch offices and the Azure virtual network that hosts its Azure Virtual Desktop session hosts. Users report choppy screen updates because all RDP traffic is carried over TCP through the gateway service. You must enable a direct UDP-based transport between the clients and the session hosts over the private connection. What should you configure?

- A. A policy-based QoS rule on the session hosts that marks outbound RDP TCP traffic with a DSCP value of 46
- B. An Azure Private Link private endpoint for the host pool connection sub-resource in the hub virtual network
- C. RDP Shortpath for managed networks, with the session hosts allowing inbound UDP from the client subnets
- D. RDP Shortpath for public networks that uses STUN to traverse NAT devices at each branch office

**Answer:** C

**Explanation:** RDP Shortpath for managed networks establishes a direct UDP flow between client and session host when there is line of sight over a private connection such as ExpressRoute or VPN, which requires the session hosts to accept the inbound UDP listener traffic. Shortpath for public networks targets internet paths through NAT using STUN/TURN and is not the design for a private ExpressRoute path. A Private Link endpoint keeps traffic private but the reverse-connect transport stays TCP. QoS marking only prioritises existing traffic and does not change TCP to UDP.

### Question 3 of 10

A company enforces forced tunnelling so that all session host internet traffic is sent to an on-premises firewall over ExpressRoute. Users complain about slow sign-ins and poor responsiveness. Which change follows Microsoft guidance while keeping web browsing inspected on premises?

- A. Remove the ExpressRoute connection and give every session host a public IP so that all internet traffic leaves Azure locally
- B. Use UDRs with the WindowsVirtualDesktop service tag to send service traffic directly to the internet
- C. Enable RDP Shortpath for public networks so that RDP bypasses the on-premises firewall without any routing changes
- D. Move the session hosts to the same region as the on-premises datacentre so that the forced tunnel has less latency

**Answer:** B

**Explanation:** Microsoft recommends sending Azure Virtual Desktop service traffic directly from Azure rather than hairpinning it through on-premises, and UDRs can use the WindowsVirtualDesktop service tag as a destination with the next hop set to Internet while other traffic stays forced-tunnelled. Removing ExpressRoute and adding public IPs breaks the inspection requirement and weakens security. Shortpath still depends on the routing path. Region choice cannot remove the hairpin.

### Question 4 of 10

A team of 30 data scientists each require administrative rights on their desktop, persistent installed tools, and a dedicated GPU. Which host pool configuration should you recommend?

- A. A personal host pool with GPU-enabled VM sizes and direct or automatic user assignment
- B. A pooled host pool with depth-first load balancing and a max session limit of one
- C. A RemoteApp-only pooled host pool that uses FSLogix application masking to control which tools appear
- D. A pooled host pool with breadth-first load balancing and GPU-enabled VM sizes

**Answer:** A

**Explanation:** Personal host pools assign each user a dedicated VM, so users keep installed software and admin rights persist, and GPU sizes provide the graphics capability. Pooled hosts are shared and reset with images, which conflicts with admin rights and persistent installs. A pooled host pool with a limit of one still does not guarantee the same VM at every sign-in. RemoteApp with application masking controls app visibility but does not provide persistent desktops.

### Question 5 of 10

A host pool uses Private Link. Session hosts must keep reaching the service privately, but a group of contractors who are not on the corporate network must still be able to connect over the internet. Which host pool public network access setting should you choose?

- A. Disable public access and publish the feed through an Azure Application Gateway
- B. Enable public access for both end users and session hosts without restrictions
- C. Enable public access for end users, use private access for session hosts
- D. Disable public access and use private access for both end users and hosts

**Answer:** C

**Explanation:** The host pool setting that enables public access for end users while limiting session hosts to private access lets contractors connect over the internet while host registration and RDP traffic from hosts stay on Private Link. Disabling public access entirely would block the contractors. Enabling it for everything removes the private-only requirement for the hosts. Azure Application Gateway cannot publish the Azure Virtual Desktop feed or gateway.

### Question 6 of 10

With Microsoft Entra SSO enabled, users are asked for MFA every time they connect to a session host, which the business finds disruptive. Security requires MFA for the initial client sign-in only, and reauthentication at most every 8 hours. How should you adjust Conditional Access?

- A. Require MFA on the Azure Virtual Desktop app with an 8-hour sign-in frequency, and avoid requiring MFA on the Windows Cloud Login app
- B. Disable Conditional Access for Azure Virtual Desktop and rely on security defaults to prompt for MFA when risk is detected
- C. Require MFA on both the Azure Virtual Desktop and Windows Cloud Login apps with sign-in frequency set to every time for each
- D. Require MFA only on the Windows Cloud Login app with a sign-in frequency of one hour and exclude the Azure Virtual Desktop app

**Answer:** A

**Explanation:** Feed and client authentication uses the Azure Virtual Desktop app; applying MFA there with an 8-hour sign-in frequency meets the requirement, while not enforcing MFA on Windows Cloud Login avoids prompts for every host connection. Enforcing every time on both apps causes repeated prompts. Security defaults cannot be scoped like this. Requiring MFA only on Windows Cloud Login at one-hour frequency prompts more often and leaves the client sign-in unprotected.

### Question 7 of 10

A company wants to allow only approved, signed applications to run on pooled session hosts and block unknown executables that users download. The policy must be managed centrally with Intune for Entra joined hosts. Which feature should you implement?

- A. Controlled Folder Access with protected user document folders
- B. Microsoft Defender SmartScreen in the Edge browser for users
- C. FSLogix application masking rules for every unapproved app
- D. App Control for Business policies deployed through Intune

**Answer:** D

**Explanation:** App Control for Business (formerly Windows Defender Application Control) enforces which code can run, and Intune can deploy its policies to Entra joined hosts. Controlled Folder Access protects folders from untrusted apps but does not block execution. Application masking hides installed apps but cannot block arbitrary downloaded executables. SmartScreen warns about downloads but is not an allow-list enforcement mechanism.

### Question 8 of 10 (choose 2)

You install the new Microsoft Teams on pooled session hosts and want media optimisation so that audio and video are processed on the local device. Which components are required? (Choose two.)

- A. Multimedia redirection browser extension installed for Microsoft Teams calls
- B. GPU-enabled VM sizes for the session hosts to process video locally on the host
- C. New Teams installed per-machine as an MSIX package on the session host
- D. Teams installed per-user in each user's FSLogix profile at first sign-in
- E. A supported media optimisation component on hosts and clients, such as SlimCore or the WebRTC Redirector Service

**Answer:** C, E

**Explanation:** The new Teams must be installed per-machine (for example with teamsbootstrapper.exe) on multi-session hosts, and media optimisation requires a supported component such as the SlimCore-based optimisation or the Remote Desktop WebRTC Redirector Service. Per-user installs in profiles are not supported for new Teams on pooled hosts. GPUs on hosts do not offload media to clients. Multimedia redirection is for browser video, not Teams calls.

### Question 9 of 10

FSLogix profile containers are reaching their configured maximum size. You want new containers to be larger and existing ones to expand without administrator intervention when the setting changes. Which settings control this behaviour?

- A. ProfileType set to 3 together with a larger VolumeType setting
- B. SizeInMBs for the maximum size with IsDynamic set to 1
- C. VHDXSectorSize for the maximum and IsDynamic set to 0
- D. CCDLocations with a second location for overflow data

**Answer:** B

**Explanation:** SizeInMBs defines the maximum size of new containers, and with IsDynamic set to 1 the VHDX grows as data is added up to that size; FSLogix can also expand existing containers when the configured size increases. VHDXSectorSize sets sector size, not capacity, and IsDynamic 0 allocates full size up front. ProfileType and VolumeType do not set capacity. CCDLocations replicate data rather than add overflow space.

### Question 10 of 10

A ransomware attack could encrypt FSLogix containers on Azure Files. You need a backup that is stored separately from the storage account and cannot be deleted by a compromised admin account. Which configuration should you choose?

- A. Snapshot-based backup for Azure Files with a seven-day retention in the same account
- B. Vaulted Azure Files backup with an immutable, soft-delete-enabled vault
- C. Azure Files share soft delete with a retention period of 14 days on the account
- D. AzCopy scheduled jobs that copy the containers to a second share in the same account

**Answer:** B

**Explanation:** Vaulted backups copy data to a Recovery Services or Backup vault, separate from the storage account, and vault immutability plus soft delete protect backups from deletion. Snapshot-based backups and share soft delete live in the same account and can be affected by a compromised admin. Copies in the same account offer little isolation.

Ready for a timed run? Take the free 15-question AZ-140 mini exam: https://devopscodelab.com/app/exams/microsoft-az-140/mini/

DevOpsCode Lab is not affiliated with Microsoft. AZ-140 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
