Courseiva

305-300 · topic practice

Container Virtualization practice questions

This domain covers container virtualization on Linux, focusing on LXC, Docker, and systemd-nspawn. Candidates must manage container filesystems, snapshots, networking, and image metadata from the command line. Questions test practical command selection and configuration syntax rather than conceptual theory, so familiarity with real tooling and exact options is essential.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Container Virtualization

What the exam tests

What to know about Container Virtualization

You must be able to choose and run the correct container management command for filesystem snapshots, network driver selection, alternate root directories, and local image inspection. The most important thing is matching the exact tool and option to the task, especially LXC versus Docker versus systemd-nspawn.

Creating and restoring LXC container root filesystem snapshots with lxc-snapshot or lxc-copy

Selecting Docker network drivers such as macvlan for containers needing physical network IPs

Specifying an alternate root directory in systemd-nspawn using the -D or --directory option

Inspecting Docker image metadata locally with docker inspect or docker image inspect

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 LXC snapshot commands with Docker commit or image layering, leading to wrong tool selection for filesystem snapshots.
  • ▸Assuming Docker bridge networking gives containers physical network IPs; macvlan or ipvlan is required for that behavior.
  • ▸Forgetting that systemd-nspawn needs -D/--directory for a custom root, and instead passing the path as a bare argument.

Practice set

Container Virtualization questions

20 questions · select your answer, then reveal the explanation

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

You are using systemd-nspawn to run a container. You notice the container does not have access to the host's system clock. Which flag must be added to the command to allow access to the system time?

Question 3mediummultiple choice
Study the full virtualization explanation →

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?

Question 4mediummultiple choice
Study the full virtualization explanation →

You are configuring an LXC container and need to ensure the container's root filesystem is isolated from the host. Which configuration option in the container's config file restricts access to the host's /dev directory?

Question 5mediummultiple choice
Study the full virtualization explanation →

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

Question 6mediummultiple choice
Study the full virtualization explanation →

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?

What is the default bridge network created by Docker when the daemon starts?

Question 8mediummultiple choice
Study the full virtualization explanation →

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

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?

Question 10mediummultiple choice
Study the full virtualization explanation →

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

Question 11hardmultiple choice
Study the full virtualization explanation →

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?

Which TWO items are typically included in a Docker context?

Question 13hardmultiple choice
Study the full virtualization explanation →

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?

Question 14hardmultiple choice
Study the full virtualization explanation →

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?

Question 15mediummultiple choice
Study the full virtualization explanation →

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

Question 16mediummultiple choice
Study the full virtualization explanation →

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

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

An administrator is configuring a Docker container to limit its CPU and memory usage. Which TWO of the following options can be used with the docker run command to enforce these resource constraints? (Choose two.)

Question 19hardmultiple choice
Study the full virtualization explanation →

You are deploying a multi-container application with Docker Compose. The web container must be able to resolve the service name 'db' to the database container's IP address, but the database container must NOT be able to initiate connections to the web container. Both containers are on the same user-defined bridge network 'app_net'. Which configuration change should you make?

Question 20hardmultiple choice
Study the full virtualization explanation →

You are building a container image with Buildah and want to ensure that the resulting image can be run by a non-root user without any additional runtime flags. The application inside writes logs to /var/log/app. Which Dockerfile instruction or Buildah command should you use to make /var/log/app writable by the non-root user in the final image?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Container Virtualization sessions

Start a Container Virtualization only practice session

Every question in these sessions is drawn from the Container Virtualization domain — nothing else.

Related practice questions

Related 305-300 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 305-300 exam test about Container Virtualization?
You must be able to choose and run the correct container management command for filesystem snapshots, network driver selection, alternate root directories, and local image inspection. The most important thing is matching the exact tool and option to the task, especially LXC versus Docker versus systemd-nspawn.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Container Virtualization questions in a focused session?
Yes — the session launcher on this page draws every question from the Container Virtualization domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other 305-300 topics?
Use the topic links above to move to related areas, or go back to the 305-300 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the 305-300 exam covers. They are not copied from any real exam or dump site.