Courseiva

305-300 · domain

scenario questions

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

210 questions45 easy98 medium67 hard

Focused practice

Practice scenario questions 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 scenario questions

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

Watch out for

Common scenario questions 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 scenario questions questions (210)

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 KVM guest is configured with a virtio-blk disk and a virtio-net device. Under heavy network load the guest CPU shows high system time inside the guest, and the host shows high context-switch rates for the QEMU process. The administrator wants to reduce per-packet I/O overhead without changing the guest OS drivers. Which change is most appropriate?

Hard
3

A Packer build targeting the qemu builder completes, but the resulting image boots to a login prompt and never runs your provisioning scripts. You configured an ssh communicator with a username and password. Which condition most likely prevents Packer from connecting to the guest during the build?

Hard
4

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
5

A system administrator is troubleshooting a container that cannot resolve DNS names for other containers on the same user-defined Docker bridge network. The container's /etc/resolv.conf points to 127.0.0.11. Which Docker feature is responsible for providing this DNS resolution?

Medium
6

Which hypervisor is known for being 'Type 2'?

Easy
7

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

Hard
8

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

Hard
9

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

Medium
10

A Docker host runs a container with the default bridge network. The container needs to resolve external DNS names, but `docker exec mycontainer ping example.com` fails with 'unknown host'. The host itself resolves names correctly. Which Docker daemon configuration should you check first?

Medium
11

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
12

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

Medium
13

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

Medium
14

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
15

You are configuring a KVM guest to use a paravirtualized clock and to report its IP addresses to the host so that libvirt can display them with virsh domifaddr. (Choose two.)

Medium
16

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

Easy
17

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

Hard
18

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
19

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

Medium
20

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

Medium
21

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
22

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

Medium
23

You are using Vagrant to manage a development environment. You need to run a shell script that installs dependencies after the VM boots for the first time. Which provisioner type should you use in your Vagrantfile?

Easy
24

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
25

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

Medium
26

What is the primary function of the libvirtd daemon?

Easy
27

A KVM host runs a Windows guest whose virtual disk is backed by a raw image file on an NFS mount. After a host reboot, the guest fails to start with 'Permission denied' on the disk path, although the file exists and is readable by root. The host uses SELinux enforcing mode. Which action resolves the problem?

Medium
28

You are configuring a KVM host that will run several guests. You want each guest to be able to communicate with other guests and the host on the same subnet, while still allowing external hosts to reach the guests directly. You decide to use a libvirt virtual network with a bridge. Which libvirt network configuration element must be present to enable direct Layer 2 connectivity between the guests and the physical LAN?

Medium
29

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

Medium
30

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
31

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
32

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

Hard
33

You are using systemd-nspawn to run a container and need to allow it to use the host's network stack directly, without any network namespace isolation. Which option should you pass to systemd-nspawn?

Medium
34

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

Medium
35

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

Medium
36

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
37

You are reviewing a KVM host and need to identify which of the following CPU features must be exposed to a guest to allow hardware-assisted nested virtualization inside that guest. (Choose two.)

Medium
38

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
39

Which THREE networking modes are natively supported by Docker?

Hard
40

You are provisioning a KVM guest with virt-install. The guest must use a pre-existing disk image located at /var/lib/libvirt/images/web.img and must not have the image created or modified by virt-install. Which option should you include in the virt-install command?

Medium
41

You are using systemd-nspawn to run a container and want to ensure that the container's processes are isolated from the host's process tree. Which option should you use?

Easy
42

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

Hard
43

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

Medium
44

You are using QEMU/KVM with libvirt on a host and want to gracefully shut down a running domain named 'db01' so the guest OS performs its normal shutdown sequence. Which virsh command should you use?

Easy
45

A KVM host uses a bridged network 'br0' with the physical NIC enslaved. You want a guest to obtain an IP address from the same DHCP server as the host's physical LAN, without NAT. Which libvirt network interface definition in the domain XML achieves this?

Hard
46

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
47

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

Hard
48

What does the 'docker rm' command do?

Easy
49

Which hypervisor type is considered 'Type 1' virtualization?

Easy
50

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
51

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
52

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

Medium
53

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

Hard
54

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

Medium
55

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
56

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

Easy
57

What is the primary function of a Docker Registry?

Medium
58

You are configuring a rootless Podman container that must persist data across container restarts and also needs to communicate with other containers on the same host using a user-defined network. Which two actions must you perform to achieve these goals? (Choose two.)

Hard
59

You are troubleshooting a Docker container that fails to start with the error message: 'Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting /proc: no such file or directory'. The host is running a recent Linux kernel and Docker is using the default runtime. What is the most likely cause?

Hard
60

What is the purpose of 'virt-top'?

Medium
61

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
62

A guest was created with a 20 GB qcow2 disk and has been running for months. The administrator wants to give the guest additional space without recreating the disk, and the guest uses a single ext4 partition with no LVM. Which approach is valid with virsh and standard tools?

Medium
63

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

Easy
64

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
65

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
66

You are configuring an LXC container and need to limit its CPU and memory usage. Which TWO of the following configuration options in the container's config file are valid for this purpose? (Choose two.)

Medium
67

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

Medium
68

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
69

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
70

What is the purpose of the 'virsh' tool?

Easy
71

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

Hard
72

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

Hard
73

A KVM host runs libvirt with a default storage pool at /var/lib/libvirt/images. You need to create a new qcow2-backed volume named 'app-disk.qcow2' with a virtual size of 40 GB inside the pool named 'default'. Which single virsh command accomplishes this?

Medium
74

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
75

Which command is used to remove an unused Docker image?

Easy
76

Which TWO of the following are valid container orchestration platforms?

Medium
77

You are using cloud-init to configure a VM that must run a script only on the very first boot, and the script must not run again on subsequent reboots. The script is provided as a MIME part in a multipart user-data file. Which cloud-init module should be used to ensure this behavior?

Hard
78

Which TWO commands are used to manage images in Docker?

Medium
79

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

Hard
80

Which THREE storage drivers are supported by Docker?

Hard
81

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

Easy
82

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

Medium
83

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
84

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
85

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

Medium
86

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

Medium
87

A junior administrator needs to start the libvirt-managed guest 'db01' and confirm that it is running. Which pair of commands accomplishes this?

Easy
88

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

Medium
89

A production KVM guest uses a virtio-blk disk and experiences periodic I/O stalls during heavy write bursts. You want to switch the guest disk to virtio-scsi with multiple queues to improve parallelism without reinstalling the guest OS. Which change should you make to the domain XML?

Hard
90

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

Easy
91

An administrator is configuring a KVM host that will run a latency-sensitive guest. The goal is to reduce scheduling jitter and improve cache locality for that guest's vCPUs. Which TWO measures are appropriate? (Choose two.)

Hard
92

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

Medium
93

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

Medium
94

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

Hard
95

You are troubleshooting a Docker container that fails to start with the error 'no space left on device' even though `df -h` shows ample free space on the host's root filesystem. The Docker data root is on a separate partition. Which command should you use to check the actual disk usage of Docker's data root?

Hard
96

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

Easy
97

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

Hard
98

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

Easy
99

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

Medium
100

An administrator needs to run a container that requires access to a specific block device on the host, such as /dev/sdb, for direct I/O operations. Which Docker run option should be used to grant the container access to this device?

Hard
101

You are managing a KVM host and need to create a new storage pool that uses a directory on the host filesystem to store disk images. After creating the directory /var/lib/libvirt/images/extra, you want to define and start a libvirt storage pool named 'extra-pool' that uses this directory. Which sequence of virsh commands accomplishes this?

Easy
102

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
103

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

Hard
104

Which command lists all Docker images currently on the host?

Easy
105

You are building a Vagrant environment for a development team. The Vagrantfile must provision three identical web servers and one load balancer, all using the same base box but with different hostnames and static IP addresses. Which Vagrantfile construct should you use to define these machines and their individual settings?

Medium
106

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

Hard
107

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

Medium
108

What does the term 'KVM' stand for?

Easy
109

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

Medium
110

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

Easy
111

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

Medium
112

You need to create a new storage pool for KVM guests using the virsh command-line tool. The pool should use a directory on the host filesystem at /var/lib/libvirt/images/extra. Which command correctly defines and starts this pool?

Medium
113

You maintain a Vagrant environment where a single Vagrantfile defines three web servers and one database server. You need each web server to use a different forwarded SSH port on the host because port 2222 is already taken by another project. Which approach correctly assigns unique host ports per machine?

Medium
114

You are troubleshooting a KVM guest that fails to boot after you changed its XML configuration. You want to verify and correct the guest's definition without starting it. Which TWO of the following actions are appropriate? (Choose two.)

Medium
115

A Packer template targets the qemu builder to produce a KVM-compatible image. The build completes without error, but when the resulting qcow2 file is booted with `qemu-system-x86_64 -drive file=image.qcow2,if=virtio`, the guest kernel panics with "VFS: Unable to mount root fs" because it cannot see any block device. The template defines only `iso_url`, `iso_checksum`, `ssh_username`, and `ssh_password`. Which change to the template is MOST likely to resolve this?

Hard
116

Which THREE configuration items can be managed by LXC cgroups?

Hard
117

You are building a Docker image and want to ensure that a build-time variable is available only during the build, not persisted in the final image's environment. Which instruction should you use?

Hard
118

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

Medium
119

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

Hard
120

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

Hard
121

A developer wants to run a short-lived container that executes a command and then removes itself automatically after exit. Which `docker run` flag should be used?

Easy
122

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

Easy
123

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

Hard
124

Which command is used to list all active running domains?

Medium
125

You are migrating a running KVM guest from hostA to hostB with virsh migrate --live. The migration fails immediately with 'error: internal error: Attempt to migrate guest to the same host'. Both hosts share the same NFS storage and have identical CPU models. Which condition most likely explains this failure?

Hard
126

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

Medium
127

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

Hard
128

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

Medium
129

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
130

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
131

You are preparing a KVM guest for a maintenance window and need to shut it down gracefully so the guest OS can flush buffers and stop services. Which virsh command should you use?

Easy
132

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

Easy
133

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

Hard
134

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

Medium
135

You need to enable and configure a UEFI firmware boot for a new KVM guest on a libvirt host. Which TWO of the following steps are required? (Choose two.)

Medium
136

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

Hard
137

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

Medium
138

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

Hard
139

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

Hard
140

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

Hard
141

You are building a Docker image and need to ensure that the container process runs as a non-root user with UID 1000 and that this user exists in the image. Which pair of Dockerfile instructions achieves this correctly?

Hard
142

You administer a KVM host running libvirt. A developer needs a guest to be able to communicate with the host directly over a private network without any NAT or bridging to the physical LAN. You decide to use libvirt's default virtual network. Which virsh command will display the XML definition of this default network so you can inspect its forwarding mode and DHCP range?

Medium
143

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
144

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

Medium
145

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

Hard
146

What is a 'snapshot' in virtualization?

Easy
147

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
148

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
149

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

Easy
150

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

Hard
151

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

Easy
152

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

Medium
153

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
154

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

Easy
155

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

Hard
156

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

Easy
157

You are managing a KVM host and need to gracefully shut down a running guest named 'dbserver'. Which virsh command should you use?

Easy
158

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

Easy
159

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

Medium
160

You are using Packer to build a KVM-compatible QEMU image for an on-premises OpenStack cloud. The build completes successfully, but the resulting image fails to boot because the virtual disk is not recognized. You verify that the QEMU builder is configured with accelerator 'kvm' and the correct machine type. Which QEMU builder option should you review to ensure the disk image is created in a format that OpenStack can use?

Hard
161

How do you view the logs of a running container?

Easy
162

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

Medium
163

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

Easy
164

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

Medium
165

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?

Hard
166

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
167

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

Hard
168

Which TWO commands are valid for inspecting container network settings?

Medium
169

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

Medium
170

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

Hard
171

You are using Docker and need to inspect the metadata of a running container, including its IP address, environment variables, and mounted volumes. Which command provides all this information in a single JSON output?

Medium
172

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

Easy
173

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

Medium
174

You are running a Docker container that needs to persist data in a directory that is backed by a storage area on the host. The host uses the overlay2 storage driver. You want the container to write data that survives container removal and is accessible directly on the host filesystem. Which approach should you use?

Hard
175

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
176

A developer is building a container image and wants to reduce its final size by ensuring that no package manager cache files remain in the image layers. Which Dockerfile instruction should be used to remove these temporary files during the build?

Easy
177

You are setting up a KVM guest that requires very low latency for a real-time workload. You want to dedicate a physical CPU core to the guest and prevent the host from scheduling other tasks on that core. Which libvirt domain XML configuration achieves this?

Medium
178

You are using Docker and need to view the layers that make up an image to understand its build history. Which command should you use?

Easy
179

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
180

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

Medium
181

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
182

You are creating a Vagrant environment for a development team. The team needs a single VM that uses the 'ubuntu/jammy64' box and forwards host port 8080 to guest port 80. Which Vagrantfile configuration block correctly defines this?

Easy
183

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

Medium
184

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

Medium
185

You are running a Podman container as a non-root user with rootless mode. The container needs to bind to TCP port 80 inside the container's network namespace so a legacy application can listen for HTTP traffic. Which capability must be added to the container to allow binding to this privileged port without running the container as root?

Medium
186

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

Medium
187

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

Medium
188

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
189

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

Easy
190

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

Medium
191

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

Medium
192

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
193

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

Medium
194

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

Easy
195

What does 'QEMU' stand for?

Easy
196

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

Medium
197

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

Medium
198

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

Medium
199

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

Hard
200

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

Hard
201

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
202

You are using Packer to build an image for a private cloud. The build uses the 'qemu' builder and a 'shell' provisioner. The provisioner script runs but fails to install a package because the package repository is unreachable. You suspect the VM has no network connectivity during provisioning. Which Packer feature should you verify to ensure the VM has network access?

Hard
203

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

Hard
204

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

Medium
205

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
206

You are building a Docker image for a Python web application. The Dockerfile currently contains: FROM python:3.9-slim COPY . /app WORKDIR /app RUN pip install -r requirements.txt CMD ["python", "app.py"] After building, you notice that every time you change app.py, the entire pip install step re-runs, making builds slow. Which change to the Dockerfile will best address this?

Medium
207

Which command is used to stop all running containers?

Easy
208

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

Medium
209

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

Medium
210

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

Frequently asked questions

What does the scenario questions domain cover on the 305-300 exam?
scenario questions 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 210 scenario questions 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 scenario questions questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.