Linux+ XK0-005 · Vendor-Neutral Linux Administration
90 questions · 90 min · 80% Techclick practice target
⚠️ Exam Rules
| Questions in this Techclick bank | 90 |
|---|---|
| Timer | 90 min |
| Techclick practice target | 80% |
| Official exam code | XK0-005 |
A new admin runs <code>service nginx restart</code> on a RHEL 9 server and the service does restart — but you want them using the modern, canonical tool that does NOT rely on a legacy wrapper. Which command is the BEST replacement?
Correct: A. On systemd distros, <code>service</code> is a compatibility wrapper that calls systemctl behind the scenes. The canonical command is <code>systemctl restart nginx</code>. <code>reload</code> only re-reads config without dropping connections — not the same as restart. <code>/etc/init.d/</code> is SysV legacy. <code>nginx -s restart</code> is not a valid nginx signal (valid ones are stop/quit/reload/reopen).
You created <code>/etc/systemd/system/backup.service</code> but <code>systemctl start backup</code> says "Unit backup.service not found." What is the FIRST command to run?
Correct: B. After creating or modifying any unit file in /etc/systemd/system/ you MUST run <code>systemctl daemon-reload</code> so systemd re-reads its unit graph. Without it, the unit is invisible. <code>systemctl restart systemd</code> is dangerous and unnecessary. <code>enable --now</code> would also fail with the same "not found" error until daemon-reload happens.
A junior admin sees the output below and asks why the service is not running. What is the correct interpretation? <pre>$ systemctl status nginx ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; preset: disabled) Active: inactive (dead)</pre>
Correct: B. "Loaded: loaded ... disabled" means the unit file is found and parsed, but it is NOT enabled (no boot-time symlink) and the preset is also disabled. "Active: inactive (dead)" means it is not currently running. <code>systemctl enable --now</code> both enables and starts in one shot.
You want a backup job to run every day at 02:00 with a randomised delay and persistent missed-run handling (so it still runs after a reboot if the system was down at 02:00). Which TWO systemd timer features achieve this? (Choose 2)
Correct: A and B. <code>OnCalendar</code> defines the schedule. <code>Persistent=true</code> tracks last-run time on disk and triggers a make-up run on the next boot if the timer was missed (this is exactly what crontab's anacron does, but built into systemd). <code>OnBootSec</code> would be a different trigger (boot-relative). <code>RandomizedDelaySec</code> is useful but not what the question asks for. There is no cron.target — timers depend on timers.target.
A systemd service has <code>Restart=on-failure</code> but a buggy app keeps crashing and respawning fast. Which directive PREVENTS systemd from giving up and marking the service as failed after too many restarts in too short a window?
Correct: A. systemd has a rate-limit: by default 5 starts in 10 seconds triggers a "start-limit-hit" and the unit is held down. Tune <code>StartLimitBurst</code> (how many) and <code>StartLimitIntervalSec</code> (over what window) in the [Unit] section. <code>RestartSec</code> only delays each retry — it does not change the burst threshold. Raising RestartSec helps but is not the directive that controls the giving-up behaviour.
Last updated:
Yes. You can start, finish and score it for free, and download the Techclick practice certificate.
This bank has 90 original scenario-based questions with a 90-minute timer and a 80% Techclick practice target.
The official exam code is XK0-005 (CompTIA).
No. They are original practice questions written by Techclick. This is not the vendor's official exam and not leaked dumps.
Score 80% or higher to get a Techclick practice certificate and LinkedIn badge. It is not an official CompTIA certification.
Related practice tests: CompTIA A+ 220-1101 / 220-1102, CompTIA CAS-005, CompTIA CLO-002, CompTIA CV0-004, CySA+ CS0-003, CompTIA A+ DA0-001 (linked below).

You earned it — let the world know!
