XK0-005 Exam Questions

Total 361 Questions

Last Updated Exam : 15-Apr-2025

A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following output:


A.

Configure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.


B.

Configure a different nice value for the Java process to allow for more users and prevent the Java process from restarting during business hours.


C.

Configure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources.


D.

Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.





A.
  

Configure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.



After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?


A.

systemctl status


B.

systemctl stop


C.

systemctl reinstall


D.

systemctl daemon-reload





D.
  

systemctl daemon-reload



A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?


A.

kill -1


B.

kill -3


C.

kill -15


D.

kill -HUP


E.

kill -TERM





B.
  

kill -3



Joe, a user, is unable to log in to the Linux system. Given the following output:

Which of the following commands would resolve the issue?


A.

usermod -s /bin/bash joe


B.

pam_tally2 -u joe -r


C.

passwd -u joe


D.

chage -E 90 joe





A.
  

usermod -s /bin/bash joe



After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?


A.

dnf remove packagename


B.

apt-get remove packagename


C.

rpm -i packagename


D.

apt remove packagename





A.
  

dnf remove packagename



Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue.target mode for maintenance. Which of the following commands will restore the server to its usual target?


A.

telinit 0


B.

systemctl reboot


C.

systemctl get-default


D.

systemctl emergency





B.
  

systemctl reboot



A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems
...
Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs,
"systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.
Give root password for maintenance (or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?


A.

/etc/mtab


B.

/dev/sda


C.

/etc/fstab


D.

/ete/grub.conf





C.
  

/etc/fstab



A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?


B.

/etc/hostname


C.

/etc/services


D.

/etc/ssh/sshd_config





D.
  

/etc/ssh/sshd_config



A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?


A.

ss -pint


B.

tcpdump -nL


C.

netstat -pn


D.

lsof -It





C.
  

netstat -pn



A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:

Which of the following commands should replace the <CONDITIONAL> string?


A.

if [ -f "$filename" ]; then


B.

if [ -d "$filename" ]; then


C.

if [ -f "$filename" ] then


D.

if [ -f "$filename" ]; while





A.
  

if [ -f "$filename" ]; then




Page 10 out of 37 Pages
Previous