XK0-005 Practice Test Questions

361 Questions


A junior Linux administrator is tasked with installing an application. The installation guide states the application should only be installed in a run level 5 environment.

Which of the following commands would ensure the server is set to runlevel 5?


A.

systemctl isolate multi-user.target


B.

systemctl isolate graphical.target


C.

systemctl isolate network.target


D.

systemctl isolate basic.target





B.
  

systemctl isolate graphical.target



A systems administrator is notified that the mysqld process stopped unexpectedly. The systems administrator issues the following command:
sudo grep –i -r ‘out of memory’ /var/log
The output of the command shows the following:
kernel: Out of memory: Kill process 9112 (mysqld) score 511 or sacrifice child.
Which of the following commands should the systems administrator execute NEXT to troubleshoot this issue? (Select two).


A.

free -h


B.

nc -v 127.0.0.1 3306


C.

renice -15 $( pidof mysql )


D.

lsblk


E.

killall -15


F.

vmstat -a 1 4





A.
  

free -h



C.
  

renice -15 $( pidof mysql )



A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?


A.

unzip -v


B.

bzip2 -z


C.

gzip


D.

funzip





C.
  

gzip



Which of the following tools is commonly used for creating CI/CD pipelines?


A.

Chef


B.

Puppet


C.

Jenkins


D.

Ansible





C.
  

Jenkins



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?


A.

systemctl cancel nginx


B.

systemctl disable nginx


C.

systemctl mask nginx


D.

systemctl stop nginx





C.
  

systemctl mask nginx



A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?


A.

rebase


B.

tag


C.

commit


D.

push





C.
  

commit



A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?


A.

route -e get to 192.168.1.40 from 10.0.2.15


B.

ip route get 192.163.1.40 from 10.0.2.15


C.

ip route 192.169.1.40 to 10.0.2.15


D.

route -n 192.168.1.40 from 10.0.2.15





B.
  

ip route get 192.163.1.40 from 10.0.2.15



A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?


A.

~/.sshd/authkeys


B.

~/.ssh/keys


C.

~/.ssh/authorized_keys


D.

~/.ssh/keyauth





C.
  

~/.ssh/authorized_keys



A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

Given this scenario, which of the following should the administrator do to address this issue?


A.

Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89


B.

Modify the /etc/network file and change the db.example.com entry to 192.168.20.88


C.

Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.


D.

Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.





A.
  

Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89



A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?


A.

grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service


B.

cat /etc/systemd/journald.conf | awk '(print $1,$3)'


C.

sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/ˆ#//q'
/etc/systemd/journald.conf


D.

journalctl --list-boots && systemctl restart systemd-journald.service





A.
  

grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service



A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:

Which of the following commands will the administrator most likely run NEXT?


A.

vmstat


B.

strace


C.

htop


D.

lsof





A.
  

vmstat



A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?


A.

apt-get upgrade


B.

rpm -a


C.

yum updateinfo


D.

dnf update


E.

yum check-update





D.
  

dnf update




Page 7 out of 31 Pages
Previous