Question 30
A custom .ko file is being tested, and all required dependencies are already loaded. Which low-level command inserts exactly that file?
- lsmod
- A modprobe.d blacklist entry
- rmmod driver_name
- 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.
Question 31
A driver audit needs the list of modules presently loaded AND metadata for a driver that may not be loaded. Which TWO utilities give those separate views? Choose TWO.
- insmod ./custom.ko
- modinfo driver_name
- lsmod
- depmod -a
- A modprobe.d blacklist entry
Explanation
Correct Answers
B:modinfo reads a kernel module's parameters, aliases and descriptive metadata without installing or loading it. It complements lsmod, which enumerates modules already loaded into the running kernel.
C:lsmod lists currently loaded kernel modules along with size and use-count information. It does not install drivers or display every module available on disk.
Incorrect Answers
A:insmod inserts the specified object into the kernel without automatically resolving dependencies; it answers a neighboring question rather than obtaining both a live module list and a driver metadata report.
D:depmod generates module dependency and alias information for the installed kernel modules; it will not provide obtaining both a live module list and a driver metadata report under these conditions.
E:A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; using it would leave obtaining both a live module list and a driver metadata report unresolved.
Question 32
On a distribution that uses dracut, a storage module was added and the initramfs needs rebuilding. Which utility is appropriate?
- lscpu
- dracut --force
- The initramfs image used by the boot entry
- The initramfs kernel-module version
Explanation
Correct Answer
B:dracut builds an initramfs with the modules needed in early boot. Rebuilding the appropriate kernel image can make a required storage driver available before root is mounted.
Incorrect Answers
A:lscpu summarizes CPU topology and architecture reported by the kernel; the requirement is rebuilding dracut-managed early boot contents, outside the effect of this choice.
C:Early boot cannot read the real root filesystem to load missing drivers from it; the evidence calls for rebuilding dracut-managed early boot contents, not merely this separate operation.
D:Kernel modules inside an initramfs must be compatible with the kernel being loaded; the task involves rebuilding dracut-managed early boot contents, whereas this addresses another subsystem.
Question 33
A hardware inventory requires a summarized description of physical controllers, memory and disks. Which utility is designed for that?
- lsmem
- lshw -short
- lsusb
- dmidecode
Explanation
Correct Answer
B:lshw collects a hardware inventory and can present it in a compact table. It is distinct from tools that show only a single bus family.
Incorrect Answers
A:lsmem displays memory ranges and their online or offline state using kernel interfaces; that is not equivalent to inventorying multiple classes of hardware.
C:lsusb reads USB device information including bus and device identifiers; it answers a neighboring question rather than inventorying multiple classes of hardware.
D:dmidecode decodes DMI/SMBIOS tables to report firmware, board and system inventory; that changes a different part of the system; the requested outcome is inventorying multiple classes of hardware.
Question 34
A newly installed kernel driver has dependent modules. Which command normally loads it together with dependencies?
- A modprobe.d blacklist entry
- modprobe driver_name
- depmod -a
- insmod ./custom.ko
Explanation
Correct Answer
B:Unlike insmod, modprobe uses available module metadata to load a requested driver together with dependencies. insmod directly inserts a single module file without dependency resolution.
Incorrect Answers
A:A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; it will not provide loading a kernel module with dependencies under these conditions.
C:depmod generates module dependency and alias information for the installed kernel modules; the requirement is loading a kernel module with dependencies, outside the effect of this choice.
D:insmod inserts the specified object into the kernel without automatically resolving dependencies; it does not deliver loading a kernel module with dependencies, which is decisive in this scenario.
Question 35
A PCI network controller's vendor and device IDs are needed to identify the correct driver. Which command displays them?
- lshw -short
- lscpu
- lspci -nn
- dmesg
Explanation
Correct Answer
C:lspci enumerates PCI devices and the -nn option includes numeric vendor and device IDs. Those IDs help match hardware with kernel driver support.
Incorrect Answers
A:lshw collects a hardware inventory and can present it in a compact table; the task involves listing numeric PCI device identifiers, whereas this addresses another subsystem.
B:lscpu summarizes CPU topology and architecture reported by the kernel; its scope differs from listing numeric PCI device identifiers, so it cannot meet the stated requirement.
D:dmesg reads messages from the kernel ring buffer, including driver detection and hardware faults; the administrator instead needs listing numeric PCI device identifiers; this option serves a different purpose.
Question 36
A workload must know CPU sockets, core counts and architecture. Which command provides an overview?
- nvtop
- lsusb
- lscpu
- lspci -nn
Explanation
Correct Answer
C:lscpu summarizes CPU topology and architecture reported by the kernel. It is preferable to guessing CPU capacity from a process count.
Incorrect Answers
A:nvtop provides a top-like interactive view of GPU processes and utilization on supported drivers; that changes a different part of the system; the requested outcome is examining CPU topology and instruction set.
B:lsusb reads USB device information including bus and device identifiers; this does not achieve examining CPU topology and instruction set on the system described.
D:lspci enumerates PCI devices and the -nn option includes numeric vendor and device IDs; using it would leave examining CPU topology and instruction set unresolved.
Question 37
Sensors suggest a server fan may be overheating. Which command queries supported temperature and fan readings?
- lshw -short
- lsmem
- lspci -nn
- dmidecode
- sensors
Explanation
Correct Answer
E:The lm_sensors utility exposes supported hardware sensor readings from kernel drivers. Sensor availability depends on the platform and configured modules.
Incorrect Answers
A:lshw collects a hardware inventory and can present it in a compact table; it does not deliver reading physical temperature and fan sensor values, which is decisive in this scenario.
B:lsmem displays memory ranges and their online or offline state using kernel interfaces; the evidence calls for reading physical temperature and fan sensor values, not merely this separate operation.
C:lspci enumerates PCI devices and the -nn option includes numeric vendor and device IDs; the task involves reading physical temperature and fan sensor values, whereas this addresses another subsystem.
D:dmidecode decodes DMI/SMBIOS tables to report firmware, board and system inventory; its scope differs from reading physical temperature and fan sensor values, so it cannot meet the stated requirement.
Question 38
A USB storage adapter is connected but its vendor is unknown. Which utility lists the USB enumeration tree?
- lshw -short
- lsusb
- dmesg
- sensors
Explanation
Correct Answer
B:lsusb reads USB device information including bus and device identifiers. It does not manage mounts or filesystem permissions.
Incorrect Answers
A:lshw collects a hardware inventory and can present it in a compact table; the administrator instead needs enumerating connected USB devices; this option serves a different purpose.
C:dmesg reads messages from the kernel ring buffer, including driver detection and hardware faults; that changes a different part of the system; the requested outcome is enumerating connected USB devices.
D:The lm_sensors utility exposes supported hardware sensor readings from kernel drivers; this does not achieve enumerating connected USB devices on the system described.
Question 39
A driver has no active users and must be unloaded from the kernel by module name. Which utility is most directly suited?
- insmod ./custom.ko
- A modprobe.d blacklist entry
- lsmod
- modprobe driver_name
- depmod -a
- rmmod driver_name
Explanation
Correct Answer
F:rmmod removes a loaded module if references permit it. It cannot safely unload a driver that active devices or other modules still require.
Incorrect Answers
A:insmod inserts the specified object into the kernel without automatically resolving dependencies; using it would leave removing an unused loaded driver unresolved.
B:A blacklist tells modprobe not to resolve matching internal aliases into that module during automatic loading; the requirement is removing an unused loaded driver, outside the effect of this choice.
C:lsmod lists currently loaded kernel modules along with size and use-count information; it does not deliver removing an unused loaded driver, which is decisive in this scenario.
D:modprobe is chiefly used to load modules with dependency resolution, whereas rmmod requests the removal of a named loaded module. insmod directly inserts a single module file without dependency resolution; the evidence calls for removing an unused loaded driver, not merely this separate operation.
E:depmod generates module dependency and alias information for the installed kernel modules; the task involves removing an unused loaded driver, whereas this addresses another subsystem.
Question 40
A rack server's out-of-band controller needs a power-status query. Which utility interacts with IPMI-compatible management interfaces?
- lsusb
- dmidecode
- ipmitool chassis power status
- nvtop
Explanation
Correct Answer
C:ipmitool can query or control supported baseboard management controllers through IPMI. This is hardware management, not ordinary systemd service control.
Incorrect Answers
A:lsusb reads USB device information including bus and device identifiers; its scope differs from checking BMC chassis power status, so it cannot meet the stated requirement.
B:dmidecode decodes DMI/SMBIOS tables to report firmware, board and system inventory; that is not equivalent to checking BMC chassis power status.
D:nvtop provides a top-like interactive view of GPU processes and utilization on supported drivers; it answers a neighboring question rather than checking BMC chassis power status.