XK0-006 — Linux+ practice exam
Linux administration for servers and cloud: the boot process and filesystem layout, storage with LVM and RAID, networking, shell and text tools, users, permissions, processes, packages, systemd and containers, firewalls, SELinux and hardening, shell scripting, Python, Git, automation with Ansible, and troubleshooting. Written to the V8 objectives. The real exam has up to 90 questions in 90 minutes, including performance-based questions. Our mock uses 50 questions in 50 minutes, with 77% as the target.
- Questions
- 50
- Time limit
- 50 min
- Pass target
- 77%
Exam topics
- 1.0 System Management23%
- 2.0 Services and User Management20%
- 3.0 Security18%
- 4.0 Automation, Orchestration, and Scripting17%
- 5.0 Troubleshooting22%
Free XK0-006 sample questions
Try these 5 questions from the practice bank, then show the answer to see the explanation.
1. During boot, which component loads the kernel and the initial RAM disk into memory?
- A.The init system, such as systemd
- B.The package manager, such as dnf
- C.The display manager, such as GDM
- D.The bootloader, such as GRUB 2
Show answer
Correct answer: D. The bootloader, such as GRUB 2
A simplified Linux boot sequence:
- Firmware (UEFI or BIOS) runs and finds the bootloader.
- The bootloader (usually GRUB 2) loads the kernel and the initrd/initramfs, passing kernel parameters.
- The kernel starts, using the initramfs to load drivers needed to mount the real root filesystem.
- The kernel starts init, normally systemd (PID 1), which starts services and targets.
A display manager provides the graphical login screen, much later.
2. An administrator needs to find all files under /var/log larger than 100 MB. Which command does this?
- A.find /var/log -type f -size +100M
- B.grep -r 100M /var/log
- C.locate /var/log -size +100M
- D.ls -lR /var/log --min 100M
Show answer
Correct answer: A. find /var/log -type f -size +100M
find searches the filesystem live, with many tests:
-type f: regular files only.-size +100M: larger than 100 MiB.-mtime -7: modified in the last 7 days.-name "*.log": matching a name pattern.
locate searches a prebuilt database by name only, and has no size test.
grep -rsearches file contents.3. Which framework lets administrators configure how applications authenticate users, for example adding password complexity rules or account lockout for SSH logins, using modules?
- A.The Linux rsyslog logging daemon
- B.The Lightweight Directory Access Protocol
- C.The System Security Services Daemon
- D.Pluggable Authentication Modules (PAM)
Show answer
Correct answer: D. Pluggable Authentication Modules (PAM)
PAM provides a common, modular way for programs such as login, sshd and sudo to authenticate users. Configuration lives in /etc/pam.d/, with modules such as:
- pam_pwquality: password complexity.
- pam_faillock: lock accounts after failed attempts.
- pam_sss: authenticate against SSSD.
LDAP is a directory protocol, and SSSD connects Linux to directories such as Active Directory or LDAP. rsyslog handles logging.
4. A team wants to configure 200 servers by running tasks from one control machine over SSH, without installing an agent on each server. Which tool fits?
- A.Kickstart
- B.Puppet with agents
- C.Ansible
- D.Docker Swarm
Show answer
Correct answer: C. Ansible
Ansible is agentless: it connects over SSH and runs modules on the targets. Key concepts:
- Inventory: the list of hosts and groups.
- Playbooks: YAML files of tasks.
- Modules: units of work, such as installing a package.
- Facts: information gathered about each host.
Puppet traditionally uses agents that pull configuration from a server. Kickstart automates OS installation, and Docker Swarm orchestrates containers.
5. An administrator needs to view the logs for the nginx service since the last boot on a systemd-based server. Which command does this?
- A.systemctl list-units nginx
- B.journalctl -u nginx -b
- C.dmesg | grep nginx
- D.tail /var/log/nginx.conf
Show answer
Correct answer: B. journalctl -u nginx -b
journalctl reads the systemd journal:
-u nginx: entries for one unit.-b: since the current boot.-f: follow new entries live.--since "1 hour ago": a time range.-p err: errors and worse only.
dmesg shows the kernel ring buffer, not service logs. Services may also write their own files under /var/log.
Want the other 95 questions? Try XK0-006 free for 7 days
Full-length timed mock exams in exam or practice mode, with a hint tab, an explanation for every answer and progress tracking. No credit card needed.