CS FundamentalsHardIBM · Deloitte pattern

How many of the following statements comparing containers and virtual machines are correct? 1. A Linux container can run directly on a Windows kernel without any Linux VM or compatibility layer. 2. Containers on one host share the host kernel, so a kernel vulnerability can affect all of them. 3. Each container boots its own guest kernel, just as each VM does. 4. A container image is a read-only template; a container is a running (or stopped) instance with a writable layer on top.

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: B. Only two

2 and 4 are correct. 1 is wrong: Linux containers need a Linux kernel, so Docker Desktop on Windows runs them inside a lightweight Linux VM (WSL 2 or Hyper-V). 3 is wrong: only VMs boot a guest kernel; containers are processes on the shared host kernel. So two are correct.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic