CompTIA Linux+ Certification - XK0-005 Exam Practice Test

Question 1
Which of the following statements is correct when talking about /proc/?

Correct Answer: D
Question 2
A systems administrator is editing a service file for the web server. In order to continue testing, all web server processes must be shut down. The administrator accomplishes this with the following commands:

Based on the command output above, which of the following BEST explains how this was accomplished?

Correct Answer: B
Question 3
A junior administrator updated the PostgreSQL service unit file per the database administrator's recommendation. The service has been restarted, but changes have not been applied. Which of the following should the administrator run for the changes to take effect?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 4
A systems administrator wants to check for running containers. Which of the following commands can be used to show this information?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 5
A systems administrator is tasked with creating a cloud-based server with a public IP address.

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

Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?

Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 7
The administrator comptia is not able to perform privileged functions on a newly deployed system.
Given the following command outputs:

Which of the following is the reason that the administrator is unable to perform the assigned duties?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
An administrator notices that a long-running script, /home/user/script.sh, is taking up a large number of system resources. The administrator does not know the script's function. Which of the following commands should the administrator use to minimize the script's impact on system resources?

Correct Answer: A
Question 9
An organization wants to consolidate its entire user information in centralized storage using an
X.500- based protocol. Which of the following protocols should be used for this implementation?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 10
A systems administrator needs to check the size of the filesystem on the current application servers and ensure that the following filesystems are mounted:
/var
/var/log/audit
/tmp
/home/application
Which of the following commands should the administrator use for these tasks?

Correct Answer: A
Question 11
A Linux administrator is creating a user that can run the FTP service but cannot log in to the system. The administrator sets /bin/false as a login shell for the user. When the user tries to run the FTP service, it is rejected with an "invalid shell: /bin/false" message. Which of the following is the best way to resolve the issue?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 12
An administrator clones a Git repository onto a local laptop. While inspecting the code, the administrator notices a bug and wants to fix it.
Which of the following is the BEST command for the administrator to use to test a patch for the prior to updating the version saved in master?

Correct Answer: A
Question 13
A systems administrator needs to compress log files using the .tar.bz2 format. Which of the following commands should the administrator use?

Correct Answer: B
Question 14
A systems administrator wants to disable the Linux Kernel WatchDog Timer Driver for security purposes.
Which of the following will accomplish this task?

Correct Answer: D
Question 15
When trying to log in remotely to a server, a user receives the following message:

The server administrator is investigating the issue on the server and receives the following outputs:

Which of the following is causing the issue?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).