nerdexam
Microsoft

AZ-140 · Question #38

You have a Azure Virtual Desktop host pool that runs Windows 10 Enterprise multi-session. You need to configure automatic scaling of the host pool to meet the following requirements: - Distribute…

The correct answer is B. an Azure Automation account and the breadth-first load balancing algorithm. Two components are needed: (1) An Azure Automation account, which runs the PowerShell-based scaling scripts (Azure Automation runbooks) that monitor session counts and start/deallocate session hosts based on defined thresholds. An Azure Load Balancer is a network-layer…

Submitted by rohit_dlh· Apr 18, 2026Plan and implement an Azure Virtual Desktop infrastructure

Question

You have a Azure Virtual Desktop host pool that runs Windows 10 Enterprise multi-session. You need to configure automatic scaling of the host pool to meet the following requirements:

  • Distribute new user sessions across all running session hosts.
  • Automatically start a new session host when concurrent user sessions

exceed 30 users per host. What should you include in the solution?

Options

  • Aan Azure Automation account and the depth-first load balancing algorithm
  • Ban Azure Automation account and the breadth-first load balancing algorithm
  • Can Azure load balancer and the breadth-first load balancing algorithm
  • Dan Azure load balancer and the depth-first load balancing algorithm

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    72% (26)
  • C
    3% (1)
  • D
    17% (6)

Explanation

Two components are needed: (1) An Azure Automation account, which runs the PowerShell-based scaling scripts (Azure Automation runbooks) that monitor session counts and start/deallocate session hosts based on defined thresholds. An Azure Load Balancer is a network-layer component and cannot trigger VM start/stop operations or measure user session counts. (2) Breadth-first load balancing, which distributes new user sessions across all currently running session hosts before filling any single host to capacity. This satisfies the requirement to 'distribute new user sessions across all running session hosts.' Depth-first would concentrate sessions onto one host until it reaches the limit before moving to the next, which contradicts the first requirement. Together, Azure Automation + breadth-first achieves both goals: even distribution and automatic scaling when the 30-user-per-host threshold is crossed.

Topics

#Azure Virtual Desktop#Host Pool#Auto-scaling#Load Balancing

Community Discussion

No community discussion yet for this question.

Full AZ-140 Practice