LPI 305-300 practice test

Exam Title: Linux Professional Institute LPIC-3 Virtualization and Containerization

Last update: Nov 27 ,2025
Question 1

Which of the following statements are true about container-based virtualization? (Choose two.)

  • A. Each container runs its own operating system kernel.
  • B. Different containers may use different distributions of the same operating system.
  • C. Container-based virtualization relies on hardware support from the host system's CPU.
  • D. All containers run within the operating system kernel of the host system.
  • E. Linux does not support container-based virtualization because of missing kernel APIs.
Answer:

B, D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 2

How does Packer interact with system images?

  • A. Packer has to be installed within the target image and is executed during the image's first boot in order to execute preparation tasks.
  • B. Packer installs a client within the image which has to be run periodically via cron in order to retrieve the latest template from the Packer server and apply it locally.
  • C. Packer periodically connects through the network to the Packer daemons of all running Packer images in order to re-apply the whole template to the running instance.
  • D. Packer downloads and extracts an image in order to make changes to the image's file system, repack the modified image and upload it again.
  • E. Packer creates an instance based on a source image, prepares the instance through a network connection and bundles the resulting instance as a new system image.
Answer:

E

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 3

After setting up a data container using the following command:
docker create -v /data --name datastore debian /bin/true
how is an additional new container started which shares the /data volume with the datastore
container?

  • A. docker run --share-with datastore --name service debian bash
  • B. docker run -v datastore:/data --name service debian bash
  • C. docker run --volumes-from datastore --name service debian bash
  • D. docker run -v /data --name service debian bash
  • E. docker run --volume-backend datastore -v /data --name service debian bash
Answer:

C

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 4

After creating a new Docker network using the following command:
docker network create --driver bridge isolated_nw
which parameter must be added to docker create in order to attach a container to the network?

  • A. --eth0=isolated_nw
  • B. --alias=isolated_nw
  • C. --ethernet=isolated_nw
  • D. --network=isolated_nw
  • E. --attach=isolated_nw
Answer:

D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 5

FILL BLANK
What LXC command lists containers sorted by their CPU, block I/O or memory consumption? (Specify
ONLY the command without any path or parameters.)

Answer:

lxc-top

vote your answer:
Comments
Question 6

Which of the following network interface types are valid in an LXD container configuration? (Choose
three.)

  • A. ipsec
  • B. macvlan
  • C. bridged
  • D. physical
  • E. wifi
Answer:

B, C, D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 7

What happens when the following command is executed twice in succession?
docker run -tid -v data:/data debian bash

  • A. The container resulting from the second invocation can only read the content of /data/ and cannot change it.
  • B. Each container is equipped with its own independent data volume, available at /data/ in the respective container.
  • C. Both containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
  • D. The original content of the container image data is available in both containers, although changes stay local within each container.
  • E. The second command invocation fails with an error stating that the volume data is already associated with a running container.
Answer:

C

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 8

What is the purpose of the kubelet service in Kubernetes?

  • A. Provide a command line interface to manage Kubernetes.
  • B. Build a container image as specified in a Dockerfile.
  • C. Manage permissions of users when interacting with the Kubernetes API.
  • D. Run containers on the worker nodes according to the Kubernetes configuration.
  • E. Store and replicate Kubernetes configuration data.
Answer:

D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 9

If docker stack is to be used to run a Docker Compose file on a Docker Swarm, how are the images
referenced in the Docker Compose configuration made available on the Swarm nodes?

  • A. docker stack builds the images locally and copies them to only those Swarm nodes which run the service.
  • B. docker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
  • C. docker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
  • D. docker stack transfers the image from its local Docker cache to each Swarm node.
  • E. docker stack triggers the build process for the images on all nodes of the Swarm.
Answer:

C

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 10

FILL BLANK
What LXC command starts a new process within a running LXC container? (Specify ONLY the
command without any path or parameters.)

Answer:

lxc-attach

vote your answer:
Comments
Page 1 out of 5
Viewing questions 1-10 out of 60
Go To
page 2