[go: up one dir, main page]

0% found this document useful (0 votes)
77 views24 pages

Lpic 3

The document is an assessment for the LPI Virtualization and Containerization (LPIC-3 305) exam, detailing various questions and scores related to virtualization tools and concepts. The user scored 33% with several questions skipped or answered incorrectly. Key topics include VM provisioning, containerization, and commands related to virtualization management.

Uploaded by

ravc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views24 pages

Lpic 3

The document is an assessment for the LPI Virtualization and Containerization (LPIC-3 305) exam, detailing various questions and scores related to virtualization tools and concepts. The user scored 33% with several questions skipped or answered incorrectly. Key topics include VM provisioning, containerization, and commands related to virtualization management.

Uploaded by

ravc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.

com/node/176037/take

305-300: LPI Virtualization and Containerization


(LPIC-3 305) - Full

You got 20 of 60 possible points.


Your score: 33 %

Question Results

Question: Score 0 of 1
(skipped)
Which of the following tools is not typically used for VM
provisioning and image creation?

Response:

Packer

Vagrant

cloud-init

Kubernetes

Question: Score 0 of 1
(skipped)
In container virtualization, what is meant by "containerization"?

Response:

The process of converting virtual machines into containers.

The practice of using only lightweight containers without virtualization.

The encapsulation of an application and its dependencies in a container.

The process of optimizing the host OS kernel for containers.

1 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Question: Score 0 of 1

Which of the following data should be copied to the virtual machine when
migrating a physical machine to a virtual machine?

Response:

The memory

The block device buffers

The CPU flags

The CPU register's content

The file systems or their content

Question: Score 0 of 1
(skipped)
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?

Response:

docker stack builds the images locally and copies them to only those Swarm
nodes which run the service.

docker stack passes the images to the Swarm master which distributes the
images to all other Swarm nodes.

docker stack instructs the Swarm nodes to pull the images from a registry,
although it does not upload the images to the registry.

docker stack transfers the image from its local Docker cache to each Swarm
node.

docker stack triggers the build process for the images on all nodes of the
Swarm.

Question: Score 1 of 1

What is Vagrant used for?

2 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Response:

Managing cloud resources.

Real-time monitoring of virtual machines.

Container orchestration.

Creating and configuring virtual development environments.

Question: Score 1 of 1

What is the name of the global configuration file for the xl tool stack?
(Specify the file name only without any path.)

Solution: /etc/xen/xl.conf -or- xl.conf

Determine whether the given solution is correct?

Response:

Correct

Incorrect

Question: Score 0 of 1

How can data in a computing instance in an IaaS cloud be permanently saved


and accessed even after the recreation of the computing instance?
(Choose TWO correct answers.)

Response:

By saving the data on persistent block devices that must be explicitly connected
to the computing instance.

By saving the data to the memory of the computing instance using tmpfs.

By saving the data to /cloud/persistent/ which is provided in all common IaaS


clouds.

By saving the data to object stores provided by a separate service in the cloud.

3 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

By saving the data anywhere in the computing instance's file system.

Question: Score 1 of 1

Which of the following commands can be used to determine whether the local
machine is capable of running full virtualized Xen guests?
(Choose TWO correct answers.)

Response:

grep -i "Full Virtualization" /proc/xen

egrep '(vmx|svm)' /proc/cpuinfo

xl dmesg | grep -i hvm

dmesg |grep -i intel|grep -i vt; dmesg |grep -i amd|grep -i v

grep -i "Full Virtualization" /etc/xen/*

Question: Score 1 of 1

Which command would you use to display the status of a specific domain in
libvirt, including whether it's running or shut off?

Response:

virsh status

virsh list --all

virsh domstate

virsh domain-info

Question: Score 1 of 1

Which command would you use to edit the XML configuration of an existing
domain in libvirt?

Response:

4 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

virsh update domain-name

virsh edit domain-name

virsh modify domain-name

virsh change domain-name

Question: Score 0 of 1

What is the usual way to gain command line access to computing instances in
an IaaS cloud?

Response:

Usually computing instances are accessed through a web frontend and do not
allow command line access.

By using a telnet session with the credentials set and publicized by the creator of
the computing instance's system image.

By providing a public SSH key to the cloud management system and using the
matching private SSH key to log into the instances.

By using a VNC console which does not require authentication when it is invoked
via the cloud management system.

By either telnet or SSH using the credentials of the cloud management system
account with administrative privileges.

Question: Score 0 of 1

Which of the following statements is true regarding VirtualBox?

Response:

VirtualBox can only be run from a graphical desktop environment and not from
the text console.

VirtualBox is part of the vanilla Linux kernel and does not require any additional
software installation on recent Linux distributions.

5 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

VirtualBox contains a hypervisor that runs independently from any other


operating system on a bare metal host.

VirtualBox uses container-based virtualization and can only run virtual machines
using the operating system of the host system.

VirtualBox provides special device drivers for several operating systems to


enhance the virtual machine's performance.

Question: Score 0 of 1

What is the purpose of cloud-init?

Response:

Assign an IaaS instance to a specific computing node within a cloud.

Prepare the generic image of an IaaS instance to fit a specific instance’s


configuration.

Orchestrate the creation and start of multiple related IaaS instances.

Replace common Linux init systems, such as systemd or SysV init.

Standardize the configuration of infrastructure services, such as load balancers


or virtual firewalls in a cloud.

Question: Score 0 of 1

Which functionality is provided by Vagrant as well as by Docker?


(Choose three.)

Response:

Both start system images as virtual machines instead of containers by default.

Both can share directories from the host file system to a guest.

Both can download required base images.

Both can apply changes to a base image.

6 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Both start system images as containers instead of virtual machines by default.

Question: Score 0 of 1

Which of the following commands lists all differences between the disk
images vm1-snap.img and vm1.img?

Response:

virt-cmp -a vm1-snap.img -A vm1.img

virt-history -a vm1-snap.img -A vm1.img

virt-diff -a vm1-snap.img -A vm1.img

virt-cp-in -a vm1-snap.img -A vm1.img

virt-delta -a vm1-snap.img -A vm1.img

Question: Score 1 of 1

What is the primary benefit of using Packer for creating machine images?

Response:

It simplifies the deployment of virtual machines.

It ensures consistency between development and production environments.

It speeds up the development of application code.

It provides real-time monitoring of virtual machines.

Question: Score 0 of 1

What is the primary advantage of container virtualization compared to


traditional virtualization?

Response:

7 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Lower resource utilization.

Greater hardware compatibility.

Improved isolation between applications.

Faster startup times.

Question: Score 0 of 1

Which of the following KVM monitor commands changes the image file in the
first IDE CDROM drive of a virtual machine?

Response:

disc file=/tmp/linux.iso,device=/dev/sr0

update ide1-cd0 /tmp/linux.iso

eject --reconnect ide1-cd0 /tmp/linux.iso

set ide1-cd0=/tmp/linux.iso

change ide1-cd0 /tmp/linux.iso

Question: Score 1 of 1

When using guestfish, which command is necessary to start the environment


before executing other commands?

Response:

boot

init

start

run

8 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Question: Score 0 of 1

Which of the following kinds of data cancloud-initprocess directly from user-


data?
(Choose three.)

Response:

Shell scripts to execute

ISO images to boot from

cloud-config declarations in YAML

Lists of URLs to import

Base64-encoded binary files to execute

Question: Score 0 of 1

How does Packer help in making virtual machine images more efficient?

Response:

It simplifies the backup process.

It enhances the security of virtual machines.

It increases the number of pre-installed applications.

It reduces the size of the images.

Question: Score 0 of 1

How does Packer interact with system images?

Response:

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.

9 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

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.

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.

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.

Packer has to be installed within the target image and is executed during the
image’s first boot in order to execute preparation tasks.

Question: Score 1 of 1

When using direct Linux booting to start Linux within a KVM virtual machine,
which KVM parameter is used to specify parameters for the Linux Kernel?
(Specify ONLY the option name without any values or parameters.)

Solution: append -or- -append

Determine whether the given solution is correct?

Response:

Correct

Incorrect

Question: Score 0 of 1

In a scenario where you need to provision multiple virtual machines with


different configurations in a Vagrantfile, which feature allows you to create
reusable configuration blocks for shared settings?

Response:

config.vm.shared

config.vm.define

config.vm.provision

10 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Vagrant.configure

Question: Score 0 of 1

Which of the following statements in a Dockerfile leads to a container which


outputs hello world?
(Choose two.)

Response:

ENTRYPOINT [ "echo hello world" ]

ENTRYPOINT "echo Hello World"

ENTRYPOINT echo Hello World

ENTRYPOINT "echo", "Hello", "World*

ENTRYPOINT [ "echo", "hello", "world" ]

Question: Score 0 of 1

What is Packer?

Response:

A virtualization platform.

An image building tool.

A configuration management tool.

A container orchestration tool.

Question: Score 0 of 1

What is XAPI?

Response:

11 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

The communication interface between a paravirtualized Linux Kernel and the Xen
hypervisor.

A high level tool chain which provides advanced management tools and
interfaces for Xen.

An extension of libvirt which adds live migration of virtual servers between


arbitrary hypervisors.

A ReSTful API which is used by xl to communicate with the Xen hypervisor.

The internal messaging system within the Xen hypervisor.

Question: Score 0 of 1

In order to determine if a virtualization host offers Intel VT-x support, which


CPU flag must be searched for in the file /proc/cpuinfo?
(Specify the name of the CPU flag as it is mentioned in the given file only without any
additional information.)

Solution: vmx -or- VMX

Determine whether the given solution is correct?

Response:

Correct

Incorrect

Question: Score 1 of 1

Xen can operate in both paravirtualization and hardware virtualization modes.


(Select all that apply)

Response:

True

False

12 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Question: Score 0 of 1

Which command was used in Xen 3.x as a predecessor of the xl command?


(Specify ONLY the command without any path or parameters.)

Solution: xm

Determine whether the given solution is correct?

Response:

Correct

Incorrect

Question: Score 1 of 1

How do containers share the host OS kernel?

Response:

Containers run directly on the host kernel.a

Containers share the kernel but run isolated user spaces.

Containers do not use a kernel.

Containers have their own full OS.

Question: Score 1 of 1

In the context of libvirt, what is the significance of the --metadata option


when creating a new domain using virsh?

Response:

It sets the network interface type

It specifies the memory allocation for the domain

It allows for the inclusion of additional metadata in the domain's configuration

It enables logging for the domain

13 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Question: Score 0 of 1

In order to use the option dom0_mem to limit the amount of memory


assigned to the Xen Domain-0, where must this option be specified?

Response:

In its Makefile, when Xen is built.

In the bootloader configuration, when Xen is booted.

In the configuration file /etc/xen/Domain-0.cfg, when Xen starts.

In any of Xen's global configuration files.

In its .config file, when the Domain-0 kernel is built.

Question: Score 0 of 1

What is Vagrant's role in the development process?


(Select all that apply)

Response:

It helps developers create and manage virtual development environments.

It integrates with cloud providers for scalability.

It provides an easy way to share development environments.

It automates the deployment of production servers.

Question: Score 1 of 1

How does Vagrant facilitate collaboration among developers?

Response:

It allows developers to share consistent development environments.

It integrates with containerization tools.

14 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

It automatically generates code for cloud resources.

It provides real-time monitoring of virtual machines.

Question: Score 1 of 1

When setting up a KVM virtualization host, which one of the following


components is NOT required?

Response:

virsh

libvirt

kvm kernel modules

qemu

bridgeutils

Question: Score 0 of 1

How does cloud-init enhance the customization of cloud instances?

Response:

It allows you to specify scripts and user data.

It provides a GUI for configuration.

It automatically configures all aspects of the cloud instance.

It integrates with popular containerization tools.

Question: Score 0 of 1

Which of the following statements about the commandlxc-checkpointis


correct?

Response:

15 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

It creates a container image based on an existing container.

It doubles the memory consumption of the container.

It creates a clone of a container.

It writes the status of the container to a file.

It only works on stopped containers.

Question: Score 0 of 1

Where are paravirtualized device drivers installed?

Response:

Compiled into the hypervisor

No special drivers are required for paravirtualization.

In the Host OS

In the Guest OS

Question: Score 0 of 1

When using the user mode network stack with qemu, TCP and UDP
connections work fine but ping does not work. Why is this?

Response:

The Qemu user mode network stack does not implement ICMP.

The Qemu user mode network stack blocks all ICMP traffic.

The Qemu user mode network stack requires explicit permission for ping to
work.

The problem is caused by incorrect routing.

16 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Question: Score 1 of 1

In the command - vzctl ____ 105 /usr/bin/apt-get install wget which


subcommand of vzctl is missing in order to install wget in the OpenVZ
container 105?

Solution: exec -or- exec2

Determine whether the given solution is correct?

Response:

Incorrect

Correct

Question: Score 1 of 1

Which file format is used by libvirt to store configuration data?

Response:

XML files

Java-like .properties files

SQLite databases

INI-style text files

Text files containing key/value pairs

Question: Score 0 of 1

What types of cloud-init data sources can be used to configure cloud


instances?
(Select all that apply)

Response:

User data scripts

QR codes

17 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Cloud-based configuration management tools

Metadata service

Question: Score 0 of 1

Which command within virsh lists the virtual machines that are available on
the current host?

Response:

list-vm

list-all

show

view

list

Question: Score 0 of 1

What is the purpose of the final_message: directive in cloud-init


configurations, and when is it executed in the instance lifecycle?

Response:

It provides a summary of the tasks performed during boot

It runs user-defined commands after all services have started

It sends a notification after all cloud-init tasks are completed

It sets the final timeout for cloud-init processes

Question: Score 0 of 1

What is oVirt?

Response:

18 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

An extension to the Linux Kernel used to provide container virtualization similar


to LXC and OpenVZ.

A library that provides access to several different virtualization technologies in a


common manner.

A Linux-based hypervisor similar to KVM and Xen.

A comprehensive management infrastructure for Linux-based virtualization.

An approach used to eliminate the need for virtualization called Zero-Virt.

Question: Score 1 of 1

What is libvirt?

Response:

A driver package used to support 3D printers.

A cluster manager used to handle node access to shared storage.

A Linux-based virtualization hypervisor.

A combined interface to several virtualization products.

An identity manager used to provide Single-Sign-On for different operating


systems.

Question: Score 0 of 1

Which operating systems are compatible with cloud-init?


(Select all that apply)

Response:

macOS

Linux

Windows

19 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Android

Question: Score 0 of 1

Which virsh subcommand is used to change the CD-ROM image file attached to
a virtual machine?
(Specify ONLY the subcommand without any parameters.)

Solution: change-media -or- virsh change-media -or- qemu-monitor-command -or-


virsh qemu-monitor-command

Determine whether the given solution is correct?

Response:

Correct

Incorrect

Question: Score 0 of 1

Which programming language is QEMU primarily written in?

Response:

Python

C++

Java

Question: Score 0 of 1

Which sub-command of xl lists the block devices that are currently attached to
a Xen guest domain?
(Specify ONLY the sub-command without any path or parameters.)

Solution: block-list -or- xl block-list

Determine whether the given solution is correct?

Response:

20 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Incorrect

Correct

Question: Score 1 of 1

Which virtualization platforms can Vagrant be used with?


(Select all that apply)

Response:

Docker

AWS

VMware

VirtualBox

Question: Score 0 of 1

Which of the following restrictions is true when using KVM with the User
Network?

Response:

Virtual Machines are restricted to only use IPv6 and not IPv4.

Virtual Machines can only communicate with other virtual machines but not with
the host system.

Virtual Machines cannot use ICMP.

Virtual Machines must use a SOCKS proxy to connect to the internet.

Virtual Machines can communicate with the host system and with other virtual
machines using User Network.

Question: Score 0 of 1

21 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

In Xen, the use of virtual CPUs (vCPUs) in a DomainU is critical for


performance. How can you define the number of vCPUs allocated to a
DomainU in its configuration file?

Response:

By using the cpu parameter in the .cfg file.

By specifying vCPUs in the xl command during creation.

By setting the vcpu_count parameter in the .cfg file.

By modifying the hypervisor settings only.

Question: Score 1 of 1

Which of the following are true regarding the CPU of a QEMU virtual machine?
(Choose two.)

Response:

QEMU uses the concept of virtual CPUs to map the virtual machines to physical
CPUs.

For each QEMU virtual machine, one dedicated physical CPU core must be
reserved.

The CPU architecture of a QEMU virtual machine is independent of the host


system's architecture.

QEMU virtual machines support multiple virtual CPUs in order to run SMP
systems.

Each QEMU virtual machine can only have one CPU with one core.

Question: Score 1 of 1

What is a container image?

Response:

A physical server.

22 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

An operating system kernel.

A snapshot of an application and its dependencies.

A lightweight virtual machine.

Question: Score 1 of 1

If a process's user namespace is set with UID mapping, what happens if the
process tries to access a file owned by a different user?

Response:

The access is granted as the process is root.

The access is denied.

The access is granted based on the mapped UID.

The access depends on the file permissions only.

Question: Score 0 of 1

Which directory is used by cloud-init to store status information and


configuration information retrieved from external sources?

Response:

/proc/sys/cloud/

/etc/cloud-init/cache/

/var/lib/cloud/

/tmp/.cloud/

/opt/cloud/var/

Question: Score 0 of 1

23 of 24 11/08/2025, 08:15
305-300: LPI Virtualization and Containerization (LPIC-3 305) - Full... https://www.edusum.com/node/176037/take

Which of the following circumstances prevent the usage of container based


virtualization?
(Choose TWO correct answers.)

Response:

Each container needs to have its own user accounts and user groups.

Different operating systems are to be used within containers on the same


virtualization host.

Administrators of containers must be able to install customized Linux kernels.

Remote access via SSH is required to all containers.

More than one container requires access to block devices available in the host
system.

Question: Score 0 of 1

Which container orchestration platform is often associated with automated


scaling and load balancing?

Response:

Amazon ECS

Kubernetes

LXC

Docker Compose

Money Back Guarantee Testimonial FAQs Privacy Policy Terms and Conditions About Us
Join Us Contact Us

24 of 24 11/08/2025, 08:15

You might also like