πŸ”

XK0-005 β€” questions

Page 12 of 14 Β· 263 total questions.

Topic 1 Β· Question 224

An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

  • Arenice -n -15 2274 (correct answer)
  • Bnice -15 2274
  • Cecho "-15" > /proc/PID/2274/priority
  • Dps -ef | grep 2274
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: renice -n -15 2274

Topic 1 Β· Question 225

A Linux administrator is creating a new sudo profile for the accounting user. Which of the following should be added by the administrator to the sudo configuration file so that the accounting user can run /opt/acc/report as root?

  • Aaccounting localhost=/opt/acc/report
  • Baccounting ALL=/opt/acc/report (correct answer)
  • C%accounting ALL=(ALL) NOPASSWD: /opt/acc/report
  • Daccounting /opt/acc/report=(ALL) NOPASSWD: ALL
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: accounting ALL=/opt/acc/report

Topic 1 Β· Question 226

An administrator needs to make an application change via a script that must be run only in console mode. Which of the following best represents the sequence the administrator should execute to accomplish this task?

  • Asystemctl isolate multi-user.target sh script.sh systemctl isolate graphical.target (correct answer)
  • Bsystemctl isolate graphical.target sh script.sh systemctl isolate multi-user.target
  • Csh script.sh systemctl isolate multi-user.target systemctl isolate graphical.target
  • Dsystemctl isolate multi-user.target systemctl isolate graphical.target sh script.sh
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: systemctl isolate multi-user.target sh script.sh systemctl isolate graphical.target

Topic 1 Β· Question 227

A Linux administrator logs in to a system and identifies that an important backup has been started. The backup process is consuming a considerable amount of CPU lime but needs to continue. Which of the following should the administrator use to reduce the impact this process has on other services?

  • Arenice -n 15 -p (correct answer)
  • Bnice -n 15 -p
  • Crenice -n -15 -p
  • Dnice -n -15 -p
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: renice -n 15 -p

Topic 1 Β· Question 228

The application team has reported latency issues that are causing the application to crash on the Linux server. The Linux administrator starts troubleshooting and receives the following output: Which of the following commands will improve the latency issue?

Exhibit 1 for question 228
  • A# echo 'net.core.net_backlog = 5000000' >> /etc/sysctl.conf # sysctl -p # systemctl daemon-reload
  • B# ifdown eth0 # ip link set dev eth0 mtu 800 # ifup eth0
  • C# systemctl stop network # ethtool -g eth0 512 # systemctl start network
  • D# echo 'net.core.rmem_max = 12500000' >> /etc/sysctl.conf # echo 'net.core.wmem_max = 12500000' >> /etc/sysctl.conf # sysctl -p (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: # echo 'net.core.rmem_max = 12500000' >> /etc/sysctl.conf # echo 'net.core.wmem_max = 12500000' >> /etc/sysctl.conf # sysctl -p

Topic 1 Β· Question 229

An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version. Which of the following files should the administrator review?

  • A/etc/named.conf.rpmnew (correct answer)
  • B/etc/named.conf.rpmsave
  • C/etc/named.conf
  • D/etc/bind/bind.conf
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: /etc/named.conf.rpmnew

Topic 1 Β· Question 230

A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?

  • Asudo passwd (correct answer)
  • Bsudo userdel
  • Csudo chage
  • Dsudo usermod
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: sudo passwd

Topic 1 Β· Question 231

A user is unable to log on to a Linux workstation. The systems administrator executes the following command: The command results in the following output: Which of the following should the systems administrator execute to fix the issue?

Exhibit 1 for question 231Exhibit 2 for question 231
  • Achown -R user1:user1 /home/user1
  • Bsed -i '/:::/::/g' /etc/shadow
  • Cchgrp user1:user1 /home/user1
  • Dpasswd -u user1 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: passwd -u user1

Topic 1 Β· Question 232

A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?

  • ASQL
  • BYAML (correct answer)
  • CHTML
  • DJSON
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: YAML

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

A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to display all the firewall rules applied to the Linux servers? (Choose two.)

  • Aufw limit
  • Biptables -F
  • Csystemctl status firewalld
  • Dfirewall-cmd --list-all (correct answer)
  • Eufw status (correct answer)
  • Fiptables -A
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: firewall-cmd --list-all Option E: ufw status

Explanation

A firewall enforces traffic policy by permitting or blocking connections based on configured rules. This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 234

A Linux administrator intends to start using KVM on a Linux server. Which of the following commands will allow the administrator to load the KVM module as well as any related dependencies?

  • Amodprobe kvm (correct answer)
  • Binsmod kvm
  • Cdepmod kvm
  • Dhotplug kvm
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: modprobe kvm

Topic 1 Β· Question 235

The group owner of the /home/test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?

  • Achmod g+s /home/test (correct answer)
  • Bchgrp test /home/test
  • Cchmod 777 /home/test
  • Dchown -hR test /home/test
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: chmod g+s /home/test

Topic 1 Β· Question 236

The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs: Which of the following is the reason that the administrator is unable to perform the assigned duties?

Exhibit 1 for question 236
  • AThe administrator needs a password reset.
  • BThe administrator is not a part of the correct group. (correct answer)
  • CThe administrator did not update the sudo database.
  • DThe administrator's credentials need to be more complex.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The administrator is not a part of the correct group.

Topic 1 Β· Question 237

A Linux administrator deployed a large-scale application service as a containerized pod. The Linux administrator needs to continually send the application's log file to the company's central log store. Which of the following should the Linux administrator do to efficiently perform this task?

  • AConfigure a sidecar to perform log shipping. (correct answer)
  • BRun docker exec to access the logs within the container.
  • CExecute docker inspect and run a log rsync replication.
  • DSet up a custom task scheduler via kubectl.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure a sidecar to perform log shipping. This option scales automatically to match demand.

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

A systems administrator is trying to track down a rogue process that has a TCP listener on a network interface for remote command-and-control instructions. Which of the following commands should the systems administrator use to generate a list of rogue process names? (Choose two.)

  • Anetstat -antp | grep LISTEN (correct answer)
  • Blsof -iTCP | grep LISTEN (correct answer)
  • Clsof -i:22 | grep TCP
  • Dnetstat -a | grep TCP
  • Enmap -p1-65535 | grep -i tcp
  • Fnmap -sS 0.0.0.0/0
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: netstat -antp | grep LISTEN Option B: lsof -iTCP | grep LISTEN

Topic 1 Β· Question 239

A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following: # grep -iE '*www*|db' /etc/passwd www-data:x:502:502:www-data:/var/www:/bin/bash db:x:505:505:db:/opt/db:/bin/bash Which of the following commands would resolve the security issue?

  • Ausermod -d /srv/www-data www-data && usermod -d /var/lib/db db
  • Bpasswd -u www-data && passwd -u db
  • Crenice -n 1002 -u 502 && renice -n 1005 -u 505
  • Dchsh -s /bin/false www-data && chsh -s /bin/false db (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: chsh -s /bin/false www-data && chsh -s /bin/false db This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 240

A Linux administrator needs to transfer a local file named accounts.pdf to a remote /tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?

  • Arsync user@l0.10.10.80:/tmp accounts.pdf
  • Bscp accounts.pdf user@l0.10.10.80:/tmp (correct answer)
  • Ccp user@l0.10.10.80:/tmp accounts.pdf
  • Dssh accounts.pdf user@l0.10.10.80:/tmp
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: scp accounts.pdf user@l0.10.10.80:/tmp

Topic 1 Β· Question 241

An administrator has source code and needs to rebuild a kernel module. Which of the following command sequences is most commonly used to rebuild this type of module?

  • A./configure make make install (correct answer)
  • Bwget gcc cp
  • Ctar xvzf build cp
  • Dbuild install configure
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: ./configure make make install

Topic 1 Β· Question 242

An administrator would like to measure possible packet loss between a workstation and a remote web application that is running on port 443. Which of the following would be the best command for the administrator to use to display this information?

  • Aping -c 50
  • Btcpdump -p 443
  • Cmtr -T -P 443 (correct answer)
  • Dtraceroute -p 443
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: mtr -T -P 443

Topic 1 Β· Question 243

A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The administrator runs a few commands and receives the following output: # cat /etc/hosts 10.10.10.55 portal.comptia.org # host portal.comptia.org portal.comptia.org has address 192.168.1.55 #cat /etc/resolv.conf nameserver 10.10.10.5 Which of the following tasks should the administrator perform to resolve this issue?

  • AUpdate the name server in resolv.conf to use an external DNS server.
  • BRemove the entry for portal.comptia.org from the local hosts file. (correct answer)
  • CAdd a network route from the 10.10.10.0/24 to the 192.168.0.0/16.
  • DClear the local DNS cache on the workstation and rerun the host command.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Remove the entry for portal.comptia.org from the local hosts file.

Showing questions 221–240 of 263 Β· Page 12 of 14