Systems and Application Security

A security engineer must explain how containers on one host are isolated from each other. Which mechanism do containers rely on, in contrast to virtual machines?

Show the answer

Correct answerD. Containers share the host kernel, isolated by namespaces and cgroups

AWhy not this: Virtual hardware per guest is how VMs work; containers do not get virtual hardware.

BWhy not this: Containers share the host kernel; separate guest kernels are a trait of virtual machines.

CWhy not this: Containers run on shared hosts; dedicating servers is not how they are isolated.

DWhy this is right: Namespaces limit what a container sees, and cgroups limit resources, on one shared kernel.

Containers share the host operating system kernel and are isolated using kernel features such as namespaces and resource limits via cgroups. Virtual machines instead each run a full guest OS on virtual hardware, which is why a kernel flaw affects containers more broadly.