2V0-21.23 Question 309
Select 3An administrator is managing a VMware vSphere environment with three virtual machines (VMs): VM-A, VM-B, and VM-C. Each VM is configured to run a critical application. The administrator has configured the resource pool for these VMs as follows:
- VM-A: CPU Shares set to High, CPU Reservation set to 2 GHz, and no CPU Limit.
- VM-B: CPU Shares set to Normal, CPU Reservation set to 1 GHz, and CPU Limit set to 3 GHz.
- VM-C: CPU Shares set to Low, no CPU Reservation, and no CPU Limit.
During a period of high CPU contention, how will the CPU resources be distributed among these VMs?
- A
VM-A will receive the most CPU resources due to its High CPU Shares and 2 GHz Reservation.
- B
VM-B will receive a maximum of 3 GHz CPU resources due to its CPU Limit, even if additional resources are available.
- C
VM-C will receive the least CPU resources because it has Low CPU Shares and no Reservation configured.
- D
All VMs will equally share CPU resources because no VM has exceeded its configured limits.
Show answer and explanation
Correct answers: A, B, C
Explanation
During CPU contention, VMware vSphere allocates resources based on Shares, Reservations, and Limits. VM-A benefits from both High Shares and a 2 GHz Reservation, ensuring it receives priority. VM-B cannot exceed its 3 GHz Limit even if more resources are available. VM-C, with Low Shares and no Reservation, is the lowest priority and receives resources only after VM-A and VM-B are satisfied. Equal distribution does not occur because resource allocation is governed by these settings.
- A. Correct.
VM-A has High CPU Shares, which gives it priority during contention. Additionally, the 2 GHz Reservation ensures it gets at least 2 GHz of CPU resources if they are available.
- B. Correct.
VM-B has a CPU Limit of 3 GHz, meaning it cannot use more than 3 GHz even if other resources are available. During contention, it will compete based on its Normal CPU Shares.
- C. Correct.
VM-C has Low CPU Shares and no Reservation, so it will receive resources only after higher-priority VMs (VM-A and VM-B) are allocated their shares and reservations.
- D. Incorrect.
This is incorrect because resource allocation during contention depends on shares, reservations, and limits, not equal distribution.