Courseiva

LPIC-3 Exam 305: Virtualization and Containerization (305-300) (305-300) (305-300) — Questions 175

194 questions total · 3pages · All types, answers revealed

Page 1 of 3

Page 2
1
MCQmedium

Which command checks the status of the libvirtd service?

A.service libvirtd status
B.libvirtd --check
C.systemctl status libvirtd
D.virsh service-status
AnswerC

Correct systemd command.

Why this answer

systemctl status libvirtd is the standard method for checking service status on systemd systems.

2
MCQhard

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?

A.virsh snapshot-create-as --domain <vm> <snapshot_name> --disk-only
B.virsh snapshot-create-as --domain <vm> <snapshot_name>
C.qemu-img snapshot -c <snapshot_name> <image_path>
D.virsh domblklist <vm> --snapshot
AnswerB

This command creates an internal snapshot of the domain's state and disks.

Why this answer

The 'virsh snapshot-create-as' command is the standard way to create internal snapshots managed by libvirt.

3
MCQeasy

Which hypervisor is known for being 'Type 2'?

A.VirtualBox
B.KVM
C.ESXi
D.Xen
AnswerA

VirtualBox is a Type 2 hypervisor.

Why this answer

VirtualBox and VMware Workstation are hosted hypervisors (Type 2).

4
Multi-Selecthard

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

Select 2 answers
A.rkt only supported binary images
B.Docker is a sub-project of rkt
C.Docker never had a daemon
D.rkt utilized a daemonless architecture
E.rkt natively supported Kubernetes Pods
AnswersD, E

rkt was designed to run without a persistent system-wide daemon.

Why this answer

rkt focused on pods and a daemonless architecture, whereas Docker initially used a centralized daemon.

5
MCQmedium

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

A.systemctl start
B.systemd-nspawn -run
C.machinectl shell
D.nsenter
AnswerC

This allows interacting with a running machine.

Why this answer

'machinectl shell' is the command used to spawn a shell inside a running container.

6
MCQhard

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

A.Set jail_enable=YES in /etc/rc.conf
B.Create a symlink in /etc/init.d
C.Use systemd
D.Add a cron job
AnswerA

This enables the jail service.

Why this answer

Setting 'jail_enable="YES"' in /etc/rc.conf is required for the jails subsystem to start.

7
Multi-Selectmedium

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

Select 2 answers
A.Telnet
B.VNC
C.HTTP
D.FTP
E.Spice
AnswersB, E

Common remote console protocol.

Why this answer

VNC and Spice are the standard remote display protocols for KVM guests.

8
MCQmedium

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?

A.bridge
B.overlay
C.ipvlan
D.macvlan
AnswerD

This bridges the container to the host's physical network.

Why this answer

The 'macvlan' driver allows containers to be assigned a MAC address and IP on the physical network.

9
MCQmedium

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

A.Via the 'virsh set-mac' command
B.In the qemu-system-x86_64 startup parameters
C.In the host's /etc/network/interfaces
D.Inside the <interface> tag of the VM XML
AnswerD

The <mac address='...'/> element defines it.

Why this answer

The MAC address is configured within the <interface> block of the domain XML.

10
MCQmedium

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

A.Migrating virtual machines
B.Provisioning new virtual machines
C.Monitoring VM performance
D.Editing VM XML
AnswerB

Correct purpose of virt-install.

Why this answer

virt-install is a command-line tool for provisioning new virtual machines.

11
MCQhard

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?

A.<ip-assignment mac='...' ip='...'/>
B.<dhcp><host mac='...' name='...' ip='...'/></dhcp>
C.<dhcp-host mac='...' ip='...'/>
D.<static-ip mac='...' ip='...'/>
AnswerB

Correct syntax for static DHCP lease.

Why this answer

The <host> element inside the <dhcp> block of a <network> definition is used for static leases.

12
MCQeasy

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

A.USER
B.WORKDIR
C.RUN useradd
D.AS
AnswerA

This command effectively switches the security context.

Why this answer

The USER instruction sets the UID/GID for processes executed in subsequent steps.

13
MCQhard

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

A.It isolates the container's network from the host
B.It forces the container to use a bridge
C.It disables network encryption
D.It restricts access to localhost
E.It prevents the container from starting
AnswerA

This creates a private network namespace for the container.

Why this answer

The --private-network flag creates a virtual network namespace for the container, ensuring it cannot access the host's network interfaces.

14
MCQmedium

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?

A.docker run -p 80:8080
B.docker run -p 8080:80
C.docker run --net host
D.docker run --expose 8080
E.docker run -P 8080
AnswerB

This maps host port 8080 to container port 80.

Why this answer

The -p flag in docker run is used to map host ports to container ports.

15
Multi-Selecthard

Which THREE of the following are valid virtio device types?

Select 3 answers
A.virtio-scsi
B.virtio-keyboard
C.virtio-blk
D.virtio-mouse
E.virtio-net
AnswersA, C, E

SCSI controller driver.

Why this answer

virtio-blk, virtio-net, and virtio-scsi are standard virtio devices.

16
MCQmedium

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

A.bridge
B.nat
C.isolated
D.direct
AnswerA

The bridge mode provides transparent network access.

Why this answer

A 'bridge' network mode in libvirt attaches the guest NIC directly to an existing host bridge, allowing the guest to obtain an IP on the physical network.

17
Multi-Selectmedium

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

Select 2 answers
A.nfs-server
B.virtual-disk
C.logical
D.remote-disk
E.iscsi
AnswersC, E

LVM based pool.

Why this answer

'logical' (LVM) and 'iscsi' are valid storage pool types.

18
MCQhard

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?

A.<dns/>
B.<disable-dns/>
C.<service name='dns' enabled='no'/>
D.<forward mode='bridge' dns='no'/>
AnswerA

Removing or omitting this block disables DNS.

Why this answer

The <dns> block is responsible for the network's DNS service.

19
MCQmedium

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?

A.-p 80:8080
B.-p 8080:80
C.--port 8080:80
D.--map 8080:80
AnswerB

Correct mapping format.

Why this answer

The -p flag (or --publish) defines port mapping.

20
MCQmedium

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

A.RUN
B.ADD
C.PUSH
D.COPY
E.IMPORT
AnswerD

COPY transfers files from the host to the image.

Why this answer

The COPY instruction is the standard way to move files from the build context into the image.

21
MCQmedium

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?

A.Run fstrim in the guest, then use qemu-img convert -O qcow2.
B.Delete files in the guest and use qemu-img resize.
C.Use virsh blockpull.
D.Use qemu-img check -r all.
E.Run dd if=/dev/zero to fill the disk.
AnswerA

Fstrim notifies the disk of unused blocks, and convert -O compacts the file.

Why this answer

To shrink a qcow2 image, you must first deflate the filesystem within the guest, then use qemu-img to convert/compact the image file.

22
Multi-Selectmedium

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

Select 3 answers
A.ADD
B.ENV
C.EXPOSE
D.RUN
E.COPY
AnswersA, D, E

Adds files or URLs to the image.

Why this answer

RUN, COPY, and ADD all add or modify content within the image layers.

23
MCQeasy

What is the primary function of the libvirtd daemon?

A.To manage kernel modules for KVM
B.To emulate physical hardware for the host
C.To provide a graphical interface for QEMU
D.To act as a management API for virtualization technologies
AnswerD

libvirtd is the core management daemon.

Why this answer

libvirtd provides a management layer (API) to control various virtualization technologies like KVM, Xen, and LXC.

24
Multi-Selectmedium

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

Select 3 answers
A.Two-way synchronization
B.NFS or SMB support
C.Automatic kernel updates
D.Remote SSH tunneling
E.Sharing host files with the guest
AnswersA, B, E

Supports bi-directional file updates.

Why this answer

Synced folders provide shared storage, allow file editing on the host, and enable code synchronization between host and guest.

25
MCQmedium

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

A.vmdk
B.vhdx
C.qcow2
D.raw
AnswerC

qcow2 provides all listed features.

Why this answer

QCOW2 (QEMU Copy-On-Write version 2) is the standard format for KVM that supports these features.

26
MCQmedium

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?

A.pci = [ '00:1f.1' ]
B.device_pass = 'eth0'
C.hw_access = '00:1f.1'
D.vif = [ 'type=pci, bus=00:1f.1' ]
AnswerA

Correct syntax for passing a PCI device to a Xen guest.

Why this answer

The pci option in the Xen domain configuration file allows passing through physical PCI devices to the guest domain.

27
MCQmedium

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

A.SIGINT
B.SIGHUP
C.SIGTERM
D.SIGKILL
AnswerD

SIGKILL forces immediate process termination.

Why this answer

virsh destroy forces a shutdown, typically by sending SIGKILL to the QEMU process.

28
MCQmedium

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?

A.vagrant halt
B.vagrant reload
C.vagrant up
D.vagrant provision
AnswerD

This applies provisioners to an existing VM.

Why this answer

'vagrant provision' triggers the configured provisioners (shell, ansible, etc.) on a running VM without destroying it.

29
MCQhard

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

A.<bandwidth><inbound average='1000'/><outbound average='1000'/></bandwidth>
B.<limit-rate>1000</limit-rate>
C.<network-speed>1000</network-speed>
D.<traffic-control>1000</traffic-control>
AnswerA

Correct syntax for bandwidth limiting.

Why this answer

The <bandwidth> element allows setting inbound and outbound throughput limits.

30
MCQmedium

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

A.A box metadata file
B.The Vagrantfile
C.The provisioner script
D.A .env file excluded from git
AnswerD

This keeps secrets out of the repository.

Why this answer

The 'vagrant-env' plugin or simply using local environment variables are common, but the best practice is to load variables from a file excluded by git, such as '.env' or a separate file.

31
Multi-Selectmedium

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

Select 2 answers
A.virsh domstats
B.virsh show-stats
C.virsh monitor-cpu
D.virsh check-load
E.virt-top
AnswersA, E

Provides statistics on a domain.

Why this answer

virsh domstats and top (or virt-top) are used for monitoring.

32
MCQmedium

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?

A.lxc.cgroup.cpu.limit
B.lxc.cgroup.cpu.cfs_quota_us
C.lxc.cgroup.cpu.shares
D.lxc.cgroup.cpu.period_us
AnswerB

This defines the hard CPU limit in microseconds.

Why this answer

lxc.cgroup.cpu.cfs_quota_us defines the number of microseconds the container can run in a period.

33
MCQeasy

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?

A.Virtio
B.SCSI
C.IDE
D.SATA
AnswerA

Virtio is a paravirtualized driver providing near-native disk performance.

Why this answer

Virtio is the paravirtualized driver standard for high-performance I/O in libvirt/KVM environments.

34
Multi-Selecthard

Which THREE networking modes are natively supported by Docker?

Select 3 answers
A.bridge
B.gateway
C.tunnel
D.none
E.host
AnswersA, D, E

Default for standalone containers.

Why this answer

Bridge, host, and none are standard Docker network drivers.

35
Multi-Selecthard

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

Select 3 answers
A.CPU scheduling
B.Disk quotas
C.PID isolation
D.Network isolation
E.Mount isolation
AnswersC, D, E

Separates process trees.

Why this answer

Namespaces provide isolation for Process IDs, Networking, and Mount points.

36
Multi-Selectmedium

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

Select 3 answers
A.gui
B.disk_size
C.cpus
D.network_type
E.memory
AnswersA, C, E

Toggles the virtual monitor window.

Why this answer

The 'provider' block for VirtualBox allows setting memory, CPU count, and enabling GUI mode.

37
MCQmedium

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

A.OverlayFS
B.Seccomp
C.Namespaces
D.Cgroups
E.AppArmor
AnswerC

Namespaces are the primary mechanism for process isolation.

Why this answer

Namespaces are a Linux kernel feature that partition kernel resources, such as PID, network, and mount points.

38
MCQeasy

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?

A.vagrant up
B.vagrant status
C.vagrant validate
D.vagrant box list
AnswerB

This displays the status and the provider.

Why this answer

'vagrant status' provides the current state of the machine and the provider used for that specific instance.

39
Multi-Selecthard

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

Select 3 answers
A.<os>
B.<kernel-module>
C.<cpu>
D.<devices>
E.<network-config>
AnswersA, C, D

Contains boot configuration.

Why this answer

<os>, <devices>, and <cpu> are standard top-level or child blocks in the domain XML.

40
MCQeasy

What does the 'docker rm' command do?

A.Renames a container
B.Stops a container
C.Removes an image
D.Removes a container
AnswerD

Correct for container removal.

Why this answer

'docker rm' deletes one or more stopped containers.

41
MCQeasy

Which hypervisor type is considered 'Type 1' virtualization?

A.VMware Workstation
B.VirtualBox
C.Xen
D.QEMU (user mode)
AnswerC

Xen is a Type 1 bare-metal hypervisor.

Why this answer

Type 1 hypervisors (bare metal) run directly on the hardware, such as Xen.

42
MCQmedium

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?

A.docker network inspect bridge
B.iptables -t nat -L -n
C.ip link show docker0
D.sysctl -a | grep net.bridge
AnswerB

Docker adds rules to the NAT table for port forwarding and masquerading.

Why this answer

Docker manages iptables rules for container networking.

43
MCQhard

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?

A.You cannot have two NICs in one VM
B.Add a second <interface> block with a unique <mac/>
C.Libvirt assigns the same MAC automatically
D.Use the same <mac/> but different <source/>
AnswerB

Each interface needs a unique MAC.

Why this answer

You define a new <interface> block with a unique <mac address='...'/>.

44
MCQmedium

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

A./etc/openvz/config
B./var/lib/vz/config
C./etc/vz/container.conf
D./etc/vz/vz.conf
E./etc/vz/conf/CTID.conf
AnswerE

The CTID.conf file contains all parameters for the specific container ID.

Why this answer

In OpenVZ, containers are managed via configuration files located in /etc/vz/conf/.

45
Multi-Selecthard

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

Select 3 answers
A.--mode acpi
B.--mode agent
C.--mode initctl
D.--mode force
E.--mode hard
AnswersA, B, C

Sends ACPI power signal.

Why this answer

The --mode flag can accept 'acpi', 'agent', and 'initctl'.

46
MCQhard

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

A.tar -cvf
B.docker export
C.lxc-copy
D.machinectl export-tar
AnswerD

This exports the container to a tar archive.

Why this answer

'machinectl export-tar' is used to export a systemd-nspawn container (machine) to a tarball.

47
MCQmedium

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

A.To speed up network transfers
B.To provide disk caching
C.To enable memory ballooning
D.To enable 3D graphics
AnswerC

It facilitates host-guest memory management.

Why this answer

The balloon driver allows the host to communicate with the guest for memory reclaiming.

48
MCQmedium

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?

A.packages
B.yum_install
C.software
D.install_packages
AnswerA

This is the correct configuration key.

Why this answer

The 'packages' list under cloud-init config allows specifying a list of packages to be installed by the system package manager.

49
MCQeasy

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

A.packer inspect
B.packer view
C.packer show
D.packer list
AnswerA

This displays template details.

Why this answer

'packer inspect' is used to view information about a template, including variables and provisioners.

50
MCQmedium

What is the primary function of a Docker Registry?

A.To store and distribute images
B.To build images
C.To run containers
D.To manage networking
AnswerA

Registries act as a central repository for images.

Why this answer

A registry stores and distributes Docker images.

51
MCQhard

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

A.Shell
B.INI
C.YAML
D.JSON
AnswerC

YAML is the standard configuration format.

Why this answer

Cloud-init uses the 'network-config' key, often structured using the 'v1' (YAML) or 'v2' (Netplan) format.

52
MCQmedium

What is the purpose of 'virt-top'?

A.To manage network bridges
B.To show real-time statistics for VMs
C.To edit VM configuration files
D.To install new guest OSs
AnswerB

It monitors VM resource usage.

Why this answer

virt-top is a utility similar to 'top' that shows performance statistics for virtual machines.

53
MCQmedium

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?

A.nat
B.public_network
C.forwarded_port
D.private_network
AnswerB

This bridges the VM to the external network.

Why this answer

The 'public_network' mode bridges the VM's interface to the host's physical network interface, allowing it to act like a physical machine on that segment.

54
MCQeasy

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

A.settings.json
B.Vagrantfile
C.provision.sh
D.config.yml
AnswerB

This is the required configuration filename.

Why this answer

Vagrant looks for a file named 'Vagrantfile' in the directory where the 'vagrant' command is executed.

55
Multi-Selectmedium

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

Select 2 answers
A.Hub-based switching
B.NAT
C.VLAN tagging on bridge
D.Bridging
E.Direct routing
AnswersB, D

Standard mode.

Why this answer

Bridging and NAT are both native libvirt network configuration methods.

56
MCQeasy

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?

A.Bridge
B.Isolated
C.Direct
D.NAT
AnswerB

Isolated mode restricts traffic to the local virtual bridge only.

Why this answer

The 'isolated' network mode (often implemented as a bridge without an uplink to the host's physical interface) prevents external traffic.

57
MCQmedium

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?

A.-fsdev share,path=/data,id=host_data
B.-netdev user,hostfwd=dir:/data
C.-virtfs local,path=/data,mount_tag=host_data,security_model=passthrough
D.-drive file=/data,format=raw,if=virtio
AnswerC

This is the correct command-line argument for virtio-9p filesystem passthrough.

Why this answer

The virtio-9p-pci device allows for high-performance filesystem passthrough between the host and guest in QEMU.

58
MCQhard

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?

A.--max-mem=512M
B.--memory-limit=512M
C.--cgroup-memory=512M
D.--limit-mem=512M
AnswerB

This flag correctly limits the container memory usage.

Why this answer

systemd-nspawn uses the --memory-limit flag to restrict the memory consumption of the spawned container.

59
MCQmedium

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

A.YAML
B.INI
C.XML
D.JSON
AnswerA

Compose files are written in YAML.

Why this answer

Docker Compose uses YAML files.

60
MCQmedium

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?

A.Named volume
B.Anonymous volume
C.Bind mount
D.Tmpfs mount
AnswerC

This allows mounting a specific host directory.

Why this answer

Bind mounts allow mapping a specific host path to a container path, providing persistence at a known location.

61
MCQmedium

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?

A.-device virtio-net,backend=tap0
B.-netdev tap,id=net0,ifname=tap0 -device virtio-net-pci,netdev=net0
C.-netdev tap,id=tap0 -device virtio-net-pci,id=tap0
D.-net tap,ifname=tap0,model=virtio
AnswerB

This correctly maps the backend tap device to the virtio frontend.

Why this answer

The -netdev tap,id=net0,ifname=tap0 argument defines the backend, and -device virtio-net-pci,netdev=net0 defines the frontend.

62
MCQeasy

What is the purpose of the 'virsh' tool?

A.To monitor host CPU temperature
B.To compile QEMU
C.To write disk images to USB
D.To manage virtual domains
AnswerD

virsh is the primary management CLI.

Why this answer

virsh is the main command-line interface for managing libvirt-based virtualization.

63
Multi-Selecthard

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

Select 3 answers
A.Target path (path)
B.Service status
C.Permissions (permissions)
D.Kernel parameters
E.Content (content)
AnswersA, C, E

The absolute path to the file.

Why this answer

The 'write_files' module allows defining content, file permissions, and target paths for arbitrary files.

64
MCQhard

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

A.config.env.set
B.config.vm.env
C.vagrant.env.set
D.config.vm.provision "shell", env: { "VAR" => "value" }
AnswerD

This is the correct syntax for passing environment variables.

Why this answer

The 'config.vm.provision "shell"' block accepts an 'env' hash to define environment variables for the shell script.

65
MCQhard

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?

A.nat table, PREROUTING chain
B.nat table, POSTROUTING chain
C.filter table, FORWARD chain
D.mangle table, OUTPUT chain
AnswerB

MASQUERADE rules are added here to handle SNAT.

Why this answer

The POSTROUTING chain in the nat table is responsible for MASQUERADE rules used for SNAT.

66
MCQeasy

Which command is used to remove an unused Docker image?

A.docker rm
B.docker image delete
C.docker prune image
D.docker rmi
AnswerD

This removes images.

Why this answer

'docker rmi' is the command to remove an image.

67
Multi-Selectmedium

Which TWO of the following are valid container orchestration platforms?

Select 2 answers
A.Nginx
B.Kubernetes
C.Docker Desktop
D.Nomad
E.GitLab
AnswersB, D

The industry standard orchestrator.

Why this answer

Kubernetes and HashiCorp Nomad are widely used orchestration platforms.

68
Multi-Selectmedium

Which TWO commands are used to manage images in Docker?

Select 2 answers
A.docker tag
B.docker run
C.docker create
D.docker attach
E.docker build
AnswersA, E

Labels an image.

Why this answer

'docker build' creates images, and 'docker tag' renames/labels them.

69
Multi-Selecthard

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

Select 3 answers
A.<hugepages/>
B.<source type='file'/>
C.<swap-limit/>
D.<balloon-rate/>
E.<locked/>
AnswersA, B, E

Enables hugepages.

Why this answer

hugepages, locked, and source (type) are all valid components of memory backing.

70
Multi-Selecthard

Which THREE storage drivers are supported by Docker?

Select 3 answers
A.devicemapper
B.xfs
C.aufs
D.ext4
E.overlay2
AnswersA, C, E

Older, block-device-based driver.

Why this answer

Overlay2, devicemapper, and aufs are well-known Docker storage drivers.

71
MCQeasy

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

A.Ability to run different kernels
B.Stronger security isolation
C.No network configuration
D.Lighter weight and faster startup
AnswerD

Shared kernel enables efficiency.

Why this answer

Containers share the host kernel, making them significantly lighter and faster to start than VMs.

72
MCQmedium

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

A.docker pull --metadata
B.docker image history
C.docker manifest inspect
D.docker image inspect
AnswerC

This retrieves metadata directly from the registry.

Why this answer

docker manifest inspect allows retrieving information about an image's manifest without downloading the layers.

73
MCQmedium

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?

A.--proxy
B.--build-arg
C.--privileged
D.--network=host
E.--env-file
AnswerB

Passes environment variables to the docker build process.

Why this answer

Docker builds do not automatically inherit environment variables from the host's shell unless specified via --build-arg.

74
MCQhard

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?

A.--copy-storage-all
B.--live-disk
C.--migrate-storage
D.--block-migrate
AnswerA

This flag forces the migration of all local storage associated with the domain.

Why this answer

The --copy-storage-all flag in 'virsh migrate' instructs libvirt to copy all non-shared disk images to the destination host.

75
MCQmedium

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

A.jexec
B.jail
C.jails-admin
D.jail-manage
E.jls
AnswerB

The jail command is the base utility for jail management.

Why this answer

jail is the command to create or start a jail, and jailctl is also sometimes used in managed environments, but jexec is used for executing commands inside.

Page 1 of 3

Page 2

All pages