Courseiva

305-300 · domain

troubleshooting

Practise LPIC-3 Exam 305: Virtualization and Containerization (305-300) (305-300) troubleshooting practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

194 questions34 easy94 medium66 hard

Focused practice

Practice troubleshooting 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 troubleshooting

troubleshooting 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.

Watch out for

Common troubleshooting exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Question index

All troubleshooting questions (194)

Click any question to see the full explanation, or start a practice session above.

1

Which command checks the status of the libvirtd service?

Medium
2

A libvirt storage pool of type 'dir' contains several qcow2 images. You want to create a new snapshot of an existing VM using virsh. Which command sequence is required to create an internal snapshot of the VM's current state?

Hard
3

Which hypervisor is known for being 'Type 2'?

Easy
4

Which TWO of the following are true regarding the differences between rkt (Rocket) and Docker?

Hard
5

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

Medium
6

In a FreeBSD Jail, how can you ensure the jail starts automatically at boot?

Hard
7

Which TWO of the following are common ways to connect to a virtual machine's console?

Medium
8

Which 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?

Medium
9

You need to change the MAC address of a network interface for a virtual machine. Where is this configured?

Medium
10

What is the purpose of the 'virt-install' tool?

Medium
11

You are configuring a virtual network with a static IP address for a VM. Where do you define the DHCP host entry in the libvirt network XML?

Hard
12

When building a Dockerfile, which instruction should be used to define the user context for subsequent RUN, CMD, and ENTRYPOINT instructions?

Easy
13

When configuring a systemd-nspawn container, what is the effect of the --private-network option?

Hard
14

A 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?

Medium
15

Which THREE of the following are valid virtio device types?

Hard
16

Which libvirt network type uses a bridge on the host to connect virtual machines directly to the physical network?

Medium
17

Which TWO of the following are valid storage pool types in libvirt?

Medium
18

You are configuring a virtual network with a bridge. You want to disable DNS services for that network. What XML element within the <network> definition do you remove or comment out?

Hard
19

You 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?

Medium
20

Which Dockerfile instruction is used to copy a file from the host file system into the image?

Medium
21

You have a qcow2 disk image that is growing too large. You want to shrink the file size on the host while keeping the virtual disk the same size. Which steps must you perform first?

Medium
22

Which THREE instructions in a Dockerfile can modify the image's filesystem?

Medium
23

What is the primary function of the libvirtd daemon?

Easy
24

Which THREE features are provided by the Vagrant 'synced_folder' functionality?

Medium
25

Which file system format is specifically designed for QEMU/KVM to support advanced features like copy-on-write, snapshots, and compression?

Medium
26

You are configuring a Xen guest that requires direct hardware access to a specific network interface card. Which configuration parameter in the guest domain configuration file must be specified to enable PCI passthrough?

Medium
27

Which signal is sent to a QEMU process when you run 'virsh destroy'?

Medium
28

When provisioning with Vagrant, which command is best used to apply changes to a configuration (like adding a new shell script) without destroying the existing virtual machine?

Medium
29

You want to limit the bandwidth of a virtual network interface. Which XML element within <interface> allows you to configure this?

Hard
30

In a Vagrant environment, where should sensitive data like API keys be stored to avoid committing them to version control?

Medium
31

Which TWO of the following commands can be used to monitor VM resource utilization?

Medium
32

You 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?

Medium
33

When configuring a VM in libvirt, you want to ensure the highest performance for disk I/O. Which driver type should you select for the disk device?

Easy
34

Which THREE networking modes are natively supported by Docker?

Hard
35

Which THREE features are provided by Linux Namespaces in the context of containers?

Hard
36

Which THREE settings are commonly configured in the 'provider' block of a Vagrantfile for virtualbox?

Medium
37

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

Medium
38

When using Vagrant to manage a libvirt-based provider, which command verifies that the virtual machine is currently running and identifies the provider in use?

Easy
39

Which THREE of the following are valid components of a libvirt domain XML configuration?

Hard
40

What does the 'docker rm' command do?

Easy
41

Which hypervisor type is considered 'Type 1' virtualization?

Easy
42

A 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?

Medium
43

You need to add a second NIC to a VM via XML. How do you ensure the second NIC uses a different MAC address than the first one?

Hard
44

Which file is primarily responsible for defining the configuration and environment variables for an OpenVZ container?

Medium
45

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

Hard
46

You are using systemd-nspawn. How do you create an image of a container to be used as a template?

Hard
47

What is the purpose of the virtio-balloon driver in a guest?

Medium
48

You need to ensure that a specific package is installed during the first boot of a cloud instance. Which cloud-init key should be added to the configuration?

Medium
49

Which command is used to display the configuration of a Packer build in a readable format?

Easy
50

What is the primary function of a Docker Registry?

Medium
51

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

Hard
52

What is the purpose of 'virt-top'?

Medium
53

When defining a Vagrant network configuration for a libvirt provider, which mode allows the VM to receive an IP address directly from the physical network's DHCP server?

Medium
54

Which file in a Vagrant project directory is processed by default to define the virtual environment configuration?

Easy
55

Which TWO of the following are valid ways to configure VM networking?

Medium
56

You are configuring a virtual network in libvirt that allows VMs to communicate with each other and the host, but prevents them from accessing the external network. Which mode should you select for this network?

Easy
57

You are using QEMU to emulate an ARM architecture on an x86_64 host. You need to ensure the guest has access to the host's filesystem directly without configuring network shares. Which option is the correct way to pass a directory through to the guest?

Medium
58

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?

Hard
59

When using 'docker-compose', which file format is used to define the services?

Medium
60

When 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?

Medium
61

You are configuring a QEMU-KVM guest to use VirtIO-net. Which parameter in the QEMU command line correctly enables the virtio-net-pci device with a tap interface named tap0?

Medium
62

What is the purpose of the 'virsh' tool?

Easy
63

Which THREE configuration items can be managed via cloud-init 'write_files' module?

Hard
64

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

Hard
65

You 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?

Hard
66

Which command is used to remove an unused Docker image?

Easy
67

Which TWO of the following are valid container orchestration platforms?

Medium
68

Which TWO commands are used to manage images in Docker?

Medium
69

Which THREE of the following attributes can be defined within the <memoryBacking> XML block?

Hard
70

Which THREE storage drivers are supported by Docker?

Hard
71

What is the main advantage of using a container over a virtual machine?

Easy
72

You need to inspect the metadata of a specific Docker image without pulling it from a remote registry. Which command should you use?

Medium
73

You 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?

Medium
74

You are troubleshooting a libvirt migration that fails with 'Operation not supported: Migration requires a storage pool'. You need to perform a block migration where the storage is copied to the destination host. Which command-line flag enables this functionality?

Hard
75

You are using BSD Jails and need to start a jail. Which utility is the standard management tool for jail administration?

Medium
76

Which QEMU-KVM feature allows you to save the state of a VM to a file and resume it later?

Medium
77

You need to attach a new block device to a running VM. What virsh command achieves this?

Medium
78

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

Medium
79

In the context of virtualization, what does 'ballooning' refer to?

Easy
80

You need to convert a raw disk image to QCOW2 format to enable snapshotting. Which command is correct?

Medium
81

Which TWO of the following commands can be used to manage virtual networks in libvirt?

Medium
82

Which THREE items are typically included in an OpenVZ configuration file?

Hard
83

Which TWO of the following are valid ways to trigger provisioning in Vagrant?

Medium
84

Which command is used to list all defined virtual networks in Libvirt?

Easy
85

You need to enable hugepages for a VM in libvirt to improve memory performance. What XML entry do you add?

Hard
86

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?

Hard
87

What is the default behavior of Vagrant when a box is not found locally on the host machine?

Easy
88

Which tool is commonly used alongside Packer to validate the configuration file for syntax errors before attempting a build?

Medium
89

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?

Medium
90

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?

Hard
91

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?

Medium
92

In a Docker swarm, which mode of service publishing allows incoming traffic to be load-balanced across all healthy container replicas?

Hard
93

Which command lists all Docker images currently on the host?

Easy
94

Which TWO of the following are valid network modes for a libvirt virtual network?

Medium
95

When cleaning up Docker resources, which command will remove all stopped containers, unused networks, and dangling images in one step?

Hard
96

When using Vagrant with multiple machines in a single Vagrantfile, how do you define individual configurations?

Medium
97

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?

Hard
98

What does the term 'KVM' stand for?

Easy
99

Which THREE of the following are required for a successful live migration between two KVM hosts using libvirt?

Hard
100

Which utility is best for creating a new libvirt storage pool?

Medium
101

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

Medium
102

Which Docker command is used to display the resource usage (CPU, memory) of running containers?

Easy
103

Which cloud-init module is responsible for setting the hostname of the instance during the initial boot process?

Medium
104

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?

Hard
105

Which THREE configuration items can be managed by LXC cgroups?

Hard
106

Which TWO of the following are valid ways to manage storage pools using virsh?

Medium
107

What is the default location for libvirt domain configuration XML files?

Medium
108

Which TWO components are defined in a Packer 'build' block?

Hard
109

You are optimizing a Dockerfile to reduce image size. Which THREE of the following practices are recommended?

Hard
110

Which file system structure is typically used for QEMU virtual disk images when using LVM?

Easy
111

You are troubleshooting a performance issue and want to pin a VM process to specific physical CPU cores. Which XML element is used?

Hard
112

Which command is used to list all active running domains?

Medium
113

In the context of container orchestration, what is the role of a 'sidecar' container?

Medium
114

When using Packer with the QEMU builder, what does the 'format' option in the 'qemu' builder define?

Hard
115

Which THREE of the following are valid Libvirt storage pool types?

Medium
116

You are troubleshooting a libvirt network issue where the virtual machines cannot reach the external gateway. The virtual network uses a NAT configuration. Which file would you inspect to verify the iptables rules generated by libvirt for this network?

Hard
117

You 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?

Hard
118

You want to optimize disk I/O performance for a KVM guest. Which bus type should you configure in the libvirt domain XML for the virtual disk?

Medium
119

Which command-line tool is primarily used to inspect the metadata and configuration of a running Docker container?

Easy
120

When migrating a Libvirt domain using 'virsh migrate --live', which option must be specified to ensure the guest's memory state is copied over the network?

Hard
121

In a Xen environment, which command would you use to change the number of VCPUs allocated to a running domain 'dom1' to 4?

Hard
122

Which THREE of the following are components of the Docker architecture?

Medium
123

You need to migrate a running QEMU VM to a remote host using live migration. Which command-line argument for QEMU-KVM initiates a migration to a target host at 192.168.1.50 on port 4444?

Hard
124

You need to create a snapshot of a QCOW2 disk image without stopping the virtual machine. Which qemu-img sub-command should be used?

Medium
125

You are using QEMU to emulate an ARM architecture on an x86 host. Which binary would you typically use to execute this?

Hard
126

Which command allows you to enter an existing running container and execute a new command inside it?

Medium
127

Which THREE of the following are legitimate security concerns when managing a virtualization host?

Hard
128

Which option for 'qemu-img create' allows you to create a preallocated image?

Hard
129

Which TWO pieces of information does Packer require to build an image for an existing cloud environment?

Hard
130

You are configuring cloud-init to inject an SSH key into a new VM. Which directive in the configuration metadata ensures the key is added to the correct user's authorized_keys file?

Hard
131

Which TWO types of namespaces are commonly used to achieve container isolation in Linux?

Medium
132

Which THREE of the following are necessary to enable QEMU guest agent integration?

Hard
133

What is a 'snapshot' in virtualization?

Easy
134

You are building a multi-stage Dockerfile and want to copy a binary from the 'builder' stage to the final stage. Which syntax is correct?

Hard
135

You 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?

Medium
136

Which component is responsible for the actual hardware-assisted virtualization in KVM?

Easy
137

You are using Packer to automate a build. You notice the build fails because the 'communicator' cannot connect. Which type of communicator is most suitable for a KVM-based build where SSH is not yet configured?

Hard
138

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

Hard
139

Which THREE of the following are valid elements inside the <interface type='bridge'> block?

Hard
140

Which command-line option is used to run a Docker container in the background (detached mode)?

Easy
141

You are managing an LXC container and need to create a snapshot of the container's root file system. Which command achieves this?

Medium
142

In 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?

Hard
143

Which of these is a valid virtualization storage pool type supported by libvirt?

Easy
144

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

Hard
145

What is the primary difference between a container image and a container instance?

Easy
146

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

Medium
147

What is the primary function of the ENTRYPOINT instruction in a Dockerfile?

Easy
148

Which THREE of the following are necessary components for a successful KVM virtualization environment on Linux?

Medium
149

Which TWO items are typically included in a Docker context?

Medium
150

How do you view the logs of a running container?

Easy
151

Which instruction in a Dockerfile is best suited for installing packages to minimize image size?

Medium
152

Which command is used to start a VM that has been defined?

Easy
153

How do you define a new libvirt virtual network from an XML file named 'net.xml'?

Medium
154

In a Packer build process for OpenStack, which 'post-processor' type is typically used to upload the resulting image to the Glance image service?

Medium
155

Which THREE of the following XML elements are used to define a virtual disk in a domain?

Hard
156

Which TWO commands are valid for inspecting container network settings?

Medium
157

What is the purpose of the 'rkt' (Rocket) container runtime?

Medium
158

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?

Hard
159

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

Hard
160

Which command shows the history of layers in a Docker image?

Easy
161

Which command is used to display the XML configuration of a running VM domain named 'webserver'?

Medium
162

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?

Hard
163

A cloud-init configuration file is failing to apply the 'write_files' module. Which log file on the target instance should you examine to diagnose the parsing error?

Medium
164

What is the role of the 'Dockerfile' in the container build process?

Medium
165

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?

Hard
166

Which TWO of the following are benefits of using the QCOW2 image format?

Medium
167

Which TWO of the following are valid storage drivers used by Docker to manage image layers?

Medium
168

Which TWO of the following commands are used for VM disk image management?

Medium
169

What is the primary function of the cloud-init 'runcmd' module?

Medium
170

You 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?

Hard
171

Which command provides system-wide information about the Docker installation?

Easy
172

Which THREE of the following are common cloud-init modules?

Medium
173

Which THREE directives are valid under the cloud-init 'users' configuration section?

Medium
174

You 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?

Medium
175

You have an active domain named 'myvm'. How do you gracefully shut it down?

Medium
176

Which flag is used to run a container in the background?

Easy
177

What does 'QEMU' stand for?

Easy
178

When migrating a domain with virsh, which TWO of the following options can be used to ensure the migration is successful if the destination host has a different CPU architecture or feature set?

Hard
179

What is the purpose of the 'ENTRYPOINT' instruction in a Dockerfile?

Medium
180

Which TWO of the following are key features of the QEMU-KVM hypervisor?

Medium
181

How can you force a refresh of a libvirt storage pool named 'isos'?

Medium
182

You are configuring an OpenVZ container. Which command is used to set the hostname of the container from the host?

Hard
183

Which TWO methods can be used to pass configuration data to cloud-init during instance creation?

Hard
184

In 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?

Hard
185

Which TWO of the following are true regarding container orchestration platforms?

Hard
186

Which TWO of the following are valid libvirt storage pool lifecycle commands?

Medium
187

You are managing a Xen host and need to live-migrate a domain between two physical servers. The migration fails with a domain lock error. Which command is the standard way to initiate a live migration while ensuring the target host is prepared to receive the domain?

Medium
188

In a Packer HCL2 file, how do you reference a variable named 'image_name' that was declared in the 'variables' block?

Hard
189

Which command is used to stop all running containers?

Easy
190

When managing storage pools using virsh, which command would you use to list all defined storage pools, including those that are inactive?

Medium
191

You are using Packer to build a custom image for KVM. Which HCL2 block is specifically required to define the virtualization parameters like memory and CPU for the builder?

Medium
192

Which Packer builder is most appropriate for creating an image specifically for Amazon Web Services (AWS)?

Medium
193

You are using libvirt to manage a QEMU VM. You want to pass a specific host USB device with vendor ID 1234 and product ID 5678 to the guest. Which XML element is used inside the <devices> block to define this?

Hard
194

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

Medium

Frequently asked questions

What does the troubleshooting domain cover on the 305-300 exam?
troubleshooting questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 194 troubleshooting 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 troubleshooting questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.