Download CompTIA Linux+ Certification Exam.XK0-005.CertDumps.2025-11-25.345q.tqb

Vendor: CompTIA
Exam Code: XK0-005
Exam Name: CompTIA Linux+ Certification Exam
Date: Nov 25, 2025
File Size: 9 MB

How to open TQB files?

Files with TQB (Taurus Question Bank) extension can be opened by Taurus Exam Studio.

Demo Questions

Question 1
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?
  1. The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.
  2. The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.
  3. The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.
  4. The virtual machine is running out of CPU resources, leading to users experiencing longer response times.
Correct answer: A
Explanation:
A: 3 - Mosted
A: 3 - Mosted
Question 2
A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:
Which of the following would most likely resolve the issue while maintaining a least privilege security model?
  1. User1 should be added to the wheel group to manage the service.
  2. User1 should have "NOPASSWD:" after the "ALL=" in the custom.conf.
  3. The wheel line in the custom.conf file should be uncommented.
  4. Webadmin should be listed as a group in the custom.conf file.
Correct answer: D
Explanation:
B: 4D: 5 - Mosted
B: 4D: 5 - Mosted
Question 3
The security team has identified a web service that is running with elevated privileges. A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:
[Unit]
Description=CompTIA server daemon
Documentation=man:webserver(8) man:webserver_config(5)
After=network.target -
[Service]
Type=notify -
EnvironmentFile=/etc/webserver/config
ExecStart=/usr/sbin/webserver -D $OPTIONS
ExecReload=/bin/kill -HUP SMAINPID
KillMode=process -
Restart=on-failure -
RestartSec=42s -
[Install]
WantedBy=multi-user.target -
Which of the following remediation steps will prevent the web service from running as a privileged user?
  1. Removing the ExecStart=/usr/sbin/webserver -D $OPTIONS from the service file
  2. Updating the EnvironmentFile line in the [Service] section to /home/webservice/config
  3. Adding the User=webservice to the [Service] section of the service file
  4. Changing the multi-user.target in the [Install] section to basic.target
Correct answer: C
Explanation:
C: 1 - Mosted
C: 1 - Mosted
Question 4
A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following:
# grep -iE '*www*|db' /etc/passwd
www-data:x:502:502:www-data:/var/www:/bin/bash
db:x:505:505:db:/opt/db:/bin/bash
Which of the following commands would resolve the security issue?
  1. usermod -d /srv/www-data www-data && usermod -d /var/lib/db db
  2. passwd -u www-data && passwd -u db
  3. renice -n 1002 -u 502 && renice -n 1005 -u 505
  4. chsh -s /bin/false www-data && chsh -s /bin/false db
Correct answer: D
Explanation:
D: 5 - Mosted
D: 5 - Mosted
Question 5
The group owner of the /home/test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?
  1. chmod g+s /home/test
  2. chgrp test /home/test
  3. chmod 777 /home/test
  4. chown -hR test /home/test
Correct answer: A
Explanation:
A: 3 - Mosted
A: 3 - Mosted
Question 6
A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-a. Which of the following commands should the administrator use?
  1. ln -s /usr/local/bin/app-a /usr/local/share/app-a
  2. mv -f /usr/local/share/app-a /usr/local/bin/app-a
  3. cp -f /usr/local/share/app-a /usr/local/bin/app-a
  4. rsync -a/usr/local/share/app-a /usr/local/bin/app-a
Correct answer: A
Explanation:
A: 1 - Mosted
A: 1 - Mosted
Question 7
Due to performance issues on a server, a Linux administrator needs to terminate an unresponsive process. Which of the following commands should the administrator use to terminate the process immediately without waiting for a graceful shutdown?
  1. kill -SIGKILL 5545
  2. kill -SIGTERM 5545
  3. kill -SIGHUP 5545
  4. kill -SIGINT 5545
Correct answer: A
Explanation:
A: 3 - Mosted
A: 3 - Mosted
Question 8
A Linux administrator needs to transfer a local file named accounts.pdf to a remote /tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?
  1. rsync [email protected]:/tmp accounts.pdf
  2. scp accounts.pdf [email protected]:/tmp
  3. cp [email protected]:/tmp accounts.pdf
  4. ssh accounts.pdf [email protected]:/tmp
Correct answer: B
Explanation:
A: 1B: 2
A: 1B: 2
Question 9
A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?
  1. sudo passwd
  2. sudo userdel
  3. sudo chage
  4. sudo usermod
Correct answer: A
Explanation:
A: 5 - MostedD: 1
A: 5 - MostedD: 1
Question 10
Which of the following commands should a technician use to create an administrative account for the username Joe?
  1. sudo useradd -G wheel joe
  2. sudo useradd joe; sudo passwd -l joe
  3. sudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys
  4. sudo useradd joe; groupadd admin joe
Correct answer: A
Explanation:
A: 2 - Mosted
A: 2 - Mosted
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!