nerdexam
CompTIA

CV0-002 · Question #156

An administrator needs to build a VM for a legacy, single-threaded application. According to best practice, how many virtual CPUs should the administrator use?

The correct answer is A. 1. For a legacy, single-threaded application, assigning only one virtual CPU (vCPU) is the best practice to optimize resource utilization and avoid unnecessary hypervisor overhead.

Deployment

Question

An administrator needs to build a VM for a legacy, single-threaded application. According to best practice, how many virtual CPUs should the administrator use?

Options

  • A1
  • B2
  • C4
  • D8

How the community answered

(33 responses)
  • A
    76% (25)
  • B
    15% (5)
  • C
    6% (2)
  • D
    3% (1)

Why each option

For a legacy, single-threaded application, assigning only one virtual CPU (vCPU) is the best practice to optimize resource utilization and avoid unnecessary hypervisor overhead.

A1Correct

A single-threaded application is designed to execute instructions sequentially on a single processor core at any given moment. Assigning more than one virtual CPU would result in the additional vCPUs remaining idle and potentially increasing hypervisor scheduling overhead without providing any performance benefit to the application.

B2

Assigning 2 vCPUs to a single-threaded application would result in one vCPU remaining idle, wasting resources and potentially adding unnecessary scheduling complexity for the hypervisor.

C4

Assigning 4 vCPUs to a single-threaded application would result in three vCPUs remaining idle, leading to significant resource waste and potential performance degradation from hypervisor overhead.

D8

Assigning 8 vCPUs to a single-threaded application is highly inefficient, as seven vCPUs would be unused, consuming host resources and incurring avoidable hypervisor scheduling penalties.

Concept tested: VM CPU allocation for single-threaded apps

Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-6009D1B9-7248-438D-9A69-CC1316499D0F.html

Topics

#VM resource allocation#vCPU#virtualization best practices#single-threaded applications

Community Discussion

No community discussion yet for this question.

Full CV0-002 Practice