CompTIA Linux+ (XK0-005) Practice Questions & Troubleshooting Exam Simulator
Master systemd units, LVM volume management, ext4 inodes, `ss`/`netdump` diagnostics, `visudo`, permissions (SetUID/ACLs), and storage troubleshooting across 45 scenarios.
Exam Code: XK0-005 | Track: Networking & Infrastructure | Recommended Course: CompTIA Linux+ & Systems Administration Track
Official Exam Blueprint & Domain Weights
- System Architecture & Processes: 20%
- Storage & File Management: 20%
- Networking & Security: 20%
- Services & Automation: 20%
- Troubleshooting & Performance: 20%
Open Sample Practice Questions & Rationales
Question 1 (System Architecture & Processes): A background service daemon on an enterprise Linux server consumes 100% CPU and becomes unresponsive. Which command sequence identifies the process PID and terminates it gracefully (`SIGTERM`) vs forcefully (`SIGKILL`)?
- A. 1. `pgrep -u nginx` or `top`/`htop` 2. `kill <PID>` (SIGTERM 15) 3. If stuck, `kill -9 <PID>` (SIGKILL 9)
- B. `rm -rf /`
- C. `systemctl reboot` immediately without checking PIDs
- D. `shutdown -h now`
Verified Answer (A): Finding the PID via `pgrep`/`ps` and issuing a polite `kill` (SIGTERM) allows clean process shutdown; SIGKILL (9) forces immediate kernel termination.
Question 2 (Storage & File Management): An administrator runs `df -h` and sees `/var` is at 100% disk usage, yet `du -sh /var/*` does not account for all missing Gigabytes. What is the most likely cause?
- A. Deleted open files: processes (like loggers) still hold file handles open to deleted log files, continuing to consume disk space until the holding process restarts
- B. The ext4 filesystem is corrupted and needs defragmentation
- C. Inodes were deleted while blocks remain active
- D. Swap memory filled up physical RAM
Verified Answer (A): When a file is unlinked (`rm`) while a process still has it open, the ext4 inode blocks remain allocated until the holding process closes the file descriptor or restarts. `lsof +L1` detects these.
Frequently Asked Questions
What are the highest-yield troubleshooting topics on CompTIA Linux+ (XK0-005)?
Expect multiple questions on `df -h` vs `df -i` (inode exhaustion), deleted open file handles holding disk space, `journalctl` systemd log filters, LVM resizing, and `chmod` SetUID permissions.