πŸ”

XK0-005 β€” questions

Page 7 of 14 Β· 263 total questions.

Topic 1 Β· Question 123

One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided: Given this scenario, which of the following should the administrator do to recover this volume?

Exhibit 1 for question 123
  • AReboot the server. The volume will automatically go back to linear mode.
  • BReplace the failed drive and reconfigure the mirror. (correct answer)
  • CReboot the server. The volume will revert to stripe mode.
  • DRecreate the logical volume.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Replace the failed drive and reconfigure the mirror.

Topic 1 Β· Question 124

A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?

  • Adocker image save test test:v1
  • Bdocker image build test:vl
  • Cdocker image tag test test:vl (correct answer)
  • Ddocker image version test:v1
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: docker image tag test test:vl

Topic 1 Β· Question 125

A Linux systems administrator receives a notification that one of the server’s filesystems is full. Which of the following commands would help the administrator to identify this filesystem?

  • Alsblk
  • Bfdisk
  • Cdf -h (correct answer)
  • Ddu -ah
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: df -h

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

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).

  • Afree -h (correct answer)
  • Bnc -v 127.0.0.1 3306
  • Crenice -15 $( pidof mysql )
  • Dlsblk
  • Ekillall -15
  • Fvmstat -a 1 4 (correct answer)
Reveal answer & explanation
Correct answer: A, F

The correct answer is A, F. Option A: free -h Option F: vmstat -a 1 4

Topic 1 Β· Question 127

Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue.target mode for maintenance. Which of the following commands will restore the server to its usual target?

  • Atelinit 0
  • Bsystemctl reboot (correct answer)
  • Csystemctl get-default
  • Dsystemctl emergency
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: systemctl reboot

Topic 1 Β· Question 128

A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server. When adding the address, the following error appears: # ip address add 192.168.168.1/33 dev eth0 Error: any valid prefix is expected rather than "192.168.168.1/33". Based on the command and its output above, which of the following is the cause of the issue?

  • AThe CIDR value /33 should be /32 instead. (correct answer)
  • BThere is no route to 192.168.168.1/33.
  • CThe interface eth0 does not exist.
  • DThe IP address 192.168.168.1 is already in use.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The CIDR value /33 should be /32 instead.

Topic 1 Β· Question 129

A Linux user reported the following error after trying to connect to the system remotely: ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable The Linux systems administrator executed the following commands in the Linux system while trying to diagnose this issue: Which of the following commands will resolve this issue?

Exhibit 1 for question 129
  • Afirewall-cmd --zone=public --permanent --add-service=22
  • Bsystemctl enable firewalld; systemctl restart firewalld
  • Cfirewall-cmd --zone=public --permanent --add-service=ssh (correct answer)
  • Dfirewall-cmd --zone=public --permanent --add-port=22/udp
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: firewall-cmd --zone=public --permanent --add-service=ssh

Explanation

A firewall enforces traffic policy by permitting or blocking connections based on configured rules.

Topic 1 Β· Question 130

A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?

  • Aapt-get upgrade
  • Brpm -a
  • Cyum updateinfo
  • Ddnf update (correct answer)
  • Eyum check-update
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: dnf update

Topic 1 Β· Question 131

A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

  • Apartprobe vgcreate lvextend
  • Blvcreate fdisk partprobe
  • Cfdisk partprobe mkfs
  • Dfdisk pvcreate vgextend (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: fdisk pvcreate vgextend

Topic 1 Β· Question 132

Which of the following directories is the mount point in a UEFI system?

  • A/sys/efi
  • B/boot/efi (correct answer)
  • C/efi
  • D/etc/efi
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: /boot/efi

Topic 1 Β· Question 133

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?

  • Arebase
  • Btag
  • Ccommit
  • Dpush (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: push

Topic 1 Β· Question 134

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?

  • Avgs
  • Blvs (correct answer)
  • Cfdisk -1
  • Dpvs
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: lvs

Topic 1 Β· Question 135

A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?

  • Apull -> push -> add -> checkout
  • Bpull -> add -> commit -> push (correct answer)
  • Ccheckout -> push -> add -> pull
  • Dpull -> add -> push -> commit
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: pull -> add -> commit -> push

Topic 1 Β· Question 136

A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/usb?

  • Amount /dev/sdb1 /media/usb (correct answer)
  • Bmount /dev/sdb0 /media/usb
  • Cmount /dev/sdb /media/usb
  • Dmount -t usb /dev/sdb1 /media/usb
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: mount /dev/sdb1 /media/usb

Topic 1 Β· Question 137

User1 is a member of the accounting group. Members of this group need to be able to execute but not make changes to a script maintained by User2. The script should not be accessible to other users or groups. Which of the following will give proper access to the script?

  • Achown user2:accounting script.sh chmod 750 script.sh (correct answer)
  • Bchown user1:accounting script.sh chmod 777 script.sh
  • Cchown accounting:user1 script.sh chmod 057 script.sh
  • Dchown user2:accounting script.sh chmod u+x script.sh
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: chown user2:accounting script.sh chmod 750 script.sh

Topic 1 Β· Question 138

A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?

  • Adocker image inspect
  • Bdocker container inspect
  • Cdocker exec ls (correct answer)
  • Ddocker ps
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: docker exec ls

Topic 1 Β· Question 139

A Linux administrator is reviewing changes to a configuration file that includes the following section: The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?

Exhibit 1 for question 139
  • AMarkdown
  • BXML
  • CYAMLD. JSON (correct answer)
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: YAMLD. JSON

Topic 1 Β· Question 140

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?

Exhibit 1 for question 140
  • AComment out the /opt/app filesystem in /etc/fstab and reboot. (correct answer)
  • BReformat the /opt/app filesystem and reboot.
  • CPerform filesystem checks on local filesystems and reboot.
  • DTrigger a filesystem relabel and reboot.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Comment out the /opt/app filesystem in /etc/fstab and reboot.

Topic 1 Β· Question 141

A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following output: Output 1: Output 2: Output 3: Which of the following should the administrator do to provide the BEST solution for the reported issue?

Exhibit 1 for question 141Exhibit 2 for question 141Exhibit 3 for question 141
  • AConfigure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.
  • BConfigure a different nice value for the Java process to allow for more users and prevent the Java process from restarting during business hours.
  • CConfigure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources.
  • DConfigure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.

Topic 1 Β· Question 142

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?

  • Adocker rm --all
  • Bdocker rm $(docker ps -aq) (correct answer)
  • Cdocker images prune *
  • Ddocker rm --state exited
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: docker rm $(docker ps -aq)

Showing questions 121–140 of 263 Β· Page 7 of 14