D281 Linux Foundations OA and Pre-
assessment Practice Tests Targeted
Questions and Answers/ WGU D281 LPI
Linux Essential Objective Assessment
SECTION 1: SYSTEM ARCHITECTURE (Questions 1-50)
1. What is the primary function of the Linux kernel?
• A. To provide a graphical user interface
• B. To manage hardware resources and provide an interface between
hardware and software
• C. To compile programs
• D. To manage user passwords
Rationale: The Linux kernel is the core of the operating system, managing hardware
resources, process scheduling, memory management, and providing system calls for
user-space applications.
2. Which command displays information about the CPU architecture?
• A. lscpu
• B. cat /proc/cpuinfo
• C. uname -m
• D. All of the above
Rationale: All three commands provide information about the CPU. lscpu shows CPU
architecture info, cat /proc/cpuinfo displays detailed CPU information, and uname -
m shows the machine hardware name.
3. The boot process for a Linux system on an x86 machine using BIOS/MBR
typically follows which sequence?
• A. Kernel → initramfs → Bootloader → BIOS → OS
, • B. BIOS → Kernel → Bootloader → initramfs → OS
• C. BIOS → Bootloader → Kernel → initramfs → OS
• D. Bootloader → BIOS → Kernel → initramfs → OS
Rationale: The correct order is: BIOS (or UEFI) initializes hardware, loads the bootloader
(GRUB), the bootloader loads the kernel, the kernel loads the initramfs (initial RAM
filesystem), and then the OS starts.
4. Which command is used to view kernel messages?
• A. dmesg
• B. journalctl
• C. /var/log/kern.log
• D. All of the above
Rationale: All three are valid ways to view kernel messages. dmesg reads the kernel ring
buffer, journalctl (with systemd) shows logs including kernel messages,
and /var/log/kern.log stores kernel logs on many distributions.
5. In Linux, what is the purpose of a device driver?
• A. To delete files
• B. To compile the kernel
• C. To enable the kernel to communicate with hardware devices
• D. To manage user accounts
Rationale: Device drivers are kernel modules that allow the OS to communicate with
and control hardware devices like disk drives, network cards, and USB devices.
6. A user needs to know the kernel release number. Which command should be
used?
• A. uname -n
• B. uname -m
• C. uname -r
• D. uname -s
Rationale: uname -r displays the kernel release number. -s shows the kernel name, -
n shows the network hostname, and -m shows the machine hardware name.
7. You need to identify which kernel modules are currently loaded. Which
command should you use?
, • A. lsmod
• B. modprobe
• C. insmod
• D. rmmod
Rationale: lsmod lists all currently loaded kernel modules. modprobe loads
modules, insmod inserts a module, and rmmod removes a module.
8. The Linux kernel must be compiled before use. The process of configuring the
kernel for the specific hardware in the system is done by:
• A. make install
• B. make clean
• C. make menuconfig
• D. make modules_install
Rationale: make menuconfig is used to configure the kernel with hardware-specific
options. make clean removes object files, make install installs the kernel, and make
modules_install installs modules.
9. A user wants to see detailed information about the CPU, including model name
and speed. Which command should be used?
• A. lspci
• B. cat /proc/version
• C. cat /proc/cpuinfo
• D. cat /proc/meminfo
Rationale: /proc/cpuinfo contains detailed information about each CPU core, including
model name, speed, cache size, and flags.
10. Which file contains the system's hostname?
• A. /etc/hostname
• B. /etc/hosts
• C. /etc/network/interfaces
• D. /etc/resolv.conf
Rationale: The system hostname is stored in /etc/hostname on most modern
distributions. /etc/hosts maps hostnames to IP addresses.
11. A system administrator needs to know the amount of free and used memory.
Which command(s) can provide this information?
assessment Practice Tests Targeted
Questions and Answers/ WGU D281 LPI
Linux Essential Objective Assessment
SECTION 1: SYSTEM ARCHITECTURE (Questions 1-50)
1. What is the primary function of the Linux kernel?
• A. To provide a graphical user interface
• B. To manage hardware resources and provide an interface between
hardware and software
• C. To compile programs
• D. To manage user passwords
Rationale: The Linux kernel is the core of the operating system, managing hardware
resources, process scheduling, memory management, and providing system calls for
user-space applications.
2. Which command displays information about the CPU architecture?
• A. lscpu
• B. cat /proc/cpuinfo
• C. uname -m
• D. All of the above
Rationale: All three commands provide information about the CPU. lscpu shows CPU
architecture info, cat /proc/cpuinfo displays detailed CPU information, and uname -
m shows the machine hardware name.
3. The boot process for a Linux system on an x86 machine using BIOS/MBR
typically follows which sequence?
• A. Kernel → initramfs → Bootloader → BIOS → OS
, • B. BIOS → Kernel → Bootloader → initramfs → OS
• C. BIOS → Bootloader → Kernel → initramfs → OS
• D. Bootloader → BIOS → Kernel → initramfs → OS
Rationale: The correct order is: BIOS (or UEFI) initializes hardware, loads the bootloader
(GRUB), the bootloader loads the kernel, the kernel loads the initramfs (initial RAM
filesystem), and then the OS starts.
4. Which command is used to view kernel messages?
• A. dmesg
• B. journalctl
• C. /var/log/kern.log
• D. All of the above
Rationale: All three are valid ways to view kernel messages. dmesg reads the kernel ring
buffer, journalctl (with systemd) shows logs including kernel messages,
and /var/log/kern.log stores kernel logs on many distributions.
5. In Linux, what is the purpose of a device driver?
• A. To delete files
• B. To compile the kernel
• C. To enable the kernel to communicate with hardware devices
• D. To manage user accounts
Rationale: Device drivers are kernel modules that allow the OS to communicate with
and control hardware devices like disk drives, network cards, and USB devices.
6. A user needs to know the kernel release number. Which command should be
used?
• A. uname -n
• B. uname -m
• C. uname -r
• D. uname -s
Rationale: uname -r displays the kernel release number. -s shows the kernel name, -
n shows the network hostname, and -m shows the machine hardware name.
7. You need to identify which kernel modules are currently loaded. Which
command should you use?
, • A. lsmod
• B. modprobe
• C. insmod
• D. rmmod
Rationale: lsmod lists all currently loaded kernel modules. modprobe loads
modules, insmod inserts a module, and rmmod removes a module.
8. The Linux kernel must be compiled before use. The process of configuring the
kernel for the specific hardware in the system is done by:
• A. make install
• B. make clean
• C. make menuconfig
• D. make modules_install
Rationale: make menuconfig is used to configure the kernel with hardware-specific
options. make clean removes object files, make install installs the kernel, and make
modules_install installs modules.
9. A user wants to see detailed information about the CPU, including model name
and speed. Which command should be used?
• A. lspci
• B. cat /proc/version
• C. cat /proc/cpuinfo
• D. cat /proc/meminfo
Rationale: /proc/cpuinfo contains detailed information about each CPU core, including
model name, speed, cache size, and flags.
10. Which file contains the system's hostname?
• A. /etc/hostname
• B. /etc/hosts
• C. /etc/network/interfaces
• D. /etc/resolv.conf
Rationale: The system hostname is stored in /etc/hostname on most modern
distributions. /etc/hosts maps hostnames to IP addresses.
11. A system administrator needs to know the amount of free and used memory.
Which command(s) can provide this information?