Courseiva
← Back to LPIC-3 Exam 305: Virtualization and Containerization (305-300) (305-300) questions

Scenario-based practice

Hard Difficulty Questions

Practise LPIC-3 Exam 305: Virtualization and Containerization (305-300) (305-300) practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

20
scenario questions
305-300
exam code
LPI
vendor

Scenario guide

How to approach hard difficulty questions

These are the questions most candidates get wrong. They require connecting multiple concepts, reading tricky output, or knowing edge-case behaviour that isn't on most study cards. Practising them trains you to operate under uncertainty — a necessary skill on the real exam.

Quick answer

Hard Difficulty Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Related practice questions

Related 305-300 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

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

Question 2hardmultiple choice
Full question →

When configuring cloud-init 'network-config', which format is primarily used to describe network interfaces?

Question 3hardmultiple choice
Full question →

In a Vagrantfile, which method is used to pass environment variables into the guest virtual machine during the provisioning phase?

Question 4hardmultiple choice
Full question →

You are preparing a KVM guest for a live migration with virsh migrate --live and want the guest's disk writes to be tracked on the source host so that only dirty blocks are transferred after the memory copy begins. The guest disk is a raw image on a local LVM logical volume, and the destination host can reach the source's storage via a shared Fibre Channel LUN, but the LUN is not yet visible on the destination. Which action must you take on the source host before starting the migration to enable dirty-block tracking for this disk?

Question 5hardmultiple choice
Full question →

A KVM guest is configured with a virtio-blk disk backed by a qcow2 image on an NFS mount. During heavy write activity, the guest reports I/O errors and the host logs show 'nfs: server not responding'. You need to improve resilience so that transient NFS outages do not immediately cause guest I/O failures. Which QEMU block device cache mode should you set for the disk to allow the guest to continue operating during brief NFS stalls?

Question 6hardmultiple choice
Full question →

A KVM host uses a storage pool of type 'logical' backed by an LVM volume group named vg_vms. You need to create a new 20 GB volume for a guest directly from this pool using virsh. Which command accomplishes this?

Question 7hardmultiple choice
Full question →

You are troubleshooting a KVM guest that fails to start with the error 'unsupported configuration: CPU mode 'host-passthrough' requires KVM'. Which of the following is the most likely cause?

Question 8hardmultiple choice
Full question →

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 9hardmultiple choice
Full question →

A running KVM guest named db1 has its root disk on a qcow2 image. You need to create a point-in-time snapshot of the guest's disk and memory state so it can be reverted later, while keeping the guest running. Which virsh command should you use?

Question 10hardmultiple choice
Full question →

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?

Question 11hardmultiple choice
Full question →

You are troubleshooting a Docker container that fails to start with the error 'no space left on device' even though the host has ample free disk space. The container uses the overlay2 storage driver. Which of the following is the most likely cause?

Question 12hardmulti select
Full question →

You are troubleshooting a Docker container that fails to start with the error "no space left on device" even though the host's root filesystem has free space. The Docker daemon uses the overlay2 storage driver on a dedicated /var/lib/docker partition. Which two actions should you take to resolve the issue? (Choose two.)

Question 13hardmulti select
Full question →

You are configuring a rootless Podman container that needs to bind to a privileged port (port 80) on the host. Which TWO of the following are required to achieve this? (Choose two.)

Question 14hardmultiple choice
Full question →

You are using Packer to build a VMware vSphere template. The build fails with an error that the 'vsphere-iso' builder cannot find the ISO file on a datastore. You have uploaded the ISO to a content library. Which Packer configuration option should you use to reference the ISO from the content library?

Question 15hardmulti select
Full question →

Which THREE of the following steps are involved in performing a manual disk migration of a VM?

Question 16hardmulti select
Full question →

Which THREE of the following are valid options for 'virsh shutdown'?

Question 17hardmultiple choice
Full question →

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?

Question 18hardmultiple choice
Full question →

A VM is hanging because of a specific hardware emulation bug in QEMU. You need to enable the 'qxl' video device to see if it resolves display issues. What is the XML tag to define the video device in the domain config?

Question 19hardmultiple choice
Full question →

You are performing a live migration of a VM using libvirt. The source and destination hosts share a common storage pool (NFS). Which option should be used with 'virsh migrate' to ensure only the memory state is transferred?

Question 20hardmultiple choice
Full question →

In cloud-init, which syntax is required at the very beginning of the configuration file to ensure it is recognized as a cloud-config script?

These 305-300 practice questions are part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style 305-300 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.

LPIC-3 Exam 305: Virtualization and Containerization (305-300)…