Domain 3/3.5 Assess and mitigate the vulnerabilities of security architectures, designs, and solution elements
You are the security architect of a SaaS (software as a service) company. A team proposes running untrusted customer code in containers instead of separate virtual machines to save money. Which security difference is MOST important?
- AContainers share the host's kernel
- BContainer images may include vulnerable packages
- CRegistries can be left publicly exposed
- DSecrets can be baked into images
Show the answer
Correct answer: A. The question asks how container isolation differs from virtual machines. The clue is running code in containers "instead of separate virtual machines". Each virtual machine runs its own kernel behind a hypervisor, while containers are isolated processes sharing the host kernel. For untrusted multi-tenant code, kernel flaws are a direct escape path, so stronger sandboxing or micro-VMs are often used.
- A. Correct. Instead of separate virtual machines with their own kernels, containers share the host's kernel, so a kernel flaw can let untrusted code escape.
- B. Incorrect. True, but virtual machine images and repositories have the same problem, so it is not a difference between the two.
- C. Incorrect. True, but virtual machine images and repositories have the same problem, so it is not a difference between the two.
- D. Incorrect. True, but virtual machine images and repositories have the same problem, so it is not a difference between the two.