New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

LPI 305-300 LPIC-3: Virtualization and Containerization - Exam 305, version 3.0 Exam Practice Test

Page: 1 / 6
Total 60 questions

LPIC-3: Virtualization and Containerization - Exam 305, version 3.0 Questions and Answers

Question 1

A clone of a previously used virtual machine should be created. All VM specific information, such as user accounts, shell histories and SSH host keys should be removed from the cloned disk image. Which of the following tools can perform these tasks?

Options:

A.

virc-reset

B.

virt-sparsi

C.

virt-rescue

D.

virt-svspre

E.

sysprep

F.

vire-wipe

Question 2

Which of the following values would be valid in the FROM statement in aDockerfile?

Options:

A.

ubuntu:focal

B.

docker://ubuntu: focal

C.

registry:ubuntu:focal

D.

file:/tmp/ubuntu/Dockerfile

E.

http://docker.example.com/images/ubuntu-focal.iso

Question 3

What is the purpose of thekubeletservice in Kubernetes?

Options:

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.

Question 4

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

Options:

A.

INI-style text files

B.

SQLite databases

C.

XML files

D.

Java-like properties files

E.

Text files containing key/value pairs

Question 5

How can data be shared between several virtual machines running on the same Linux-based host system?

Options:

A.

By writing data to the file system since all virtual machines on the same host system use the same file system.

B.

By mounting other virtual machines' file systems from /dev/virt-disks/remote/.

C.

By setting up a ramdisk in one virtual machine and mounting it using its UUID in the other VMs.

D.

By using a network file system or file transfer protocol.

E.

By attaching the same virtual hard disk to all virtual machines and activating EXT4 sharing extensions on it.

Question 6

Which directory is used bycloud-initto store status information and configuration information retrieved from external sources?

Options:

A.

/var/lib/cloud/

B.

/etc/cloud-init/cache/

C.

/proc/sys/cloud/

D.

/tmp/.cloud/

E.

/opt/cloud/var/

Question 7

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

Options:

A.

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

B.

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

C.

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

D.

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

E.

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

Question 8

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

Options:

Question 9

What is the purpose of capabilities in the context of container virtualization?

Options:

A.

Map potentially dangerous system calls to an emulation layer provided by the container virtualization.

B.

Restrict the disk space a container can consume.

C.

Enable memory deduplication to cache files which exist in multiple containers.

D.

Allow regular users to start containers with elevated permissions.

E.

Prevent processes from performing actions which might infringe the container.

Question 10

The commandvirsh vol-list vmsreturns the following error:

error: failed to get pool 'vms'

error: Storage pool not found: no storage pool with matching name 'vms '

Given that the directory/vmsexists, which of the following commands resolves this issue?

Options:

A.

dd if=/dev/zero of=/vms bs=1 count=0 flags=name:vms

B.

libvirt-poolctl new –-name=/vms –-type=dir –-path=/vms

C.

qemu-img pool vms:/vms

D.

virsh pool-create-as vms dir --target /vms

E.

touch /vms/.libvirtpool

Question 11

Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?

Options:

A.

pids

B.

members

C.

procs

D.

casks

E.

subjects

Question 12

Which of the following mechanisms are used by LXC and Docker to create containers? (Choose three.)

Options:

A.

Linux Capabilities

B.

Kernel Namespaces

C.

Control Groups

D.

POSIXACLs

E.

File System Permissions

Question 13

Which of the following statements are true regarding VirtualBox?

Options:

A.

It is a hypervisor designed as a special kernel that is booted before the first regular operating system starts.

B.

It only supports Linux as a guest operating system and cannot run Windows inside a virtual machine.

C.

It requires dedicated shared storage, as it cannot store virtual machine disk images locally on block devices of the virtualization host.

D.

It provides both a graphical user interface and command line tools to administer virtual machines.

E.

It is available for Linux only and requires the source code of the currently running Linux kernel to be available.

Question 14

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/datavolume with the datastore container?

Options:

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

Question 15

Which of the following statements are true about sparse images in the context of virtual machine storage? (Choose two.)

Options:

A.

Sparse images are automatically shrunk when files within the image are deleted.

B.

Sparse images may consume an amount of space different from their nominal size.

C.

Sparse images can only be used in conjunction with paravirtualization.

D.

Sparse images allocate backend storage at the first usage of a block.

E.

Sparse images are automatically resized when their maximum capacity is about to be exceeded.

Question 16

What is the default provider of Vagrant?

Options:

A.

lxc

B.

hyperv

C.

virtualbox

D.

vmware_workstation

E.

docker

Question 17

Which of the following kinds of data cancloud-initprocess directly from user-data? (Choose three.)

Options:

A.

Shell scripts to execute

B.

Lists of URLs to import

C.

ISO images to boot from

D.

cloud-config declarations in YAML

E.

Base64-encoded binary files to execute

Question 18

Which of the following statements are true regarding resource management for full virtualization? (Choose two.)

Options:

A.

The hygervisor may provide fine-grained limits to internal elements of the guest operating system such as the number of processes.

B.

The hypervisor provides each virtual machine with hardware of a defined capacity that limits the resources of the virtual machine.

C.

Full virtualization cannot pose any limits to virtual machines and always assigns the host system's resources in a first-come-first-serve manner.

D.

All processes created within the virtual machines are transparently and equally scheduled in the host system for CPU and I/O usage.

E.

It is up to the virtual machine to use its assigned hardware resources and create, for example, an arbitrary amount of network sockets.

Page: 1 / 6
Total 60 questions