πŸ”

XK0-005 β€” questions

Page 6 of 14 Β· 263 total questions.

Topic 1 Β· Question 103

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

  • Aiptables -F INPUT -j 192.168.10.50 -m DROP
  • Biptables -A INPUT -s 192.168.10.30 -j DROP (correct answer)
  • Ciptables -i INPUT --ipv4 192.168.10.50 -z DROP
  • Diptables -j INPUT 192.168.10.50 -p DROP
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: iptables -A INPUT -s 192.168.10.30 -j DROP

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

A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

  • Adf -h /data
  • Bmkfs.ext4 /dev/sdc1 (correct answer)
  • Cfsck /dev/sdc1
  • Dfdisk -l /dev/sdc1
  • Eecho "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
  • Fecho "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab (correct answer)
Reveal answer & explanation
Correct answer: B, F

The correct answer is B, F. Option B: mkfs.ext4 /dev/sdc1 Option F: echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab

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

A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two.)

  • Aparted
  • Bdf (correct answer)
  • Cmount
  • Ddu (correct answer)
  • Efdisk
  • Fdd
  • Gls
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: df Option D: du

Topic 1 Β· Question 106

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?

  • Afg (correct answer)
  • Bsu
  • Cbg
  • Ded
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: fg

Topic 1 Β· Question 107

A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values: Which of the following commands will the administrator most likely run NEXT?

Exhibit 1 for question 107
  • Avmstat (correct answer)
  • Bstrace
  • Chtop
  • Dlsof
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: vmstat

Topic 1 Β· Question 108

Which of the following technologies provides load balancing, encryption, and observability in containerized environments?

  • AVirtual private network
  • BSidecar pod
  • COverlay network
  • DService mesh (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Service mesh This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 109

A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

  • Agrep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
  • Bcat /etc/systemd/journald.conf | awk '(print $1,$3)'
  • Csed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/Λ†#//q' /etc/systemd/journald.conf (correct answer)
  • Djournalctl --list-boots && systemctl restart systemd-journald.service
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/Λ†#//q' /etc/systemd/journald.conf

Topic 1 Β· Question 110

A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server. To troubleshoot the issue, the systems administrator runs netstat and receives the following output: Based on the information above, which of the following is causing the issue?

Exhibit 1 for question 110
  • AThe IP address 0.0.0.0 is not valid.
  • BThe application is listening on the loopback interface. (correct answer)
  • CThe application is listening on port 1234.
  • DThe application is not running.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The application is listening on the loopback interface.

Topic 1 Β· Question 111

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output: The administrator runs grep db.example.com /etc/hosts and receives the following output: Given this scenario, which of the following should the administrator do to address this issue?

Exhibit 1 for question 111Exhibit 2 for question 111
  • AModify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
  • BModify the /etc/network file and change the db.example.com entry to 192.168.20.88.
  • CModify the /etc/network file and change the db.example.com entry to 192.168.20.89.
  • DModify the /etc/hosts file and change the db.example.com entry to 192.168.20.88. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

Topic 1 Β· Question 112

Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following: Based on the information above, which of the following is causing the issue?

Exhibit 1 for question 112
  • AThe name www.comptia.org does not point to a valid IP address.
  • BThe server 192.168.168.53 is unreachable.
  • CNo default route is set on the server. (correct answer)
  • DThe network interface eth0 is disconnected.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: No default route is set on the server.

Topic 1 Β· Question 113

A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?

  • Agedit & disown
  • Bkill 9 %1
  • Cfg %1
  • Dbg %1 job name (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: bg %1 job name

Topic 1 Β· Question 114

A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output: Given there is a single CPU in the sever, which of the following is causing the slowness?

Exhibit 1 for question 114
  • AThe system is running out of swap space.
  • BThe CPU is overloaded.
  • CThe memory is exhausted.
  • DThe processes are paging. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: The processes are paging.

Topic 1 Β· Question 115

Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output: Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?

Exhibit 1 for question 115
  • Achattr +i file
  • Bchown it:finance file
  • Cchmod 666 file
  • Dsetfacl -m g:finance:rw file (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: setfacl -m g:finance:rw file

Topic 1 Β· Question 116

A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?

  • ACreate a unit file in the /etc/default/ directory. systemctl enable cleanup systemctl is-enabled cleanup
  • BCreate a unit file in the /etc/ske1/ directory. systemctl enable cleanup systemctl is-enabled cleanup
  • CCreate a unit file in the /etc/systemd/system/ directory. systemctl enable cleanup systemctl is-enabled cleanup (correct answer)
  • DCreate a unit file in the /etc/sysctl.d/ directory. systemctl enable cleanup systemctl is-enabled cleanup
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a unit file in the /etc/systemd/system/ directory. systemctl enable cleanup systemctl is-enabled cleanup

Topic 1 Β· Question 117

A Linux system is failing to boot. The following error is displayed in the serial console: [[1;33mDEPEND[Om] Dependency failed for /data. [[1;33mDEPEND[Om] Dependency failed for Local File Systems ... Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode. Give root password for maintenance (or type Control-D to continue} Which of the following files will need to be modified for this server to be able to boot again?

  • A/etc/mtab
  • B/dev/sda
  • C/etc/fstab (correct answer)
  • D/ete/grub.conf
Reveal answer & explanation
Correct answer: C

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

Topic 1 Β· Question 118

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

  • A/etc/ssh/sshd_config
  • B/etc/ssh/moduli
  • C~/.ssh/config (correct answer)
  • D~/.ssh/authorized_keys
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: ~/.ssh/config

Topic 1 Β· Question 119

A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

  • Asystemctl stop sshd
  • Bsystemctl mask sshd
  • Csystemctl reload sshd (correct answer)
  • Dsystemctl start sshd
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: systemctl reload sshd

Topic 1 Β· Question 120

A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?

  • Aifconfig hw eth1
  • Bnetstat -r eth1
  • Css -ti eth1
  • Dip link show eth1 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: ip link show eth1

Topic 1 Β· Question 121

A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?

  • A~/.sshd/authkeys
  • B~/.ssh/keys
  • C~/.ssh/authorized_keys (correct answer)
  • D~/.ssh/keyauth
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: ~/.ssh/authorized_keys

Topic 1 Β· Question 122

A Linux administrator needs to create a new user named user02. However, user02 must be in a different home directory, which is under /comptia/projects. Which of the following commands will accomplish this task?

  • Auseradd -d /comptia/projects user02 (correct answer)
  • Buseradd -m /comptia/projects user02
  • Cuseradd -b /comptia/projects user02
  • Duseradd -s /comptia/projects user02
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: useradd -d /comptia/projects user02

Showing questions 101–120 of 263 Β· Page 6 of 14