Courseiva

305-300 · domain

Container Virtualization

Practise questions on virtualization concepts cover hypervisor types, VM resource management, and host/guest relationships for 305-300.

80 questions15 easy38 medium27 hard

Focused practice

Practice Container Virtualization questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Container Virtualization

Tests understanding of hypervisors, virtual machines, resource allocation, and host vs. guest OS requirements.

Identify Type 1 vs Type 2 hypervisors and their use cases.

Understand virtual machine resource allocation (CPU, RAM, storage).

Recognize host vs. guest operating system roles.

Know virtualization security and isolation requirements.

Why learners struggle

Why Container Virtualization questions are commonly missed

Learners often confuse Type 1 and Type 2 hypervisors, and misunderstand VM resource limits versus host capabilities. The abstract nature of virtualized hardware makes it hard to apply to real scenarios.

  • ·Type 1 vs Type 2 hypervisor — which runs directly on hardware.
  • ·Host vs guest OS — which controls physical resources.
  • ·Overcommitment — VM resources can exceed host physical limits.
  • ·Snapshot vs backup — snapshot is not a full backup.
  • ·Virtual switch vs physical switch — network isolation differences.
  • ·Hardware compatibility — guest OS may lack drivers for virtual hardware.

Watch out for

Common Container Virtualization exam traps

  • Confusing Type 1 hypervisor with Type 2 (e.g., VMware ESXi vs Workstation).
  • Thinking a VM can use more resources than the host has.
  • Assuming all hypervisors support the same guest OS features.
  • Forgetting that snapshots capture state, not backups.

Question index

All Container Virtualization questions (80)

Click any question to see the full explanation, or start a practice session above.

1

Which TWO of the following are true regarding the differences between rkt (Rocket) and Docker?

Hard
2

In systemd-nspawn, how can you execute a command inside a container that is already running?

Medium
3

In a FreeBSD Jail, how can you ensure the jail starts automatically at boot?

Hard
4

Which Docker network driver should you use if you want containers to have their own IP addresses on the physical network, as if they were physically connected to the network?

Medium
5

When building a Dockerfile, which instruction should be used to define the user context for subsequent RUN, CMD, and ENTRYPOINT instructions?

Easy
6

When configuring a systemd-nspawn container, what is the effect of the --private-network option?

Hard
7

A Docker container running a web server is unable to serve traffic on port 8080. You verify the Dockerfile exposes port 80. What is the correct way to map this for external access?

Medium
8

You are running a Docker container and need to map port 8080 on the host to port 80 in the container. Which command argument should you use?

Medium
9

Which Dockerfile instruction is used to copy a file from the host file system into the image?

Medium
10

Which THREE instructions in a Dockerfile can modify the image's filesystem?

Medium
11

You are configuring LXC and want to set a CPU limit for a container. Which cgroup parameter is used to specify the quota of CPU time in microseconds?

Medium
12

Which THREE networking modes are natively supported by Docker?

Hard
13

Which THREE features are provided by Linux Namespaces in the context of containers?

Hard
14

Which kernel feature provides the isolation necessary for namespaces in container virtualization?

Medium
15

What does the 'docker rm' command do?

Easy
16

A Docker container is failing to connect to an external database despite the host being able to ping it. You suspect a bridge networking issue. Which command allows you to inspect the current NAT rules created by Docker?

Medium
17

Which file is primarily responsible for defining the configuration and environment variables for an OpenVZ container?

Medium
18

You are using systemd-nspawn. How do you create an image of a container to be used as a template?

Hard
19

What is the primary function of a Docker Registry?

Medium
20

When using systemd-nspawn, you want to limit the memory usage of a container to 512MB. Which flag should be passed to the systemd-nspawn command?

Hard
21

When using 'docker-compose', which file format is used to define the services?

Medium
22

When using Docker volumes, which type of mount should you use if you want the data to persist on the host filesystem at a specific, user-defined path?

Medium
23

You are troubleshooting a container networking issue. You notice that traffic from the container is not being SNATed. What should you check in the iptables rules?

Hard
24

Which command is used to remove an unused Docker image?

Easy
25

Which TWO of the following are valid container orchestration platforms?

Medium
26

Which TWO commands are used to manage images in Docker?

Medium
27

Which THREE storage drivers are supported by Docker?

Hard
28

What is the main advantage of using a container over a virtual machine?

Easy
29

You need to inspect the metadata of a specific Docker image without pulling it from a remote registry. Which command should you use?

Medium
30

You are debugging a Docker image buildup that fails at the 'RUN' instruction due to missing network access during the build. What command option should be checked if the build environment uses a proxy?

Medium
31

You are using BSD Jails and need to start a jail. Which utility is the standard management tool for jail administration?

Medium
32

You need to inspect the configuration of an LXC container named 'web'. Which command should you use?

Medium
33

Which THREE items are typically included in an OpenVZ configuration file?

Hard
34

You are troubleshooting a problem where an LXC container cannot access its own /dev/null. What is a common cause in a non-root container?

Hard
35

You are configuring an LXC container and need to grant it access to a specific host character device without running the container in privileged mode. Which configuration option in the container's config file should you use?

Medium
36

You are using a BSD Jail and want to limit the filesystem access of the jail to a specific directory tree. Which utility or configuration mechanism is primarily used to achieve this?

Medium
37

In a Docker swarm, which mode of service publishing allows incoming traffic to be load-balanced across all healthy container replicas?

Hard
38

Which command lists all Docker images currently on the host?

Easy
39

When cleaning up Docker resources, which command will remove all stopped containers, unused networks, and dangling images in one step?

Hard
40

You are using an overlay network in Docker Swarm. What is the standard protocol used for the control plane and data plane communication between nodes?

Hard
41

You need to limit the amount of CPU shares a Docker container can utilize. Which flag should be used?

Medium
42

Which Docker command is used to display the resource usage (CPU, memory) of running containers?

Easy
43

When configuring a Docker volume that needs to be shared between multiple containers, which storage driver storage path is recommended to ensure persistent data availability if the host reboots?

Hard
44

Which THREE configuration items can be managed by LXC cgroups?

Hard
45

You are optimizing a Dockerfile to reduce image size. Which THREE of the following practices are recommended?

Hard
46

In the context of container orchestration, what is the role of a 'sidecar' container?

Medium
47

You are debugging a Docker network issue where containers on different hosts cannot communicate. Which network driver is specifically designed to support multi-host overlay networking?

Hard
48

Which command-line tool is primarily used to inspect the metadata and configuration of a running Docker container?

Easy
49

Which THREE of the following are components of the Docker architecture?

Medium
50

Which command allows you to enter an existing running container and execute a new command inside it?

Medium
51

Which TWO types of namespaces are commonly used to achieve container isolation in Linux?

Medium
52

You are building a multi-stage Dockerfile and want to copy a binary from the 'builder' stage to the final stage. Which syntax is correct?

Hard
53

You are migrating a legacy application to an LXC container and need to ensure the container has access to the host's /dev/sda block device. Which configuration key must be added to the container's configuration file?

Medium
54

Which THREE of the following are valid storage driver options for Docker on Linux?

Hard
55

Which command-line option is used to run a Docker container in the background (detached mode)?

Easy
56

You are managing an LXC container and need to create a snapshot of the container's root file system. Which command achieves this?

Medium
57

In an OpenVZ environment, you need to limit the number of processes a container can create. Which parameter in the container configuration file should be modified?

Hard
58

In systemd-nspawn, how do you specify a different root directory for the container?

Hard
59

What is the primary difference between a container image and a container instance?

Easy
60

Which THREE commands are used to manage the lifecycle of an LXC container?

Medium
61

What is the primary function of the ENTRYPOINT instruction in a Dockerfile?

Easy
62

Which TWO items are typically included in a Docker context?

Medium
63

How do you view the logs of a running container?

Easy
64

Which instruction in a Dockerfile is best suited for installing packages to minimize image size?

Medium
65

Which TWO commands are valid for inspecting container network settings?

Medium
66

What is the purpose of the 'rkt' (Rocket) container runtime?

Medium
67

Which command shows the history of layers in a Docker image?

Easy
68

You are using Docker and want to create a volume that is shared between multiple containers and persists even if the containers are deleted. What is the best approach?

Hard
69

What is the role of the 'Dockerfile' in the container build process?

Medium
70

Which TWO of the following are valid storage drivers used by Docker to manage image layers?

Medium
71

You are troubleshooting a Docker container that cannot reach the internet despite the host having connectivity. The container uses the default bridge network. Which iptables chain is most likely causing the block?

Hard
72

Which command provides system-wide information about the Docker installation?

Easy
73

You need to run a container that requires access to the host's network namespace directly to perform packet capture. Which Docker run flag should you use?

Medium
74

Which flag is used to run a container in the background?

Easy
75

What is the purpose of the 'ENTRYPOINT' instruction in a Dockerfile?

Medium
76

You are configuring an OpenVZ container. Which command is used to set the hostname of the container from the host?

Hard
77

In a Docker environment, you are observing that container logs are consuming too much disk space. Which logging driver should you configure to limit the number and size of log files?

Hard
78

Which TWO of the following are true regarding container orchestration platforms?

Hard
79

Which command is used to stop all running containers?

Easy
80

You are using systemd-nspawn and want to run a container that shares the host's network namespace. Which flag is required?

Medium

Frequently asked questions

What does the Container Virtualization domain cover on the 305-300 exam?
Tests understanding of hypervisors, virtual machines, resource allocation, and host vs. guest OS requirements.
How many questions are in this domain?
This page lists all 80 Container Virtualization questions in the 305-300 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Container Virtualization questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
lpic3-305 LPIC3-305 container virtualization Practice Questions