2V0-21.23 Question 310
Single answerAn administrator is managing a virtual environment where multiple virtual machines (VMs) share resources on a single ESXi host. A critical database VM requires consistent performance, while other VMs running less critical workloads can tolerate occasional resource contention. Which configuration should the administrator use to ensure the critical database VM has priority access to CPU resources during contention?
- A
Set a high CPU shares value for the critical database VM and normal shares for other VMs.
- B
Set a CPU limit for the critical database VM to ensure it does not exceed a specific threshold.
- C
Set a CPU reservation for the critical database VM to guarantee a minimum level of CPU resources.
- D
Increase the virtual CPUs for the critical database VM to improve its performance.
Show answer and explanation
Correct answer: A
Explanation
The correct answer is to set a high CPU shares value for the critical database VM. Shares determine the relative priority of VMs when competing for resources. By assigning a higher shares value, the critical database VM will have priority access to CPU resources during periods of contention, ensuring consistent performance.
- A. Correct.
Setting a high CPU shares value for the critical database VM ensures that during resource contention, the VM will receive priority access to CPU resources compared to other VMs with normal or lower shares.
- B. Incorrect.
Setting a CPU limit restricts the maximum CPU resources the VM can use, which could negatively impact performance rather than prioritize access during contention.
- C. Incorrect.
A CPU reservation guarantees a minimum level of CPU resources but does not prioritize the VM during contention beyond the reserved amount.
- D. Incorrect.
Increasing the virtual CPUs might improve performance in certain scenarios, but it does not address resource contention or prioritize the VM.