🔒 Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided AZ-140 Domain 1
Domain 1 — Module 3 of 12 25%
3 of 28 overall

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region
Domain 1: Plan and Implement an AVD Infrastructure Free ⏱ ~14 min read

RDP Shortpath, Multipath and QoS

The default AVD connection goes through Microsoft's gateway over TCP. RDP Shortpath creates a direct UDP tunnel for better performance. RDP Multipath adds resilience. QoS ensures real-time traffic gets priority.

Why RDP Shortpath matters

☕ Simple explanation

Think of it as choosing between a highway and a side road.

The default AVD connection (reverse connect) is like driving through the city centre — you go through traffic lights (the Microsoft gateway) on every trip. RDP Shortpath is the highway bypass — a direct road between your device and the desktop VM. It is faster because there are fewer stops. And with RDP Multipath, you have multiple lanes — if one lane gets blocked, traffic automatically moves to another.

By default, AVD connections use reverse connect transport — a TCP-based connection that flows through the AVD Gateway. This works everywhere but adds latency because traffic passes through Microsoft’s relay infrastructure.

RDP Shortpath establishes a direct UDP-based connection between the client and session host, bypassing the gateway for data transfer. UDP is connectionless and better suited for real-time interactive traffic — it tolerates packet loss better than TCP (no retransmission delays) and provides higher throughput.

RDP Multipath maintains multiple network paths simultaneously (UDP via STUN, UDP via TURN, and TCP via reverse connect) and intelligently switches between them if the primary path degrades.

The three RDP transport methods

RDP Transport Methods
FeatureReverse Connect (TCP)RDP Shortpath (UDP)RDP Multipath
ProtocolTCP 443 (HTTPS)UDP (STUN or TURN)Multiple — UDP + TCP backup
PathClient to Gateway to session hostDirect (STUN) or relayed (TURN)Best of all available paths
LatencyHigher — extra hop through gatewayLower — direct or near-directDynamic — picks lowest-latency path
ReliabilityVery reliable (TCP guarantees delivery)Good for real-time (tolerates loss)Best — automatic failover
QoS supportNoYes (managed networks)Inherits from Shortpath
RequirementsDefault — works everywhereUDP outbound accessRDP Shortpath configured + supported client
When usedAlways — initial connectionWhen available, takes over from TCPLayered on top of Shortpath

RDP Shortpath — two flavours

Managed networks (direct connection)

For users on your corporate network (connected via VPN or ExpressRoute):

  • The client establishes a direct 1:1 UDP connection to the session host
  • Works when there is direct network line-of-sight between client and session host
  • Best performance — no relay, no gateway in the data path
  • Supports QoS with DSCP marking
  • Configurable source port (default: 3390)

Public networks (STUN and TURN)

For users on public internet (home, hotel, coffee shop):

  • STUN (direct): Uses ICE/STUN protocol to establish a direct UDP connection through NATs. Works when both sides can punch through their NAT devices
  • TURN (relayed): When direct connection fails, uses Microsoft’s TURN relay servers. Still UDP, still better than TCP, but adds one relay hop
MethodProtocolPortWhen Used
STUN (direct)UDP1024-65535 (default: 49152-65535)NAT traversal succeeds
TURN (relayed)UDP3478Direct connection blocked
Reverse connect (fallback)TCP443UDP completely blocked

🌐 Priya’s experience: “Most of our remote workers are on home internet with consumer routers. STUN works for about 70% of them. The other 30% fall back to TURN. Only a handful behind strict corporate firewalls need TCP. The performance improvement was immediately noticeable — the designers stopped complaining about lag.”

💡 Exam tip: STUN vs TURN

The exam tests your understanding of when each method is used:

  • STUN = direct UDP, NAT traversal, best performance after managed networks
  • TURN = relayed UDP via Microsoft servers, used when STUN fails (symmetric NAT, firewall restrictions)
  • Reverse connect = TCP fallback, always works but highest latency

If a question mentions “symmetric NAT” or “UDP blocked on port 3478 but allowed elsewhere” — think TURN. If “all UDP blocked” — think reverse connect (TCP).

RDP Multipath — automatic failover

RDP Multipath builds on RDP Shortpath by maintaining multiple transport paths simultaneously:

  1. Primary path: UDP via STUN (best performance)
  2. Backup path: UDP via TURN (relayed)
  3. Backup path: TCP via reverse connect

If the primary path degrades or fails, Multipath automatically switches to the next best path — no user intervention, no disconnection.

Prerequisites for RDP Multipath

  • RDP Shortpath must be configured as the primary transport
  • Windows App client version 2.0.559.0 or later
  • Redundant TCP paths (preview) require host pools in the Validation ring

How to verify Multipath is working

Users can check the connection bar in their remote session — it shows “RDP Multipath enabled” when active. Administrators can view connection reliability data in AVD Insights.

🎧 Mia’s win: “Before Multipath, Tom the night-shift nurse would disconnect every time the hospital’s WiFi switched access points during rounds. Now Multipath seamlessly switches paths and Tom stays connected. It was our biggest support ticket reducer.”

Quality of Service (QoS)

QoS prioritises RDP traffic over other network traffic by marking packets with DSCP (Differentiated Services Code Point) values.

Why QoS matters

Without QoS, all network traffic is treated equally. A large file download can starve RDP traffic, causing:

  • Jitter — packets arrive at inconsistent intervals (audio/video glitches)
  • Packet loss — dropped packets require retransmission (lag)
  • High RTT — delays between input and response

Implementing QoS

QoS is only supported with RDP Shortpath for managed networks (direct UDP). It does not work with reverse connect (TCP).

Steps to implement:

  1. Create a Group Policy QoS policy on session hosts:

    • Name: “RDP Shortpath”
    • DSCP value: 46 (Expedited Forwarding — highest priority for real-time traffic)
    • Apply to: svchost.exe (the process that hosts RDP sessions)
    • Protocol: UDP
    • Source port: 3390
  2. Configure network devices (routers, switches, firewalls) to honour DSCP markings

  3. Apply Group Policy to session hosts and run gpupdate /force

ℹ️ Deep dive: DSCP value 46

DSCP 46 maps to the Expedited Forwarding (EF) per-hop behaviour in QoS. This is the highest-priority class, typically reserved for real-time voice and video traffic. By marking RDP Shortpath traffic with DSCP 46, network devices prioritise it over bulk data transfers, web browsing, and other non-real-time traffic.

The entire network path must honour DSCP markings for QoS to be effective. If any router or switch in the path strips or ignores DSCP tags, QoS breaks down at that point.

🏢 Raj’s QoS deployment: “Dmitri configured QoS end-to-end — from the Azure VNet through ExpressRoute to our corporate switches. RDP Shortpath gets DSCP 46 (highest priority). Background tasks like Windows Update get DSCP 0 (best effort). The CAD team noticed the difference immediately.”

Configuring RDP Shortpath

For managed networks

On session hosts, enable via registry or Group Policy:

  • Registry: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations set ICEControl = 2
  • Or: Configure via Intune device configuration profile

For public networks

RDP Shortpath for public networks is enabled by default on Azure-hosted session hosts. You just need to ensure:

  1. UDP outbound is allowed from the session host
  2. The client device supports UDP (Windows App, macOS client)
  3. No firewall blocks UDP ports 3478 (TURN) or 49152-65535 (STUN)
Question

What protocol does RDP Shortpath use, and why is it better than the default TCP transport?

Click or press Enter to reveal answer

Answer

UDP. Unlike TCP, UDP does not retransmit lost packets (which would add delay). For real-time interactive traffic like desktop streaming, tolerating minor packet loss is better than waiting for retransmissions. UDP also avoids TCP head-of-line blocking.

Click to flip back

Question

What DSCP value should you set for RDP Shortpath QoS, and what does it mean?

Click or press Enter to reveal answer

Answer

DSCP 46, which maps to Expedited Forwarding (EF) — the highest QoS priority class. This tells network devices to prioritise RDP traffic over other traffic.

Click to flip back

Question

What is the difference between STUN and TURN in RDP Shortpath?

Click or press Enter to reveal answer

Answer

STUN establishes a direct 1:1 UDP connection by traversing NAT devices. TURN relays UDP traffic through Microsoft's servers when direct connection fails. STUN has lower latency (no relay hop); TURN is the fallback.

Click to flip back

Question

Does QoS work with the reverse connect (TCP) transport?

Click or press Enter to reveal answer

Answer

No. QoS with DSCP marking is only supported with RDP Shortpath for managed networks (direct UDP connection). It does not apply to reverse connect (TCP) or TURN-relayed connections.

Click to flip back

Knowledge Check

JC's government agency requires QoS for AVD to ensure desktop sessions are never degraded by bulk data transfers. Users connect over ExpressRoute. What must JC configure?

Knowledge Check

Mia discovers that 30% of Horizons Health Group remote workers cannot establish a UDP connection for RDP Shortpath. The workers are behind strict hospital guest WiFi networks. What transport will their sessions use?

🎬 Video coming soon

RDP Shortpath, Multipath and QoS


Next up: Private Link and Network Troubleshooting — keep AVD traffic on private networks and learn to diagnose connectivity issues.

← Previous

Network Capacity and Design

Next →

Private Link and Network Troubleshooting

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.