CS FundamentalsModerateProduct-company cloud interview

A host has 32 physical cores and the cloud team allows a 4:1 vCPU-to-core overcommit ratio. How many 4-vCPU VMs can be placed on it by CPU, and what is the risk of overcommit?

  1. A. 8 VMs; no risk
  2. B. 32 VMs; if many VMs get busy at once they contend for cores, causing CPU steal and slowdowns
  3. C. 128 VMs; memory is the only limit
  4. D. 16 VMs; overcommit halves capacity

Correct answer: B. 32 VMs; if many VMs get busy at once they contend for cores, causing CPU steal and slowdowns

32 x 4 = 128 vCPUs, i.e. 32 VMs of 4 vCPUs. Overcommit works because VMs are rarely all busy together; when they are, the hypervisor time-slices cores and guests see 'steal time'.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic