XK0-005 Practice Test

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

Question 86

An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password. However, the SSH command still asked for the password. Given the following output: Which of the following commands would resolve the issue?

  1. restorecon .ssh/authorized_keys
  2. ssh_keygen -t rsa -o .ssh/authorized_keys
  3. chown root:root .ssh/authorized_keys
  4. chmod 600 .ssh/authorized_keys

Question 87

A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?

  1. docker images prune -a
  2. docker push images -a
  3. docker rmi -a images
  4. docker images rmi --all

Question 88

A Linux system is failing to boot with the following error: Which of the following actions will resolve this issue? (Choose two.)

  1. Execute grub-install --root-directory=/mnt and reboot.
  2. Execute grub-install /dev/sdX and reboot.
  3. Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
  4. Fix the partition modifying /etc/default/grub and reboot.
  5. Interrupt the boot process in the GRUB menu and add single to the kernel line.
  6. Boot the system on a LiveCD/ISO.

Question 89

A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

  1. dd of=/dev/sda if=/tmp/sda.img
  2. dd if=/dev/sda of=/tmp/sda.img
  3. dd --if=/dev/sda --of=/tmp/sda.img
  4. dd --of=/dev/sda --if=/tmp/sda.img

Question 90

A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?

  1. sudo fdisk /dev/sda
  2. sudo fdisk -s /dev/sda
  3. sudo fdisk -l
  4. sudo fdisk -h