CompTIA Linux+ (XK0-004) — Question 30
Which of the following BEST describes containers running on a Linux system?
Answer options
- A. Containers only need the namespaces functionality to run on a Linux system available since kernel 2.6.
- B. Containers need a hypervisor to run on a Linux system. Cgroups namespaces are functionalities used for the kernel but not for running containers.
- C. Containers only need the cgroups functionality for running on a Linux system. Namespaces is not a Linux kernel functionality needed for creating and managing containers.
- D. Containers use the cgroups and namespaces functionalities to isolate processes and assign hardware resources to each of those isolated processes.
Correct answer: D
Explanation
The correct answer is D because containers rely on both cgroups and namespaces to effectively isolate processes and manage resource allocation. Option A is incorrect as namespaces alone are insufficient for container functionality. Option B is false since containers do not require a hypervisor to operate. Option C is also wrong because it mistakenly claims that namespaces aren't needed, when they are essential for container management.