XK0-005 Practice Test

XK0-005 Practice Test practice questions, page 16 of 19, with answer review and explanations.

Question 76

Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages: Which of the following is causing the connection issue?

  1. The process mysqld is using too many semaphores.
  2. The server is running out of file descriptors.
  3. Something is starving the server resources.
  4. The amount of RAM allocated to the server is too high.

Question 77

A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?

  1. $RHOST
  2. SETENV
  3. $SHELL
  4. $DISPLAY

Question 78

A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

  1. Add #!/bin/bash to the bottom of the script.
  2. Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.
  3. Add #!//bin/bash to the top of the script.
  4. Restart the computer to enable the new service.
  5. Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.
  6. Shut down the computer to enable the new service.

Question 79

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

  1. chmod 755 filename.log
  2. chmod 640 filename.log
  3. chmod 740 filename.log
  4. chmod 744 filename.log

Question 80

After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

  1. chgrp system accountname
  2. passwd –s accountname
  3. chmod -G system account name
  4. chage -E -1 accountname