XK0-005 Exam Questions

Total 361 Questions

Last Updated Exam : 16-Dec-2024

A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?


A.

scp ~/.ssh/id_rsa user@server:~/


B.

rsync ~ /.ssh/ user@server:~/


C.

ssh-add user server


D.

ssh-copy-id user@server





D.
  

ssh-copy-id user@server



A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?


A.

ufw allow out dns


B.

systemctl reload firewalld


C.

iptables -A OUTPUT -p udp -ra udp -dport 53 -j ACCEPT


D.

flrewall-cmd --zone-public --add-port-53/udp --permanent





D.
  

flrewall-cmd --zone-public --add-port-53/udp --permanent



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




Page 8 out of 37 Pages
Previous