Practice 305-300 Container Virtualization questions with full explanations on every answer.
Start practicing
Container Virtualization — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
Which THREE of the following are valid storage driver options for Docker on Linux?
2You are optimizing a Dockerfile to reduce image size. Which THREE of the following practices are recommended?
3You 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?
4You 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?
5A 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?
6You 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?
7Which Docker command is used to display the resource usage (CPU, memory) of running containers?
8When building a Dockerfile, which instruction should be used to define the user context for subsequent RUN, CMD, and ENTRYPOINT instructions?
9You need to inspect the metadata of a specific Docker image without pulling it from a remote registry. Which command should you use?
10You are using systemd-nspawn and want to run a container that shares the host's network namespace. Which flag is required?
11In 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?
12You 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?
13You are building a multi-stage Dockerfile and want to copy a binary from the 'builder' stage to the final stage. Which syntax is correct?
14When 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?
15Which command is used to stop all running containers?
16Which command allows you to enter an existing running container and execute a new command inside it?
17Which flag is used to run a container in the background?
18In 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?
19You 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?
20Which instruction in a Dockerfile is best suited for installing packages to minimize image size?
21You 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?
22What is the purpose of the 'rkt' (Rocket) container runtime?
23Which command is used to remove an unused Docker image?
24You need to inspect the configuration of an LXC container named 'web'. Which command should you use?
25In a Docker swarm, which mode of service publishing allows incoming traffic to be load-balanced across all healthy container replicas?
26Which command shows the history of layers in a Docker image?
27What is the primary function of a Docker Registry?
28You are using systemd-nspawn. How do you create an image of a container to be used as a template?
29Which 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?
30You are configuring an OpenVZ container. Which command is used to set the hostname of the container from the host?
31When using 'docker-compose', which file format is used to define the services?
32How do you view the logs of a running container?
33You are troubleshooting a problem where an LXC container cannot access its own /dev/null. What is a common cause in a non-root container?
34In systemd-nspawn, how can you execute a command inside a container that is already running?
35Which command lists all Docker images currently on the host?
36What is the purpose of the 'ENTRYPOINT' instruction in a Dockerfile?
37You are using an overlay network in Docker Swarm. What is the standard protocol used for the control plane and data plane communication between nodes?
38In a FreeBSD Jail, how can you ensure the jail starts automatically at boot?
39Which TWO commands are valid for inspecting container network settings?
40Which TWO items are typically included in a Docker context?
41Which THREE features are provided by Linux Namespaces in the context of containers?
42Which THREE storage drivers are supported by Docker?
43Which TWO of the following are valid container orchestration platforms?
44Which THREE configuration items can be managed by LXC cgroups?
45Which TWO commands are used to manage images in Docker?
46Which THREE networking modes are natively supported by Docker?
47What is the main advantage of using a container over a virtual machine?
48Which command provides system-wide information about the Docker installation?
49What is the role of the 'Dockerfile' in the container build process?
50In systemd-nspawn, how do you specify a different root directory for the container?
51You 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?
52You 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?
53What does the 'docker rm' command do?
54You 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?
55A 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?
56You 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?
57You are managing an LXC container and need to create a snapshot of the container's root file system. Which command achieves this?
58When 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?
59When 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?
60Which command-line tool is primarily used to inspect the metadata and configuration of a running Docker container?
61What is the primary function of the ENTRYPOINT instruction in a Dockerfile?
62Which file is primarily responsible for defining the configuration and environment variables for an OpenVZ container?
63You are using BSD Jails and need to start a jail. Which utility is the standard management tool for jail administration?
64You need to limit the amount of CPU shares a Docker container can utilize. Which flag should be used?
65When cleaning up Docker resources, which command will remove all stopped containers, unused networks, and dangling images in one step?
66In the context of container orchestration, what is the role of a 'sidecar' container?
67Which kernel feature provides the isolation necessary for namespaces in container virtualization?
68You 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?
69What is the primary difference between a container image and a container instance?
70When configuring a systemd-nspawn container, what is the effect of the --private-network option?
71Which Dockerfile instruction is used to copy a file from the host file system into the image?
72Which command-line option is used to run a Docker container in the background (detached mode)?
73Which TWO of the following are valid storage drivers used by Docker to manage image layers?
74Which THREE commands are used to manage the lifecycle of an LXC container?
75Which THREE items are typically included in an OpenVZ configuration file?
76Which TWO types of namespaces are commonly used to achieve container isolation in Linux?
77Which THREE instructions in a Dockerfile can modify the image's filesystem?
78Which TWO of the following are true regarding the differences between rkt (Rocket) and Docker?
79Which THREE of the following are components of the Docker architecture?
80Which TWO of the following are true regarding container orchestration platforms?
The Container Virtualization domain covers the key concepts tested in this area of the 305-300 exam blueprint published by LPI. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all 305-300 domains — no account required.
The Courseiva 305-300 question bank contains 80 questions in the Container Virtualization domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Container Virtualization domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included