XK0-005 Online Practice Questions

Home / CompTIA / XK0-005

Latest XK0-005 Exam Practice Questions

The practice questions for XK0-005 exam was last updated on 2025-06-03 .

Viewing page 1 out of 12 pages.

Viewing questions 1 out of 62 questions.

Question#1

A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems
...
Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.
Give root password for maintenance
(or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?

A. /etc/mtab
B. /dev/sda
C. /etc/fstab
D. /ete/grub.conf

Question#2

In which of the following filesystems are system logs commonly stored?

A. /var
B. /tmp
C. /etc
D. /opt

Question#3

A systems administrator needs to check if the service systemd-resolved.service is running without any errors.
Which of the following commands will show this information?

A. systemctl status systemd-resolved.service
B. systemctl enable systemd-resolved.service
C. systemctl mask systemd-resolved.service
D. systemctl show systemd-resolved.service

Question#4

A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid.
Which of the following commands can be used for this task?

A. visudo -c
B. test -f /etc/sudoers
C. sudo vi check
D. cat /etc/sudoers | tee test

Question#5

A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect.
Which of the following would the administrator do to complete this requirement?

A. hostnamectl status --no-ask-password
B. hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
C. hostnamectl set-hostname Comptia-WebNode -H [email protected]
D. hostnamectl set-hostname Comptia-WebNode --transient

Exam Code: XK0-005Q & A: 223 Q&AsUpdated:  2025-06-03

 Get All XK0-005 Q&As