CompTIA XK0-005 Practice Exams
Last updated on Nov 16,2026- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Nov 16,2026
Which of the following data structures is written in JSON?
A)

B)

C)

D)

- A . Option A
- B . Option B
- C . Option C
- D . Option D
A systems administrator receives reports that several virtual machines in a host are responding slower than expected.
Upon further investigation, the administrator obtains the following output from one of the affected systems:

Which of the following best explains the reported issue?
- A . The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.
- B . The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.
- C . The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.
- D . The virtual machine is running out of CPU resources, leading to users experiencing longer response times.
A Linux system is failing to boot with the following error:

Which of the following actions will resolve this issue? (Choose two.)
- A . Execute grub-install –root-directory=/mnt and reboot.
- B . Execute grub-install /dev/sdX and reboot.
- C . Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
- D . Fix the partition modifying /etc/default/grub and reboot.
- E . Interrupt the boot process in the GRUB menu and add single to the kernel line.
- F . Boot the system on a LiveCD/ISO.
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots.
Which of the following commands will accomplish this task? (Choose two.)
- A . df -h /data
- B . mkfs.ext4 /dev/sdc1
- C . fsck /dev/sdc1
- D . fdisk -l /dev/sdc1
- E . echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
- F . echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
A Linux systems administrator needs to copy files and directories from Server A to Server B.
Which of the following commands can be used for this purpose? (Select TWO)
- A . rsyslog
- B . cp
- C . rsync
- D . reposync
- E . scp
- F . ssh
A Linux administrator is providing a new Nginx image from the registry to local cache.
Which of the following commands would allow this to happen?
- A . docker pull nginx
- B . docker attach nginx
- C . docker commit nginx
- D . docker import nginx
A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:
![]()
The local machine DNS settings are:

Which of the following commands could the engineer use to query the DNS server to get mail server information?
- A . dig @example.com 10.10.10.20 a
- B . dig @10.10.10.20 example.com mx
- C . dig @example.com 10.10.10.20 ptr
- D . dig @10.10.10.20 example.com ns
A Linux administrator is troubleshooting SSH connection issues from one of the workstations.
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:
![]()
The administrator reviews the information below:


Which of the following is causing the connectivity issue?
- A . The workstation has the wrong IP settings.
- B . The sshd service is disabled.
- C . The server’s firewall is preventing connections from being made.
- D . The server has an incorrect default gateway configuration.
A systems administrator is investigating an issue in which one of the servers is not booting up properly.
The journalctl entries show the following:

Which of the following will allow the administrator to boot the Linux system to normal mode quickly?
- A . Comment out the /opt/app filesystem in /etc/fstab and reboot.
- B . Reformat the /opt/app filesystem and reboot.
- C . Perform filesystem checks on local filesystems and reboot.
- D . Trigger a filesystem relabel and reboot.
Which of the following enables administrators to configure and enforce MFA on a Linux system?
- A . Kerberos
- B . SELinux
- C . PAM
- D . PKI