πŸ”

XK0-005 β€” questions

Page 5 of 14 Β· 263 total questions.

Topic 1 Β· 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?

  • A/etc/sysctl
  • B/etc/filesystems
  • C/etc/fstab (correct answer)
  • D/etc/nfsmount.conf
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: /etc/fstab

Topic 1 Β· 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?

Exhibit 1 for question 84
  • Atop -p 8321
  • Bkill -9 8321 (correct answer)
  • Crenice -10 8321
  • Dfree 8321
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: kill -9 8321

Topic 1 Β· 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?

  • Adnf list and dnf remove last
  • Bdnf remove and dnf check
  • Cdnf info and dnf upgrade
  • Ddnf history and dnf history undo last (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: dnf history and dnf history undo last

Topic 1 Β· 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?

Exhibit 1 for question 86
  • Arestorecon .ssh/authorized_keys (correct answer)
  • Bssh_keygen -t rsa -o .ssh/authorized_keys
  • Cchown root:root .ssh/authorized_keys
  • Dchmod 600 .ssh/authorized_keys
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: restorecon .ssh/authorized_keys

Topic 1 Β· 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?

  • Adocker images prune -a (correct answer)
  • Bdocker push images -a
  • Cdocker rmi -a images
  • Ddocker images rmi --all
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: docker images prune -a

Topic 1 Β· Question 88 Β· Select all that apply

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

Exhibit 1 for question 88
  • AExecute grub-install --root-directory=/mnt and reboot.
  • BExecute grub-install /dev/sdX and reboot. (correct answer)
  • CInterrupt the boot process in the GRUB menu and add rescue to the kernel line.
  • DFix the partition modifying /etc/default/grub and reboot.
  • EInterrupt the boot process in the GRUB menu and add single to the kernel line.
  • FBoot the system on a LiveCD/ISO. (correct answer)
Reveal answer & explanation
Correct answer: B, F

The correct answer is B, F. Option B: Execute grub-install /dev/sdX and reboot. Option F: Boot the system on a LiveCD/ISO.

Topic 1 Β· 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?

  • Add of=/dev/sda if=/tmp/sda.img
  • Bdd if=/dev/sda of=/tmp/sda.img (correct answer)
  • Cdd --if=/dev/sda --of=/tmp/sda.img
  • Ddd --of=/dev/sda --if=/tmp/sda.img
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: dd if=/dev/sda of=/tmp/sda.img

Topic 1 Β· 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?

  • Asudo fdisk /dev/sda
  • Bsudo fdisk -s /dev/sda
  • Csudo fdisk -l (correct answer)
  • Dsudo fdisk -h
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: sudo fdisk -l

Topic 1 Β· Question 91

A systems administrator is investigating why one of the servers has stopped connecting to the internet. Which of the following is causing the issue?

Exhibit 1 for question 91
  • AThe DNS address has been commented out in the configuration file. (correct answer)
  • BThe search entry in the /etc/resolv.conf file is incorrect.
  • CWired connection 1 is offline.
  • DNo default route is defined.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The DNS address has been commented out in the configuration file.

Explanation

DNS resolves host names to records such as IP addresses and service locations.

Topic 1 Β· Question 92

A systems administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive. Which of the following commands will help the administrator accomplish this task?

  • Agrub-install /dev/hda
  • Bgrub-install /dev/sda (correct answer)
  • Cgrub-install /dev/sr0
  • Dgrub-install /dev/hd0,0
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: grub-install /dev/sda

Topic 1 Β· Question 93

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?

Exhibit 1 for question 93
  • Asystemctl isolate multi-user.target
  • Bsystemctl isolate graphical.target (correct answer)
  • Csystemctl isolate network.target
  • Dsystemctl isolate basic.target
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: systemctl isolate graphical.target

Topic 1 Β· Question 94

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

  • Asudo useradd -e 2021-09-30 Project_user (correct answer)
  • Bsudo useradd -c 2021-09-30 Project_user
  • Csudo modinfo -F 2021-09-30 Project_uses
  • Dsudo useradd -m -d 2021-09-30 Project_user
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: sudo useradd -e 2021-09-30 Project_user

Topic 1 Β· Question 95

A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?

  • Agit clone https://git.company.com/admin/project.git (correct answer)
  • Bgit checkout https://git.company.com/admin/project.git
  • Cgit pull https://git.company.com/admin/project.git
  • Dgit branch https://git.company.com/admin/project.git
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: git clone https://git.company.com/admin/project.git

Explanation

Git provides distributed source control with branching, history, and collaborative change tracking.

Topic 1 Β· Question 96

An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?

  • Aecho 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile (correct answer)
  • Becho 'export PATH=/opt/operations1/bin' >> /etc/profile
  • Cecho 'export PATH=$PATH/opt/operations1/bin' >> /etc/profile
  • Decho 'export $PATH:/opt/operations1/bin' >> /etc/profile
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: echo 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile

Topic 1 Β· Question 97 Β· Select all that apply

A Linux system is getting an error indicating the root filesystem is full. Which of the following commands should be used by the systems administrator to resolve this issue? (Choose three.)

  • Adf -h / (correct answer)
  • Bfdisk -1 /dev/sdb
  • Cgrowpart /dev/mapper/rootvg-rootlv
  • Dpvcreate /dev/sdb
  • Elvresize –L +10G -r /dev/mapper/rootvg-rootlv (correct answer)
  • Flsblk /dev/sda
  • Gparted -l /dev/mapper/rootvg-rootlv
  • Hvgextend /dev/rootvg /dev/sdb (correct answer)
Reveal answer & explanation
Correct answer: A, E, H

The correct answer is A, E, H. Option A: df -h / Option E: lvresize –L +10G -r /dev/mapper/rootvg-rootlv Option H: vgextend /dev/rootvg /dev/sdb

Topic 1 Β· Question 98

A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?

  • Adocker cp container_id/deployment.yaml deployment.yaml
  • Bdocker cp container_id:/deployment.yaml deployment.yaml (correct answer)
  • Cdocker cp deployment.yaml local://deployment.yaml
  • Ddocker cp container_id/deployment.yaml local://deployment.yaml
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: docker cp container_id:/deployment.yaml deployment.yaml

Explanation

A container packages an application and dependencies while sharing the host kernel for lightweight isolation.

Topic 1 Β· Question 99 Β· Select all that apply

A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two.)

  • AExecute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
  • BInterrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line. (correct answer)
  • CInterrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line. (correct answer)
  • DInterrupt the boot process in the GRUB menu and add single=user in the kernel line.
  • EInterrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
  • FInterrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line. Option C: Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.

Topic 1 Β· Question 100

A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?

  • Aiptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
  • Biptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT (correct answer)
  • Ciptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
  • Diptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT

Topic 1 Β· Question 101

A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?

  • Anslookup
  • Brsynс
  • Cnetstat
  • Dhost (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: host

Topic 1 Β· Question 102

A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration: Which of the following is MOST likely the cause of the issue?

Exhibit 1 for question 102
  • AAn internal-only DNS server is configured.
  • BThe IP netmask is wrong for ens3. (correct answer)
  • CTwo default routes are configured.
  • DThe ARP table contains incorrect entries.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The IP netmask is wrong for ens3.

Showing questions 81–100 of 263 Β· Page 5 of 14