Fabrikam is choosing the load-balancing method for a pooled host pool named HP2. The maximum session limit for HP2 is 10. The exhibit shows the state of HP2 when User5 connects. User5 has no existing session in HP2.
| Session host | Total sessions (active and disconnected) | AllowNewConnections |
|---|---|---|
| SH1 | 3 | True |
| SH2 | 8 | True |
| SH3 | 5 | True |
| SH4 | 2 | True |
| SH5 | 9 | False |
| SH6 | 6 | True |
| SH7 | 4 | True |
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
| Statement | Yes | No |
|---|---|---|
| If HP2 uses depth-first load balancing, User5's session is placed on SH2. Depth-first considers only hosts that allow new connections and are under the session limit. That excludes SH5. Among the remaining hosts, SH2 has the most sessions (8), so it is selected. | Correct | |
| If HP2 uses breadth-first load balancing, User5's session is placed on SH4 rather than on SH1 or SH7. Breadth-first does not simply pick the host with the fewest sessions. It picks at random from the half of eligible hosts with the fewest sessions. Here that half is SH4, SH1 and SH7. | Correct | |
| If HP2 uses breadth-first load balancing, SH7 is one of the session hosts that can receive User5's session. Six hosts allow new connections; SH5 is excluded. The three with the fewest sessions are SH4 (2), SH1 (3) and SH7 (4). SH7 is in that half, so it can be selected at random. | Correct |
Both methods first remove hosts that do not allow new connections, so SH5 is never a candidate despite its high session count. Depth-first then picks the remaining host with the most sessions that is under its limit, which is SH2. Breadth-first picks at random from the half of eligible hosts with the fewest sessions: SH4, SH1 and SH7. A new session can therefore land on any of those three, not only on SH4.