Docsity

WGU D281 Linux Foundations Exam Practice Questions.pdf, Exams of Information Technology

Toggle sidebar
bg1
WGU D281 Linux Foundations Exam
Practice Questions (2026/2027)
Comprehensive Test Bank – 150 Questions with
Answers & Rationales
This practice exam is designed for students preparing for
the WGU D281 Linux Foundations Objective Assessment.
Questions are aligned with the exam domains: Linux System
Architecture (10%), Installation & Package Management
(15%), GNU & Unix Commands (35%), Devices, Filesystems
& FHS (20%), Shells, Scripting & Data Management (10%),
User Interfaces & Desktops (5%), and Administrative Tasks
(5%) .
SECTION I: LINUX SYSTEM ARCHITECTURE (Questions 1-
15)
Q1. Which component of the Linux operating system
directly manages hardware resources?
A) Shell
B) Kernel
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51

Partial preview of the text

Download WGU D281 Linux Foundations Exam Practice Questions.pdf and more Exams Information Technology in PDF only on Docsity!

WGU D281 Linux Foundations Exam

Practice Questions (2026/2027)

Comprehensive Test Bank – 150 Questions with Answers & Rationales This practice exam is designed for students preparing for the WGU D281 Linux Foundations Objective Assessment. Questions are aligned with the exam domains: Linux System Architecture (10%), Installation & Package Management (15%), GNU & Unix Commands (35%), Devices, Filesystems & FHS (20%), Shells, Scripting & Data Management (10%), User Interfaces & Desktops (5%), and Administrative Tasks (5%). SECTION I: LINUX SYSTEM ARCHITECTURE (Questions 1-

Q1. Which component of the Linux operating system directly manages hardware resources?  A) Shell  B) Kernel

 C) Init system  D) User space Correct Answer: B Rationale: The kernel is the core of Linux that interacts directly with hardware, managing memory, processes, and device drivers. It acts as the "software glue" between hardware and software. Q2. What is the first process started by the Linux kernel?  A) init (PID 1)  B) systemd (PID 1)  C) Both A and B (init or systemd depending on distribution)  D) bash Correct Answer: C Rationale: PID 1 is the first user-space process started by the kernel. Traditional SysV systems use init, while modern systems use systemd. Both serve as the parent of all other processes.

These files provide the interface for programs to communicate with hardware. Q5. Which directory is a virtual filesystem providing process and system information in real time?  A) /proc  B) /run  C) /dev/shm  D) /usr Correct Answer: A Rationale: /proc is a virtual filesystem (procfs) that contains runtime system information, including CPU, memory, and process data. It is created in memory at system boot. Q6. Which command displays CPU information?  A) cat /proc/cpuinfo  B) lscpu  C) nproc  D) All of the above

Correct Answer: D Rationale: cat /proc/cpuinfo displays detailed CPU information from the proc filesystem, lscpu formats it in a readable table, and nproc shows the number of processing cores. Q7. Which command displays memory information?  A) free - h  B) cat /proc/meminfo  C) vmstat  D) All of the above Correct Answer: D Rationale: free and vmstat display formatted memory information from /proc/meminfo. All three commands provide memory usage data in different formats. Q8. Which system call is used to create a new process in Linux?  A) fork()  B) exec()

Q10. Which command loads a kernel module?  A) modprobe module_name  B) insmod /path/to/module.ko  C) Both A and B  D) All of the above Correct Answer: C Rationale: modprobe handles dependencies and is the preferred method; insmod loads a single module without resolving dependencies. modprobe - r removes modules. Q11. Which command lists currently loaded kernel modules?  A) lsmod  B) cat /proc/modules  C) modinfo module  D) Both A and B Correct Answer: D Rationale: lsmod formats /proc/modules into a readable table. Both commands display loaded kernel modules. modinfo shows information about a specific module.

Q12. Which signal cannot be caught or ignored by a process?  A) SIGKILL (9)  B) SIGSTOP (19)  C) Both A and B  D) SIGTERM (15) Correct Answer: C Rationale: SIGKILL and SIGSTOP cannot be caught, blocked, or ignored by processes. SIGTERM can be caught and is the default signal sent by kill. Q13. Which command sends a SIGTERM to a process?  A) kill PID  B) kill - 15 PID  C) kill - TERM PID  D) All of the above Correct Answer: D Rationale: kill without a signal sends SIGTERM (15) by default. All forms specified will send SIGTERM to the process.

Rationale: The BIOS/UEFI initializes hardware, then loads the bootloader (GRUB), which loads the kernel into memory. SECTION II: LINUX INSTALLATION & PACKAGE MANAGEMENT (Questions 16-35) Q16. Which of the following Linux distributions is derived from Red Hat Enterprise Linux source code?  A) Ubuntu Linux LTS  B) Raspbian  C) CentOS  D) openSUSE Correct Answer: C Rationale: CentOS is derived from RHEL (Red Hat Enterprise Linux) source code, making it very similar in administration and usage to RHEL. Q17. Which package manager is used on Debian-based distributions?  A) apt

 B) yum  C) dnf  D) zypper Correct Answer: A Rationale: Debian-based distributions (Ubuntu, Debian) use APT (Advanced Package Tool) and dpkg. Red Hat- based distributions use yum/dnf and rpm. SUSE uses zypper. Q18. Which package manager is used on Red Hat-based distributions?  A) apt  B) yum/dnf  C) dpkg  D) zypper Correct Answer: B Rationale: Red Hat-based distributions (RHEL, CentOS, Fedora) use yum/dnf package managers with rpm as the underlying package format.

Q21. What does the command apt-get update do?  A) Updates the package index (list of available packages)  B) Upgrades installed packages  C) Installs a new package  D) Removes a package Correct Answer: A Rationale: apt-get update refreshes the package index from repositories. apt-get upgrade upgrades installed packages. apt-get install installs new packages. Q22. What does systemctl enable service-name do?  A) Starts the service immediately  B) Configures the service to start at boot  C) Stops the service  D) Disables the service Correct Answer: B Rationale: systemctl enable creates symlinks so the service starts at boot. systemctl start starts it

immediately. systemctl disable prevents it from starting at boot. Q23. Which command shows the current default systemd target (runlevel)?  A) systemctl get-default  B) runlevel  C) who - r  D) All of the above Correct Answer: D Rationale: systemctl get-default shows default target (e.g., graphical.target, multi- user.target). runlevel and who - r are legacy ways to view runlevel information. Q24. Which directory contains package-provided systemd unit files?  A) /etc/systemd/system/  B) /lib/systemd/system/  C) /usr/local/systemd/  D) /run/systemd/system/

 A) Installs Apache HTTP Server from a local file  B) Installs Apache HTTP Server from repositories  C) Removes Apache HTTP Server  D) Updates Apache HTTP Server Correct Answer: B Rationale: dnf install installs packages from configured repositories. httpd is the Apache web server package name in RHEL-based distributions. SECTION III: GNU & UNIX COMMANDS (Questions 27-60) Q27. Which command displays disk usage of mounted filesystems in human-readable format?  A) df - h  B) du - sh  C) lsblk  D) fdisk - l Correct Answer: A Rationale: df (disk free) shows filesystem usage; - h for human-readable format (e.g., 1G, 500M). du shows directory usage, lsblk lists block devices.

Q28. Which command checks disk usage of the current directory recursively?  A) df - h  B) du - sh  C) lsblk  D) fdisk - l Correct Answer: B Rationale: du (disk usage) with - sh shows the total size of the current directory. - s for summary, - h for human- readable. df shows filesystem usage, not directory usage. Q29. Which command displays disk partition tables?  A) fdisk - l  B) parted - l  C) lsblk  D) All of the above Correct Answer: D Rationale: fdisk - l, parted - l, and lsblk all display disk partition information in different formats. lsblk is often the most user-friendly.

Q32. Which of the following programs are web servers? (Choose two.)  A) Apache HTTPD  B) Postfix  C) Curl  D) Dovecot  E) NGINX Correct Answer: A, E Rationale: Apache HTTPD and NGINX are web servers. Postfix and Dovecot are mail servers. Curl is a command- line tool for transferring data. Q33. Which command displays a list of all file names under the home directory ending with .pdf?  A) find /home - name ".pdf"  B) find ~ - name ".pdf"  C) locate *.pdf  D) Both A and B Correct Answer: D

Rationale: find /home - name ".pdf" and find ~ - name ".pdf" both search for .pdf files. ~ is a shortcut for the user's home directory. Q34. What does the command grep - i "error" logfile do?  A) Finds lines containing "error" case-sensitively  B) Finds lines containing "error" case-insensitively  C) Counts lines containing "error"  D) Replaces "error" with "warning" Correct Answer: B Rationale: The - i flag makes grep case-insensitive. It will find "error", "Error", "ERROR", etc.. Q35. Which command shows all running processes?  A) ps aux  B) ps - ef  C) top  D) All of the above Correct Answer: D