• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 37 páginas
Examen

CompTIA Linux Plus XK QA Practice Exam Verified Complete

Document preview thumbnail
Vista previa 4 fuera de 37 páginas

CompTIA Linux+ XK — 60 Q&A Practice Exam Verified Answers

Vista previa del contenido

CompTIA Linux+ XK0-005 2025 — 60 Q&A Practice Exam
Verified Answers

Series:
CrashCourses Professional Study Series

Author:
Dr Z. Moomba, MBChB, MRCPsych | BethelWellness Ltd

Exam Target:
CompTIA Linux Plus XK0-005

Year:
2025/2026

Format:
60 Questions with Verified Answers and Rationales


>
Author's Note:
This document is an original work produced for the CrashCourses Professional Study Series.
Clinical questions and professional scenarios were composed by Dr Z. Moomba based on current
exam objectives, published guidelines, and evidence-based sources (2024–2025). All patient
names, ages, and case details are fictional. Any resemblance to existing published Q&A banks is
coincidental. For personal study use only — not for reproduction or redistribution.


SECTION A — FOUNDATIONS

Question 1
A bioinformatics system administrator at Royal Hope Hospital needs to ensure a custom DNA
sequencing daemon, `seq-analyzer`, automatically restarts if it crashes due to an out-of-memory
exception. The Linux server utilises `systemd`. Which directive should be added to the `[Service]`
section of the unit file?
A) `Restart=always`
B) `Restart=on-failure`
C) `AutoRestart=true`
D) `Respawn=yes`



,Answer: B

Rationale:
a) The `Restart=on-failure` directive instructs systemd to restart the service only if it exits with a
non-zero exit code or is terminated by a signal.
b) The scenario explicitly notes a crash (out-of-memory exception), which generates a failure
state, making `on-failure` the precise target.
c) `Restart=always` is a tempting wrong answer, but it would also restart the daemon even upon a
clean, intentional manual stop (exit code 0), which is poor practice for maintenance windows.
d) Systemd unit files are the definitive standard for modern Linux daemon management. [CompTIA
XK0-005 Objectives 2025]


Question 2
During a routine audit of the hospital’s Electronic Health Record (EHR) database server, Dr Patel
notices the system is booting into the graphical interface, consuming unnecessary RAM. He
wishes to change the default boot target to the multi-user, non-graphical runlevel equivalent.
Which command achieves this?
A) `systemctl set-default multi-user.target`
B) `systemctl isolate multi-user.target`
C) `grub2-mkconfig -o /boot/grub2/grub.cfg`
D) `telinit 3`

Answer: A

Rationale:
a) `systemctl set-default` establishes a permanent symlink for the default target that systemd uses
upon boot.
b) The administrator requires a permanent change to the default boot behaviour, making `set-
default` necessary.
c) `systemctl isolate` is tempting as it changes the current state immediately, but it does not
survive a reboot.
d) The multi-user.target replaces the legacy SysVinit runlevel 3. [Red Hat Sysadmin Guide 2024]


Question 3





,A patient telemetry server is experiencing sudden kernel panics. The IT clinician needs to review
kernel messages from the previous boot to diagnose the hardware fault. Which command
retrieves this specific data?
A) `dmesg --previous`
B) `journalctl -b -1 -k`
C) `cat /var/log/messages | grep kernel`
D) `journalctl -u kernel.service`

Answer: B

Rationale:
a) `journalctl` interfaces with the systemd-journald service. The `-b -1` flag specifies the previous
boot, and `-k` filters specifically for kernel messages.
b) Reviewing a previous boot requires persistent logging and specific boot indexing (`-b -1`), which
journalctl handles natively.
c) `dmesg` is a tempting wrong answer for viewing kernel ring buffers, but it only displays
messages for the current active boot session.
d) Persistent journal configuration requires the `/var/log/journal` directory to exist or
`Storage=persistent` in `journald.conf`. [NIST 800-92]


Question 4
You are managing scheduled maintenance tasks for the hospital's Picture Archiving and
Communication System (PACS). A script must run every night at 03:00 to purge old temporary
image caches. Which `crontab` entry correctly schedules this job?
A) `0 3 * /opt/pacs/purge.sh`
B) `3 0 * /opt/pacs/purge.sh`
C) ` 3 /opt/pacs/purge.sh`
D) `0 3 1 /opt/pacs/purge.sh`

Answer: A

Rationale:
a) The crontab format is `minute hour day_of_month month day_of_week`. `0 3 *` translates to
minute 0, hour 3 (03:00 AM), every day.
b) The requirement is specifically "every night at 03:00," requiring wildcards for the day/month
fields.



, c) ` 3 ` is tempting, but it would run the script every minute during the 3 AM hour (60 times).
d) Automated tasks running as root should use absolute paths to prevent PATH hijacking. [CIS
Linux Benchmarks 2024]


Question 5
The hospital's central scheduling application has locked up, causing a CPU spike. A technician
uses `top` and identifies the PID as 4402. They wish to gracefully terminate the application to
allow it to close open database connections. Which command is safest?
A) `kill -9 4402`
B) `kill -15 4402`
C) `pkill -f 4402`
D) `killall -SIGKILL 4402`

Answer: B

Rationale:
a) `kill -15` sends the SIGTERM signal, which asks the process to terminate gracefully, allowing it
to close files and network sockets.
b) The clinical imperative is to "allow it to close open database connections," requiring a graceful
exit.
c) `kill -9` (SIGKILL) is tempting for a locked application, but it forcibly destroys the process
without cleanup, risking database corruption.
d) Always attempt SIGTERM (15) before escalating to SIGKILL (9). [CompTIA XK0-005 Objectives
2025]


Question 6
A massive epidemiological data processing job is bogging down the research department's shared
server. You need to lower the CPU priority of the already running process (PID 8820) so
interactive clinical users aren't affected. Which command achieves this?
A) `nice -n 10 8820`
B) `renice +10 -p 8820`
C) `chrt -p 10 8820`
D) `systemctl set-property 8820 CPUWeight=10`

Answer: B

Información del documento

Estudio
Subido en
23 de marzo de 2026
Número de páginas
37
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$18.98

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
CrashCourses
4.7
(9)
Vendido
145
Seguidores
49
Artículos
664
Última venta
7 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes