XK0-005 · Question #286
Which of the following BEST describes the difference between a container and a VM?
The correct answer is A. Containers share host OS libraries and a kernel, while VMs have their own libraries and kernel. Containers achieve efficiency by sharing the host operating system's kernel and often some common libraries, whereas virtual machines encapsulate an entire guest operating system, including its own kernel and libraries, for full isolation. This architectural difference makes…
Question
Which of the following BEST describes the difference between a container and a VM?
Options
- AContainers share host OS libraries and a kernel, while VMs have their own libraries and kernel.
- BContainers are larger than VMs.
- CVMs share host libraries and a kernel, while containers have their own libraries and kernel.
- DVMs are larger than containers.
How the community answered
(26 responses)- A92% (24)
- B4% (1)
- D4% (1)
Why each option
Containers achieve efficiency by sharing the host operating system's kernel and often some common libraries, whereas virtual machines encapsulate an entire guest operating system, including its own kernel and libraries, for full isolation. This architectural difference makes containers lighter and faster to provision compared to VMs.
Containers share the host operating system's kernel and sometimes common system libraries, abstracting the OS at the application layer. In contrast, virtual machines run on a hypervisor and contain their own isolated guest operating system, complete with its own kernel and libraries, providing deeper isolation from the host.
Containers are generally much smaller and more lightweight than VMs because they do not include a full operating system.
This statement reverses the fundamental characteristics; VMs have their own kernel and libraries, while containers share the host's kernel.
While VMs are generally larger than containers, this choice does not describe the core architectural difference in how they utilize host OS components, which is the key distinguishing factor.
Concept tested: Container vs. Virtual Machine architecture
Source: https://docs.docker.com/get-started/overview/#what-is-a-container
Topics
Community Discussion
No community discussion yet for this question.