Exam Information
Free practice questions with explanations
LPI 305-300 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Container Virtualization
A platform team runs several application containers on a single Linux host. A security review finds that a container running as root can see and signal processes belonging to other containers. The team must keep the containers' process trees isolated without giving up the lightweight, shared-kernel model. Which kernel feature should the team rely on to provide this isolation?
Correct Answer: BExplanationPID namespaces give each container its own process ID numbering and hide processes outside its namespace, so signals and process listings cannot reach other containers' trees. Control groups govern resource accounting and limits, not visibility of processes. Seccomp restricts system calls rather than process visibility, and it does not stop a root process from seeing other processes that share the host PID space. Overlay file systems handle image layering and say nothing about process isolation.
-
2 Question 2 Multiple choice Container Virtualization
A financial services company runs system containers for legacy batch jobs and application containers for microservices on shared hosts. Auditors require that a compromised container cannot exhaust host memory or escape its privilege boundary, and the operations team wants to avoid running a full guest kernel per workload. Which two measures together meet these requirements? (Choose two.)
Correct Answer: B, CExplanationMemory limits enforced by the cgroup memory controller stop a container from exhausting host memory, and dropping capabilities plus a restrictive seccomp profile reduces what a compromised container can do with the shared kernel. Running a full KVM guest per workload satisfies isolation but violates the no-guest-kernel constraint. Disabling user namespaces removes a hardening layer rather than adding one. Noexec and nosuid mount options alone do not address memory exhaustion or syscall-level privilege escape.
-
3 Question 3 Order list Full Virtualization
A system administrator must bring up a new QEMU/KVM guest on a Red Hat Enterprise Linux host through libvirt. The guest disk is to be a qcow2 image on a dedicated storage pool, and the guest must be defined persistently and then started. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Start the guest with virsh start and verify its state
- Confirm that the libvirtd service is running on the host
- Attach the installation ISO and set the boot device in the domain XML
- Create the qcow2 disk image in the storage pool directory
- Define the guest domain from an XML definition using virsh define
Correct Answer:- Create the qcow2 disk image in the storage pool directory
- Define the guest domain from an XML definition using virsh define
- Confirm that the libvirtd service is running on the host
- Start the guest with virsh start and verify its state
- Attach the installation ISO and set the boot device in the domain XML
ExplanationThe libvirt daemon must be running before any domain or storage operations can succeed, so it is verified first. The qcow2 disk is created next so that the domain definition can reference it. The domain is then defined persistently with virsh define, after the ISO and boot device have been set in the XML, and only then is it started. Starting the guest before the definition exists, or attaching media after the domain is already running, does not produce the required persistent configuration.
-
4 Question 4 Single choice Full Virtualization
A cloud provider hosts tenants on KVM guests. Each tenant needs strict isolation from the host and from other tenants, and the provider wants to run unmodified guest operating systems including Windows. The provider also wants the hypervisor components to be trusted as little as possible. Which architecture best satisfies these requirements compared with a paravirtualized Xen deployment?
Correct Answer: DExplanationHardware-assisted KVM runs unmodified guests, including Windows, and QEMU runs as a separate unprivileged user-space process that emulates devices, which reduces the trusted computing base compared with a monolithic privileged domain. Paravirtualized Xen requires modified guest kernels, which rules out unmodified Windows. Container isolation shares the host kernel and does not provide hypervisor-level isolation. Running Xen with all device drivers in privileged dom0 concentrates trust in that domain, contrary to the stated constraint.
-
5 Question 5 Drag and drop Libvirt Virtual Machine Management
A virtualization manager operates a small cluster of KVM hosts managed by libvirt. Each requirement below must be met by one specific libvirt-related mechanism. Match each requirement to the mechanism that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Keep a guest's disk state recoverable to a point before a risky changeMove a running guest to another host with no downtime and its memory state preservedCap a guest's share of host CPU time without restarting itLive migration using virsh migrate with the --live optionEnabling a bridge network with virsh net-autostartSetting the vcpu tuning or cputune parameters with virsh schedinfo or the domain XMLConverting the guest disk to raw format with qemu-img convertCreating an external disk snapshot with virsh snapshot-create-asCorrect Answer:- Move a running guest to another host with no downtime and its memory state preserved → Live migration using virsh migrate with the --live option
- Cap a guest's share of host CPU time without restarting it → Setting the vcpu tuning or cputune parameters with virsh schedinfo or the domain XML
- Keep a guest's disk state recoverable to a point before a risky change → Creating an external disk snapshot with virsh snapshot-create-as
ExplanationLive migration with virsh migrate --live moves the running memory state to a destination host without stopping the guest. CPU shares and quotas are adjusted through scheduler or cputune settings, which take effect on the running domain. External snapshots with virsh snapshot-create-as preserve a recoverable disk state before a change. Converting disk format does not give recoverability or migration, and autostarting a network affects only network startup, not guest movement or resource control.
-
6 Question 6 Dropdown Libvirt Virtual Machine Management
A virtualization administrator must attach a new virtual network interface to a running KVM guest so that the change survives a guest reboot, and must use the bridge already defined on the host. Complete the command by selecting the correct value for each blank.
Choose the correct value for each blank.
virsh attach-interface --domain web01 --type --source br0 --model virtio --config --liveCorrect Answer:virsh attach-interface --domain web01 --type bridge --source br0 --model virtio --config --live --config
ExplanationA host bridge is attached with the type bridge, which points the source at the existing br0 device. The --config flag writes the change to the persistent domain definition so it survives a reboot, and combined with --live it also applies to the running guest. The network type expects a libvirt network name instead of a bridge device. The --current flag acts on the current state but does not express persistence in this combination, and --persistent-only and --nodefine are not valid attach-interface options.
-
7 Question 7 Single choice Libvirt Virtual Machine Management
A team migrates a KVM guest between two hosts using shared storage over NFS. After a live migration, the guest appears on the destination host but its network connection drops and the source host still lists the domain as running. The administrator checks and finds the guest's XML on the destination differs from the source in its bridge name. Which action is the most appropriate FIRST step to restore service without repeating the migration?
Correct Answer: BExplanationThe destination host lacks the bridge the guest expects, so correcting the interface in the destination domain definition and restarting restores network connectivity without another migration. Killing the source qemu process before the destination is verified risks losing the only running instance and data integrity. Reinstalling the operating system is unnecessary because the disk state is intact. Converting the disk format does not address a mismatched bridge and risks data loss on shared storage.
-
8 Question 8 Multiple choice Virtual Machine Disk Image Management
A storage administrator manages qcow2 images for guests on a KVM host. The images are backed by a read-only base image shared by several guests, and the administrator must reclaim space and confirm the integrity of the chain before a host upgrade. Which two commands are appropriate for these goals? (Choose two.)
Correct Answer: A, CExplanationqemu-img check validates qcow2 metadata and reports inconsistencies, which supports the integrity verification requirement. qemu-img info shows the backing file chain and virtual size, letting the administrator confirm the overlay-to-base relationship before the upgrade. Converting every image to raw would multiply storage use, against the space goal. Shrinking a base image with resize risks corrupting shared data that other guests depend on. Recreating overlays with qemu-img create discards existing guest state rather than verifying it.
-
9 Question 9 Order list Virtual Machine Disk Image Management
A storage administrator must consolidate a qcow2 overlay chain for a guest so that the guest no longer depends on its backing file, while keeping the guest's data intact and avoiding any loss if the operation fails. The guest is shut down for the operation. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Create a full backup copy of the overlay image on a separate storage pool
- Run qemu-img convert to write a standalone image containing all data from the chain
- Point the guest domain definition at the new standalone image and start the guest
- Shut down the guest and confirm that no qemu process holds the image open
- Verify the overlay chain integrity with qemu-img check before changing anything
Correct Answer:- Shut down the guest and confirm that no qemu process holds the image open
- Verify the overlay chain integrity with qemu-img check before changing anything
- Create a full backup copy of the overlay image on a separate storage pool
- Run qemu-img convert to write a standalone image containing all data from the chain
- Point the guest domain definition at the new standalone image and start the guest
ExplanationThe guest must be stopped and the image unlocked before any disk operation is safe. Verifying integrity comes before modification so that a corrupt chain is not consolidated. A backup must exist before any write that could fail, then the chain is flattened into a standalone image with qemu-img convert. Only after the domain points to the new image is the guest restarted. Backing up after conversion, or starting the guest before repointing it, would either lose the safety net or run the guest on a stale image.
-
10 Question 10 Single choice Virtual Machine Disk Image Management
A virtualization specialist supports a KVM environment where guest disks are stored as qcow2 files on an NFS export. Several guests have grown their images until the NFS volume is nearly full, and the operations team wants to reclaim unused space within the guests' qcow2 files without stopping the guests and without changing the guest-visible disk size. Which action best meets these requirements?
Correct Answer: BExplanationRunning fstrim inside the guest issues discard requests for unused filesystem blocks, and a disk configured with discard support passes those to the qcow2 image so the host can reclaim space while the guest runs and keeps its virtual size. Shrinking with qemu-img resize would change the guest-visible disk size, violating the constraint. Converting to raw allocates the full size and does not reclaim space. Recreating images requires stopping the guests and risks data loss.
These are 10 of the 121 questions in the full 305-300 pack.
Get All 121 QuestionsGet all 121 questions & answers
Full access options for LPI 305-300
Self-study
PDF Version
- 121 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 121 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 121 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 305-300 Exam (LPIC-3: Virtualization and Containerization - Exam 305, (version 3.0)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.