XK0-005 Practice Test practice questions, page 7 of 19, with answer review and explanations.
Question 31
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?
pam_login.so
pam_access.so
pam_logindef.so
pam_nologin.so
Question 32
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?
systemctl cancel nginx
systemctl disable nginx
systemctl mask nginx
systemctl stop nginx
Question 33
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?
Enable the logsearch.service and restart the service.
Increase the TimeoutStartUSec configuration for the logsearch.sevice.
Update the OnCalendar configuration to schedule the start of the logsearch.service.
Update the KillSignal configuration for the logsearch.service to use TERM.
Question 34
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?
TRIGGERS=mariadb.service
ONFAILURE=mariadb.service
WANTEDBY=mariadb.service
REQUIRES=mariadb.service
Question 35
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?