305-300 · domain
Container Virtualization
Practise questions on virtualization concepts cover hypervisor types, VM resource management, and host/guest relationships for 305-300.
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.
Which TWO of the following are true regarding the differences between rkt (Rocket) and Docker?
Hard2In systemd-nspawn, how can you execute a command inside a container that is already running?
Medium3In a FreeBSD Jail, how can you ensure the jail starts automatically at boot?
Hard4Which 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?
Medium5When building a Dockerfile, which instruction should be used to define the user context for subsequent RUN, CMD, and ENTRYPOINT instructions?
Easy6When configuring a systemd-nspawn container, what is the effect of the --private-network option?
Hard7A 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?
Medium8You 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?
Medium9Which Dockerfile instruction is used to copy a file from the host file system into the image?
Medium10Which THREE instructions in a Dockerfile can modify the image's filesystem?
Medium11You 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?
Medium12Which THREE networking modes are natively supported by Docker?
Hard13Which THREE features are provided by Linux Namespaces in the context of containers?
Hard14Which kernel feature provides the isolation necessary for namespaces in container virtualization?
Medium15What does the 'docker rm' command do?
Easy16A 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?
Medium17Which file is primarily responsible for defining the configuration and environment variables for an OpenVZ container?
Medium18You are using systemd-nspawn. How do you create an image of a container to be used as a template?
Hard19What is the primary function of a Docker Registry?
Medium20When 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?
Hard21When using 'docker-compose', which file format is used to define the services?
Medium22When 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?
Medium23You 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?
Hard24Which command is used to remove an unused Docker image?
Easy25Which TWO of the following are valid container orchestration platforms?
Medium26Which TWO commands are used to manage images in Docker?
Medium27Which THREE storage drivers are supported by Docker?
Hard28What is the main advantage of using a container over a virtual machine?
Easy29You need to inspect the metadata of a specific Docker image without pulling it from a remote registry. Which command should you use?
Medium30You 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?
Medium31You are using BSD Jails and need to start a jail. Which utility is the standard management tool for jail administration?
Medium32You need to inspect the configuration of an LXC container named 'web'. Which command should you use?
Medium33Which THREE items are typically included in an OpenVZ configuration file?
Hard34You are troubleshooting a problem where an LXC container cannot access its own /dev/null. What is a common cause in a non-root container?
Hard35You 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?
Medium36You 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?
Medium37In a Docker swarm, which mode of service publishing allows incoming traffic to be load-balanced across all healthy container replicas?
Hard38Which command lists all Docker images currently on the host?
Easy39When cleaning up Docker resources, which command will remove all stopped containers, unused networks, and dangling images in one step?
Hard40You are using an overlay network in Docker Swarm. What is the standard protocol used for the control plane and data plane communication between nodes?
Hard41You need to limit the amount of CPU shares a Docker container can utilize. Which flag should be used?
Medium42Which Docker command is used to display the resource usage (CPU, memory) of running containers?
Easy43When 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?
Hard44Which THREE configuration items can be managed by LXC cgroups?
Hard45You are optimizing a Dockerfile to reduce image size. Which THREE of the following practices are recommended?
Hard46In the context of container orchestration, what is the role of a 'sidecar' container?
Medium47You 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?
Hard48Which command-line tool is primarily used to inspect the metadata and configuration of a running Docker container?
Easy49Which THREE of the following are components of the Docker architecture?
Medium50Which command allows you to enter an existing running container and execute a new command inside it?
Medium51Which TWO types of namespaces are commonly used to achieve container isolation in Linux?
Medium52You are building a multi-stage Dockerfile and want to copy a binary from the 'builder' stage to the final stage. Which syntax is correct?
Hard53You 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?
Medium54Which THREE of the following are valid storage driver options for Docker on Linux?
Hard55Which command-line option is used to run a Docker container in the background (detached mode)?
Easy56You are managing an LXC container and need to create a snapshot of the container's root file system. Which command achieves this?
Medium57In 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?
Hard58In systemd-nspawn, how do you specify a different root directory for the container?
Hard59What is the primary difference between a container image and a container instance?
Easy60Which THREE commands are used to manage the lifecycle of an LXC container?
Medium61What is the primary function of the ENTRYPOINT instruction in a Dockerfile?
Easy62Which TWO items are typically included in a Docker context?
Medium63How do you view the logs of a running container?
Easy64Which instruction in a Dockerfile is best suited for installing packages to minimize image size?
Medium65Which TWO commands are valid for inspecting container network settings?
Medium66What is the purpose of the 'rkt' (Rocket) container runtime?
Medium67Which command shows the history of layers in a Docker image?
Easy68You 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?
Hard69What is the role of the 'Dockerfile' in the container build process?
Medium70Which TWO of the following are valid storage drivers used by Docker to manage image layers?
Medium71You 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?
Hard72Which command provides system-wide information about the Docker installation?
Easy73You 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?
Medium74Which flag is used to run a container in the background?
Easy75What is the purpose of the 'ENTRYPOINT' instruction in a Dockerfile?
Medium76You are configuring an OpenVZ container. Which command is used to set the hostname of the container from the host?
Hard77In 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?
Hard78Which TWO of the following are true regarding container orchestration platforms?
Hard79Which command is used to stop all running containers?
Easy80You are using systemd-nspawn and want to run a container that shares the host's network namespace. Which flag is required?
MediumOther domains
All 305-300 exam domains
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.