1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. What fundamentally distinguishes a container from a…

Added 30 Nov -0001

What fundamentally distinguishes a container from a virtual machine?

  1. A container includes a hypervisor of its own, while a VM does not, so a container needs more privileged hardware
  2. Containers cannot be networked, unlike virtual machines, which each receive their own network stack
  3. A VM shares the host kernel while a container virtualises the hardware, which is why a VM starts faster
  4. Containers share the host kernel and isolate at the process level, whereas each VM runs its own guest kernel Correct answer

Correct answer

D. Containers share the host kernel and isolate at the process level, whereas each VM runs its own guest kernel

14 views

MCQSEXAM

Explanation

Container versus virtual machine: containers are isolated processes using kernel features such as namespaces and cgroups, so they start in milliseconds and share the host kernel. A VM virtualises hardware and boots a full guest OS, giving a stronger isolation boundary at the cost of size and start time. Because the kernel is shared, a container escape is a more serious risk than a VM escape.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs