Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Optimize session host capacity and performance

A worked example

Single answer

A pooled host pool named HP2 was created with breadth-first load balancing. Nobody has changed its maximum session limit since it was created. HP2 has eight session hosts, and several of them currently have 15 active sessions each.

To reduce cost, you want new sessions to fill one session host before using the next, so that fewer session hosts need to be powered on.

Requirements:

  • Each session host must accept new sessions only until it hosts 12 sessions.
  • Users who already have sessions must not be affected by the change.

Which parameter values should you use with the Update-AzWvdHostPool cmdlet for HP2?

Choose one answer
Why

Depth-first load balancing fills one session host until it reaches the maximum session limit, which fits a cost-conscious goal of powering on fewer hosts. The limit must be set explicitly, because a host pool first created with breadth-first keeps the default of 999999. Lowering the limit to 12 does not affect sessions that already exist, so hosts with 15 sessions keep them. Those hosts simply receive no new sessions until they fall below the limit.

  • Not correct: LoadBalancerType Persistent and MaxSessionLimit 12. The Persistent value is for personal host pools and does not apply to pooled host pools such as HP2.
  • Not correct: LoadBalancerType BreadthFirst and MaxSessionLimit 12. Breadth-first aims to distribute new sessions evenly across the session hosts. It does not saturate one host at a time to reduce the number of powered-on hosts.
  • Not correct: LoadBalancerType DepthFirst with no MaxSessionLimit value. HP2 was created with breadth-first, so its limit is still the default of 999999. Depth-first would keep filling each host far beyond 12 sessions.
  • Correct: LoadBalancerType DepthFirst and MaxSessionLimit 12. Depth-first saturates one host before moving to the next and requires a maximum session limit, set here to 12. Lowering the limit does not affect existing sessions, so the hosts that already have 15 sessions keep them.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free