XK0-005 Practice Test

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

Question 81

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?

  1. visudo -c
  2. test -f /etc/sudoers
  3. sudo vi check
  4. cat /etc/sudoers | tee test

Question 82

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?

  1. scp ~/.ssh/id_rsa user@server:~/
  2. rsync ~ /.ssh/ user@server:~/
  3. ssh-add user server
  4. ssh-copy-id user@server

Question 83

A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?

  1. /etc/sysctl
  2. /etc/filesystems
  3. /etc/fstab
  4. /etc/nfsmount.conf

Question 84

A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands: Which of the following commands would address the issue?

  1. top -p 8321
  2. kill -9 8321
  3. renice -10 8321
  4. free 8321

Question 85

A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?

  1. dnf list and dnf remove last
  2. dnf remove and dnf check
  3. dnf info and dnf upgrade
  4. dnf history and dnf history undo last