XK0-005 Practice Test Questions

361 Questions


A systems administrator is investigating why one of the servers has stopped connecting to the internet.

Which of the following is causing the issue?


A.

The DNS address has been commented out in the configuration file.


B.

The search entry in the /etc/resolv.conf file is incorrect.


C.

Wired connection 1 is offline.


D.

No default route is defined.





A.
  

The DNS address has been commented out in the configuration file.



A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?


A.

fg


B.

su


C.

bg


D.

ed





A.
  

fg



Explanation: Ctrl+Z suspended the process, and "fg" will bring it back into the foreground of the shell

Based on an organization’s new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.

To which of the following configuration files will the required changes need to be made?


A.

/etc/login.defs


B.

/etc/security/limits.conf


C.

/etc/default/useradd


D.

/etc/profile





A.
  

/etc/login.defs



A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?


A.

vgs


B.

lvs


C.

fdisk -1


D.

pvs





D.
  

pvs



Which of the following commands is used to configure the default permissions for new files?


A.

setenforce


B.

sudo


C.

umask


D.

chmod





C.
  

umask



A systems administrator is investigating an issue in which one of the servers is not booting up properly. The journalctl entries show the following:

Which of the following will allow the administrator to boot the Linux system to normal mode quickly?


A.

Comment out the /opt/app filesystem in /etc/fstab and reboot.


B.

Reformat the /opt/app filesystem and reboot.


C.

Perform filesystem checks on local filesystems and reboot.


D.

Trigger a filesystem relabel and reboot.





A.
  

Comment out the /opt/app filesystem in /etc/fstab and reboot.



A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?


A.

visudo -c


B.

test -f /etc/sudoers


C.

sudo vi check


D.

cat /etc/sudoers | tee test





A.
  

visudo -c



A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?


A.

docker rm --all


B.

docker rm $(docker ps -aq)


C.

docker images prune *


D.

docker rm --state exited





D.
  

docker rm --state exited



In which of the following filesystems are system logs commonly stored?


A.

/var


B.

/tmp


C.

/etc


D.

/opt





A.
  

/var



A Linux system is failing to boot with the following error:

Which of the following actions will resolve this issue? (Choose two.)


A.

Execute grub-install --root-directory=/mnt and reboot.


B.

Execute grub-install /dev/sdX and reboot.


C.

Interrupt the boot process in the GRUB menu and add rescue to the kernel line.


D.

Fix the partition modifying /etc/default/grub and reboot.


E.

Interrupt the boot process in the GRUB menu and add single to the kernel line.


F.

Boot the system on a LiveCD/ISO.





B.
  

Execute grub-install /dev/sdX and reboot.



D.
  

Fix the partition modifying /etc/default/grub and reboot.



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




Page 6 out of 31 Pages
Previous