A shared host runs containers for several tenants. An attacker with code execution in one container must not reach the host kernel or other tenants. Which approach is BEST?
Show the answer
Correct answerD. Run as non-root with dropped capabilities and a restrictive seccomp profile
AWhy not this: Signing and scanning improve supply-chain trust but do not restrict a running container's actions.
BWhy not this: Namespaces separate views of resources but all containers still share one host kernel.
CWhy not this: Exposing the runtime socket gives a container control over the host and every other container.
DWhy this is right: These controls shrink the kernel surface and privileges a compromised container can use.
Containers share the host kernel, so runtime restrictions such as non-root users, dropped capabilities and seccomp reduce what a compromised container can do. Image signing and scanning act before deployment and do not limit a running container's reach.