CompTIA XK0-006 (CompTIA Linux+) Practice Test 16

Question 150

An engineer needs to revert a laboratory VM to a known prior point after experiments. Which VM capability is useful?

  1. NAT virtual network
  2. Virtual machine snapshot
  3. Bridged networking
  4. Live migration

Explanation

Correct Answer

B:

A snapshot records a recoverable point-in-time VM state as supported by the hypervisor and storage backend. It is not a substitute for off-host backups.

Incorrect Answers

A:

NAT lets guests access external networks by translating source addresses through the host; the evidence calls for reverting a test guest to a saved state, not merely this separate operation.

C:

A bridge attaches a guest interface to the physical network's broadcast domain; its scope differs from reverting a test guest to a saved state, so it cannot meet the stated requirement.

D:

Live migration moves a running VM's execution state to another suitable host; that is not equivalent to reverting a test guest to a saved state.

Question 151

A Linux VM stack needs hardware-accelerated guest CPU execution AND a user-space machine/device emulator. Which TWO components provide these roles? Choose TWO.

  1. virsh list --all
  2. KVM
  3. QEMU
  4. Host-only virtual network
  5. libvirt

Explanation

Correct Answers

B:

Kernel-based Virtual Machine exposes hardware virtualization extensions to user-space hypervisors. Supported processors and enabled virtualization capabilities are prerequisites.

C:

QEMU supplies the virtual machine and device models and can use KVM to execute guest CPU instructions efficiently on compatible hardware. KVM acceleration by itself does not replace those user-space device models.

Incorrect Answers

A:

virsh queries libvirt and --all includes inactive guest definitions; it answers a neighboring question rather than combining CPU virtualization acceleration and machine emulation.

D:

Host-only networking permits isolated host-guest traffic without directly bridging to the external network; it will not provide combining CPU virtualization acceleration and machine emulation under these conditions.

E:

libvirt offers APIs and management services across supported virtualization technologies; using it would leave combining CPU virtualization acceleration and machine emulation unresolved.

Question 152

A team manages virtual machines through a common daemon and API rather than direct hypervisor commands. Which abstraction fits?

  1. libvirt
  2. virsh list --all
  3. QEMU
  4. Host-only virtual network

Explanation

Correct Answer

A:

libvirt offers APIs and management services across supported virtualization technologies. Tools such as virsh can communicate with its virtual-machine definitions.

Incorrect Answers

B:

virsh queries libvirt and --all includes inactive guest definitions; it does not deliver centrally managing hypervisor resources through an API, which is decisive in this scenario.

C:

QEMU provides machine and device emulation and can use KVM to accelerate guest CPUs; the evidence calls for centrally managing hypervisor resources through an API, not merely this separate operation.

D:

Host-only networking permits isolated host-guest traffic without directly bridging to the external network; the task involves centrally managing hypervisor resources through an API, whereas this addresses another subsystem.

Question 153

A guest runs slowly due to emulated storage and network adapters. Which optimized paravirtualized device family may help?

  1. KVM
  2. VirtIO drivers
  3. QEMU
  4. libvirt

Explanation

Correct Answer

B:

VirtIO drivers expose efficient virtual devices designed for guest-hypervisor interaction. They reduce overhead compared with fully emulated legacy hardware.

Incorrect Answers

A:

Kernel-based Virtual Machine exposes hardware virtualization extensions to user-space hypervisors; that is not equivalent to optimizing guest I/O using paravirtual drivers.

C:

QEMU provides machine and device emulation and can use KVM to accelerate guest CPUs; it answers a neighboring question rather than optimizing guest I/O using paravirtual drivers.

D:

libvirt offers APIs and management services across supported virtualization technologies; that changes a different part of the system; the requested outcome is optimizing guest I/O using paravirtual drivers.

Question 154

A qcow2 guest disk needs a larger virtual capacity while its filesystem remains unchanged. Which command changes the disk image size?

  1. qemu-img resize disk.qcow2 +10G
  2. Bridged networking
  3. NAT virtual network
  4. Live migration
  5. qemu-img convert -O raw input.qcow2 output.raw

Explanation

Correct Answer

A:

qemu-img resize adjusts virtual image capacity. Partitions and filesystems inside the guest still need their own expansion steps.

Incorrect Answers

B:

A bridge attaches a guest interface to the physical network's broadcast domain; using it would leave increasing virtual disk image capacity unresolved.

C:

NAT lets guests access external networks by translating source addresses through the host; the requirement is increasing virtual disk image capacity, outside the effect of this choice.

D:

Live migration moves a running VM's execution state to another suitable host; it does not deliver increasing virtual disk image capacity, which is decisive in this scenario.

E:

qemu-img converts virtual disk image formats without requiring the guest operating system to boot; the evidence calls for increasing virtual disk image capacity, not merely this separate operation.

Question 155

A command-line operator wants to list all defined libvirt guests, including powered-off ones. Which command works?

  1. libvirt
  2. KVM
  3. virsh list --all
  4. Host-only virtual network

Explanation

Correct Answer

C:

virsh queries libvirt and --all includes inactive guest definitions. A plain list typically shows only active domains.

Incorrect Answers

A:

libvirt offers APIs and management services across supported virtualization technologies; the task involves listing active and inactive defined virtual machines, whereas this addresses another subsystem.

B:

Kernel-based Virtual Machine exposes hardware virtualization extensions to user-space hypervisors; its scope differs from listing active and inactive defined virtual machines, so it cannot meet the stated requirement.

D:

Host-only networking permits isolated host-guest traffic without directly bridging to the external network; the administrator instead needs listing active and inactive defined virtual machines; this option serves a different purpose.

Question 156

A guest should appear as an independent device on the physical LAN using layer-2 connectivity. Which VM network arrangement is appropriate?

  1. Live migration
  2. NAT virtual network
  3. qemu-img resize disk.qcow2 +10G
  4. Virtual machine snapshot
  5. Bridged networking
  6. qemu-img convert -O raw input.qcow2 output.raw

Explanation

Correct Answer

E:

A bridge attaches a guest interface to the physical network's broadcast domain. The guest can obtain a LAN address like another attached host.

Incorrect Answers

A:

Live migration moves a running VM's execution state to another suitable host; that changes a different part of the system; the requested outcome is placing a guest on the physical LAN broadcast domain.

B:

NAT lets guests access external networks by translating source addresses through the host; this does not achieve placing a guest on the physical LAN broadcast domain on the system described.

C:

qemu-img resize adjusts virtual image capacity; it will not provide placing a guest on the physical LAN broadcast domain under these conditions.

D:

A snapshot records a recoverable point-in-time VM state as supported by the hypervisor and storage backend; using it would leave placing a guest on the physical LAN broadcast domain unresolved.

F:

qemu-img converts virtual disk image formats without requiring the guest operating system to boot; it does not deliver placing a guest on the physical LAN broadcast domain, which is decisive in this scenario.

Question 157

Hosts have compatible CPU and shared storage, and a running VM should move with minimal interruption. Which operation is intended?

  1. NAT virtual network
  2. Live migration
  3. qemu-img convert -O raw input.qcow2 output.raw
  4. Bridged networking

Explanation

Correct Answer

B:

Live migration moves a running VM's execution state to another suitable host. Network continuity, resource compatibility and migration capabilities must be checked.

Incorrect Answers

A:

NAT lets guests access external networks by translating source addresses through the host; it does not deliver relocating a running guest across hosts, which is decisive in this scenario.

C:

qemu-img converts virtual disk image formats without requiring the guest operating system to boot; the task involves relocating a running guest across hosts, whereas this addresses another subsystem.

D:

A bridge attaches a guest interface to the physical network's broadcast domain; its scope differs from relocating a running guest across hosts, so it cannot meet the stated requirement.

Question 158

A VM image should be converted from qcow2 to raw for an import workflow. Which utility is appropriate?

  1. qemu-img resize disk.qcow2 +10G
  2. qemu-img convert -O raw input.qcow2 output.raw
  3. Virtual machine snapshot
  4. Bridged networking

Explanation

Correct Answer

B:

qemu-img converts virtual disk image formats without requiring the guest operating system to boot. Available space should be considered because raw images can be large.

Incorrect Answers

A:

qemu-img resize adjusts virtual image capacity; the administrator instead needs converting a virtual disk image format; this option serves a different purpose.

C:

A snapshot records a recoverable point-in-time VM state as supported by the hypervisor and storage backend; that changes a different part of the system; the requested outcome is converting a virtual disk image format.

D:

A bridge attaches a guest interface to the physical network's broadcast domain; this does not achieve converting a virtual disk image format on the system described.

Question 159

Virtual machines need outbound connectivity through their host without exposing each guest as a separate LAN station. Which mode suits this?

  1. NAT virtual network
  2. Bridged networking
  3. qemu-img convert -O raw input.qcow2 output.raw
  4. Live migration

Explanation

Correct Answer

A:

NAT lets guests access external networks by translating source addresses through the host. Inbound access may require explicit port forwarding.

Incorrect Answers

B:

A bridge attaches a guest interface to the physical network's broadcast domain; the requirement is providing shared outbound network access from guests, outside the effect of this choice.

C:

qemu-img converts virtual disk image formats without requiring the guest operating system to boot; it does not deliver providing shared outbound network access from guests, which is decisive in this scenario.

D:

Live migration moves a running VM's execution state to another suitable host; the evidence calls for providing shared outbound network access from guests, not merely this separate operation.

Question 160

A test VM must communicate only with its host and similarly isolated guests, not the external LAN. Which network mode matches?

  1. QEMU
  2. VirtIO drivers
  3. virsh list --all
  4. Host-only virtual network

Explanation

Correct Answer

D:

Host-only networking permits isolated host-guest traffic without directly bridging to the external network. NAT or bridging would add additional network exposure.

Incorrect Answers

A:

QEMU provides machine and device emulation and can use KVM to accelerate guest CPUs; its scope differs from isolating guest networking from external LANs, so it cannot meet the stated requirement.

B:

VirtIO drivers expose efficient virtual devices designed for guest-hypervisor interaction; that is not equivalent to isolating guest networking from external LANs.

C:

virsh queries libvirt and --all includes inactive guest definitions; the administrator instead needs isolating guest networking from external LANs; this option serves a different purpose.

CompTIA Linux+ (XK0-006) Practice Tests