Free CompTIA XK0-005 Exam Questions (page: 8)

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/ nologin exists. Which of the following PAM modules will accomplish this task?

  1. pam_login.so
  2. pam_access.so
  3. pam_logindef.so
  4. pam_nologin.so

Answer(s): D



A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

  1. systemctl cancel nginx
  2. systemctl disable nginx
  3. systemctl mask nginx
  4. systemctl stop nginx

Answer(s): C



A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following outputs:



Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?

  1. Enable the logsearch.service and restart the service.
  2. Increase the TimeoutStartUSec configuration for the logsearch.sevice.
  3. Update the OnCalendar configuration to schedule the start of the logsearch.service.
  4. Update the KillSignal configuration for the logsearch.service to use TERM.

Answer(s): B



A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database

connection. The Linux administrator reviews the following relevant output from the systemd init files:



The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

  1. TRIGGERS=mariadb.service
  2. ONFAILURE=mariadb.service
  3. WANTEDBY=mariadb.service
  4. REQUIRES=mariadb.service

Answer(s): D



Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:



Which of the following commands should the administrator use to diagnose the issue?

  1. df -i /oracle1
  2. fdisk -1 /dev/sdb1
  3. lsblk /dev/sdb1
  4. du -sh /oracle1

Answer(s): A



Viewing page 8 of 97



Post your Comments and Discuss CompTIA XK0-005 exam prep with other Community members:

XK0-005 Exam Discussions & Posts