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

Question 20

A diskless workstation receives a boot program over the network before its operating system loads. Which technology supports this workflow?

  1. GRUB2 bootloader menu
  2. root= kernel argument
  3. PXE network boot
  4. systemd as initial userspace process

Explanation

Correct Answer

C:

Preboot Execution Environment uses firmware network support, typically DHCP and a boot server, to obtain initial startup software. It operates before the locally installed OS runs.

Incorrect Answers

A:

GRUB2 selects a boot entry and loads the chosen kernel with its parameters; the requirement is starting a system using firmware network boot, outside the effect of this choice.

B:

The root parameter tells the kernel or initramfs which filesystem should become the operating system root; it does not deliver starting a system using firmware network boot, which is decisive in this scenario.

D:

A diskless boot still eventually runs a userspace PID 1; that is downstream of fetching the initial boot image. systemd subsequently starts units and manages service dependencies; the task involves starting a system using firmware network boot, whereas this addresses another subsystem.

Question 21

An installer offers an AMD64 image for conventional 64-bit Intel and AMD servers. Which architecture does it describe?

  1. AArch64
  2. x86_64
  3. Debian-derived distributions
  4. RISC-V

Explanation

Correct Answer

B:

AMD64 and x86_64 commonly name the same 64-bit x86 instruction-set architecture. The term does not restrict the package to AMD-manufactured CPUs.

Incorrect Answers

A:

AArch64 denotes the 64-bit ARM execution environment; that is not equivalent to interpreting the AMD64 architecture label.

C:

Debian and Ubuntu commonly use dpkg with apt as a higher-level frontend; it answers a neighboring question rather than interpreting the AMD64 architecture label.

D:

RISC-V is an open instruction-set architecture with multiple implementations; that changes a different part of the system; the requested outcome is interpreting the AMD64 architecture label.

Question 22

A driver loads automatically but should be prevented from loading through normal module requests. Which configuration is appropriate?

  1. modinfo driver_name
  2. A modprobe.d blacklist entry
  3. rmmod driver_name
  4. lsmod

Explanation

Correct Answer

B:

A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading. Explicit loads or initramfs contents may need separate controls.

Incorrect Answers

A:

modinfo reads metadata embedded in a kernel module, such as its license, description and parameters; it will not provide restricting automatic module selection under these conditions.

C:

rmmod removes a loaded module if references permit it; the requirement is restricting automatic module selection, outside the effect of this choice.

D:

lsmod lists currently loaded kernel modules along with size and use-count information; it does not deliver restricting automatic module selection, which is decisive in this scenario.

Question 23

A graphics workstation must display per-GPU utilization from supported NVIDIA and other GPU drivers. Which tool offers an interactive view?

  1. lscpu
  2. dmesg
  3. nvtop
  4. dmidecode

Explanation

Correct Answer

C:

nvtop provides a top-like interactive view of GPU processes and utilization on supported drivers. It is not a general disk or CPU topology reporting utility.

Incorrect Answers

A:

lscpu summarizes CPU topology and architecture reported by the kernel; the task involves viewing active GPU workloads, whereas this addresses another subsystem.

B:

dmesg reads messages from the kernel ring buffer, including driver detection and hardware faults; its scope differs from viewing active GPU workloads, so it cannot meet the stated requirement.

D:

dmidecode decodes DMI/SMBIOS tables to report firmware, board and system inventory; the administrator instead needs viewing active GPU workloads; this option serves a different purpose.

Question 24

After replacing module files, an administrator needs to regenerate the dependency indexes consulted by modprobe. Which command does this?

  1. depmod -a
  2. rmmod driver_name
  3. A modprobe.d blacklist entry
  4. modprobe driver_name
  5. modinfo driver_name

Explanation

Correct Answer

A:

depmod generates module dependency and alias information for the installed kernel modules. It prepares module metadata rather than loading a driver.

Incorrect Answers

B:

rmmod removes a loaded module if references permit it; this does not achieve regenerating the module dependency database on the system described.

C:

A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; it will not provide regenerating the module dependency database under these conditions.

D:

modprobe consults module dependency information to load a driver, while depmod is responsible for generating those indexes. insmod directly inserts a single module file without dependency resolution; using it would leave regenerating the module dependency database unresolved.

E:

modinfo reads metadata embedded in a kernel module, such as its license, description and parameters; the requirement is regenerating the module dependency database, outside the effect of this choice.

Question 25

A boot update produced an initramfs named for the wrong kernel release. Which property must match the selected boot entry?

  1. ipmitool chassis power status
  2. dracut --force
  3. The initramfs image used by the boot entry
  4. The initramfs kernel-module version

Explanation

Correct Answer

D:

Kernel modules inside an initramfs must be compatible with the kernel being loaded. A version mismatch can prevent the early storage stack from initializing.

Incorrect Answers

A:

ipmitool can query or control supported baseboard management controllers through IPMI; it does not deliver aligning early boot drivers with the loaded kernel, which is decisive in this scenario.

B:

dracut builds an initramfs with the modules needed in early boot; the evidence calls for aligning early boot drivers with the loaded kernel, not merely this separate operation.

C:

Early boot cannot read the real root filesystem to load missing drivers from it; the task involves aligning early boot drivers with the loaded kernel, whereas this addresses another subsystem.

Question 26

A technician wants module parameters and declared aliases before activating a driver. Which command is most appropriate?

  1. rmmod driver_name
  2. depmod -a
  3. modprobe driver_name
  4. lsmod
  5. A modprobe.d blacklist entry
  6. modinfo driver_name

Explanation

Correct Answer

F:

modinfo reads metadata embedded in a kernel module, such as its license, description and parameters. It does not insert the module into the running kernel.

Incorrect Answers

A:

rmmod removes a loaded module if references permit it; the administrator instead needs inspecting driver metadata without loading it; this option serves a different purpose.

B:

depmod generates module dependency and alias information for the installed kernel modules; it answers a neighboring question rather than inspecting driver metadata without loading it.

C:

modprobe loads drivers and resolves dependent modules; it is not the tool for printing aliases and parameters without loading. insmod directly inserts a single module file without dependency resolution; that changes a different part of the system; the requested outcome is inspecting driver metadata without loading it.

D:

lsmod lists currently loaded kernel modules along with size and use-count information; this does not achieve inspecting driver metadata without loading it on the system described.

E:

A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; it will not provide inspecting driver metadata without loading it under these conditions.

Question 27

A dracut-managed host has generated an initramfs for a new kernel. Before rebooting, an engineer must inspect whether the image includes the NVMe driver without extracting the image to a directory. Which utility is suitable?

  1. lsinitrd /boot/initramfs-target.img
  2. lsmod
  3. modprobe nvme
  4. depmod -a
  5. lspci -nn

Explanation

Correct Answer

A:

lsinitrd reads and lists an initramfs image built with dracut, allowing inspection of packed modules and early-boot files without unpacking the archive into a directory.

Incorrect Answers

B:

lsmod reports modules loaded into the currently running kernel. A driver in this list may still be absent from the separate initramfs image for the next boot.

C:

modprobe attempts to load the NVMe module in the current kernel with dependencies. This does not reveal whether a different kernel image includes that module during early boot.

D:

depmod rebuilds the module dependency indexes on disk. It neither lists the contents of a dracut image nor verifies that the driver was included when the image was generated.

E:

lspci displays enumerated PCI devices with vendor and device IDs. It can help identify an NVMe controller but cannot inspect a compressed early-userspace image.

Question 28

A recently connected PCI device generates a kernel driver error. Which utility displays kernel ring-buffer messages?

  1. nvtop
  2. lsusb
  3. ipmitool chassis power status
  4. dmesg

Explanation

Correct Answer

D:

dmesg reads messages from the kernel ring buffer, including driver detection and hardware faults. Access may be restricted by kernel security settings.

Incorrect Answers

A:

nvtop provides a top-like interactive view of GPU processes and utilization on supported drivers; its scope differs from examining kernel-emitted driver errors, so it cannot meet the stated requirement.

B:

lsusb reads USB device information including bus and device identifiers; that is not equivalent to examining kernel-emitted driver errors.

C:

ipmitool can query or control supported baseboard management controllers through IPMI; the administrator instead needs examining kernel-emitted driver errors; this option serves a different purpose.

Question 29

A motherboard's firmware version and system serial number are needed for support. Which utility reads SMBIOS data?

  1. lsusb
  2. dmidecode
  3. ipmitool chassis power status
  4. lspci -nn

Explanation

Correct Answer

B:

dmidecode decodes DMI/SMBIOS tables to report firmware, board and system inventory. Such information originates from firmware and may be absent or inaccurate in virtual machines.

Incorrect Answers

A:

lsusb reads USB device information including bus and device identifiers; this does not achieve reading firmware-provided machine identity on the system described.

C:

ipmitool can query or control supported baseboard management controllers through IPMI; using it would leave reading firmware-provided machine identity unresolved.

D:

lspci enumerates PCI devices and the -nn option includes numeric vendor and device IDs; the requirement is reading firmware-provided machine identity, outside the effect of this choice.

Question 30

A custom .ko file is being tested, and all required dependencies are already loaded. Which low-level command inserts exactly that file?

  1. lsmod
  2. A modprobe.d blacklist entry
  3. rmmod driver_name
  4. insmod ./custom.ko

Explanation

Correct Answer

D:

insmod inserts the specified object into the kernel without automatically resolving dependencies. It is lower-level than modprobe and expects a concrete module path.

Incorrect Answers

A:

lsmod lists currently loaded kernel modules along with size and use-count information; the evidence calls for directly inserting one kernel object, not merely this separate operation.

B:

A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; the task involves directly inserting one kernel object, whereas this addresses another subsystem.

C:

rmmod removes a loaded module if references permit it; its scope differs from directly inserting one kernel object, so it cannot meet the stated requirement.

CompTIA Linux+ (XK0-006) Practice Tests