CompTIA XK0-005 Exam (page: 6)
CompTIA Linux+
Updated on: 25-Dec-2025

Viewing Page 6 of 61

A Linux administrator is troubleshooting the root cause of a high CPU load and average.



Which of the following commands will permanently resolve the issue?

  1. renice -n -20 6295
  2. pstree -p 6295
  3. iostat -cy 1 5
  4. kill -9 6295

Answer(s): D



A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

  1. chmod 4744 dev_team.txt
  2. chmod 744 --setuid dev_team.txt
  3. chmod -c 744 dev_team.txt
  4. chmod -v 4744 --suid dev_team.txt

Answer(s): A



A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:



Which of the following commands can be used to resolve this issue?

  1. chgrp -R 755 data/
  2. chmod -R 777 data/
  3. chattr -R -i data/
  4. chown -R data/

Answer(s): C



A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

  1. docker image load java:7
  2. docker image pull java:7
  3. docker image import java:7
  4. docker image build java:7

Answer(s): B



A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

  1. Cloud-init
  2. Bash
  3. Docker
  4. Sidecar

Answer(s): A



A systems administrator is tasked with creating a cloud-based server with a public IP address.

The code is as follows:



Which of the following technologies did the systems administrator use to complete this task?

  1. Puppet
  2. Git
  3. Ansible
  4. Terraform

Answer(s): C



A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:



Which of the following commands will BEST resolve this issue?

  1. sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  2. restorecon -R -v /var/www/html
  3. setenforce 0
  4. setsebool -P httpd_can_network_connect_db on

Answer(s): B



To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

  1. Add the line DenyUsers root to the /etc/hosts.deny file.
  2. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
  3. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
  4. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

Answer(s): B



Viewing Page 6 of 61



Share your comments for CompTIA XK0-005 exam with other users:

soheib 7/24/2023 7:05:00 PM

question: 78 the right answer i think is d not a
Anonymous