πŸ”

XK0-005 β€” questions

Page 2 of 14 Β· 263 total questions.

Topic 1 Β· Question 22

An administrator attempts to rename a file on a server but receives the following error. The administrator then runs a few commands and obtains the following output: Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

Exhibit 1 for question 22Exhibit 2 for question 22
  • Achgrp reet files
  • Bchacl -R 644 files
  • Cchown users files
  • Dchmod -t files (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: chmod -t files

Topic 1 Β· Question 23

Which of the following commands will display the operating system?

  • Auname -n
  • Buname -s
  • Cuname -o (correct answer)
  • Duname -m
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: uname -o

Topic 1 Β· Question 24

A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?

  • A
  • B
  • C
  • D (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D.

Topic 1 Β· Question 25

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

  • Aunzip -v
  • Bbzip2 -z
  • Cgzip
  • Dfunzip (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: funzip

Topic 1 Β· Question 26

A Linux administrator is troubleshooting SSH connection issues from one of the workstations. When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message: The administrator reviews the information below: Which of the following is causing the connectivity issue?

Exhibit 1 for question 26Exhibit 2 for question 26Exhibit 3 for question 26
  • AThe workstation has the wrong IP settings.
  • BThe sshd service is disabled.
  • CThe server’s firewall is preventing connections from being made. (correct answer)
  • DThe server has an incorrect default gateway configuration.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The server’s firewall is preventing connections from being made.

Explanation

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

Topic 1 Β· Question 27

Which of the following files holds the system configuration for journal when running systemd?

  • A/etc/systemd/journald.conf (correct answer)
  • B/etc/systemd/systemd-journalctl.conf
  • C/usr/lib/systemd/journalctl.conf
  • D/etc/systemd/systemd-journald.conf
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: /etc/systemd/journald.conf

Topic 1 Β· Question 28

A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?

  • ADocker
  • BOn-premises systems
  • CCloud-based systems
  • DKubernetes (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Kubernetes This option scales automatically to match demand.

Topic 1 Β· Question 29

Which of the following tools is commonly used for creating CI/CD pipelines?

  • AChef
  • BPuppet
  • CJenkins (correct answer)
  • DAnsible
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Jenkins

Topic 1 Β· Question 30

A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

  • Achown web:web /home/web
  • Bchmod -R 400 /home/web
  • Cecho "umask 377" >> /home/web/.bashrc (correct answer)
  • Dsetfacl read /home/web
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: echo "umask 377" >> /home/web/.bashrc

Topic 1 Β· Question 31

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

  • Apam_login.so
  • Bpam_access.so
  • Cpam_logindef.so
  • Dpam_nologin.so (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: pam_nologin.so

Topic 1 Β· Question 32

A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

  • Asystemctl cancel nginx
  • Bsystemctl disable nginx
  • Csystemctl mask nginx (correct answer)
  • Dsystemctl stop nginx
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: systemctl mask nginx

Topic 1 Β· Question 33

A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following outputs: Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?

Exhibit 1 for question 33
  • AEnable the logsearch.service and restart the service.
  • BIncrease the TimeoutStartUSec configuration for the logsearch.sevice. (correct answer)
  • CUpdate the OnCalendar configuration to schedule the start of the logsearch.service.
  • DUpdate the KillSignal configuration for the logsearch.service to use TERM.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Increase the TimeoutStartUSec configuration for the logsearch.sevice.

Topic 1 Β· Question 34

A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files: The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

Exhibit 1 for question 34
  • ATRIGGERS=mariadb.service
  • BONFAILURE=mariadb.service
  • CWANTEDBY=mariadb.service
  • DREQUIRES=mariadb.service (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: REQUIRES=mariadb.service

Topic 1 Β· Question 35

Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided: Which of the following commands should the administrator use to diagnose the issue?

Exhibit 1 for question 35
  • Adf -i /oracle1 (correct answer)
  • Bfdisk -1 /dev/sdb1
  • Clsblk /dev/sdb1
  • Ddu -sh /oracle1
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: df -i /oracle1

Topic 1 Β· Question 36

After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

  • Adnf remove packagename (correct answer)
  • Bapt-get remove packagename
  • Crpm -i packagename
  • Dapt remove packagename
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: dnf remove packagename

Topic 1 Β· Question 37

A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?

  • Atail -v 20
  • Btail -n 20 (correct answer)
  • Ctail -c 20
  • Dtail -l 20
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: tail -n 20

Topic 1 Β· Question 38

An administrator is trying to diagnose a performance issue and is reviewing the following output: System Properties: CPU: 4 vCPU - Memory: 40GB - Disk maximum IOPS: 690 - Disk maximum throughput: 44Mbps | 44000Kbps Based on the above output, which of the following BEST describes the root cause?

Exhibit 1 for question 38
  • AThe system has reached its maximum IOPS, causing the system to be slow.
  • BThe system has reached its maximum permitted throughput, therefore iowait is increasing. (correct answer)
  • CThe system is mostly idle, therefore the iowait is high.
  • DThe system has a partitioned disk, which causes the IOPS to be doubled.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The system has reached its maximum permitted throughput, therefore iowait is increasing.

Topic 1 Β· Question 39

A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?

  • Aroute -e get to 192.168.1.40 from 10.0.2.15
  • Bip route get 192.163.1.40 from 10.0.2.15 (correct answer)
  • Cip route 192.169.1.40 to 10.0.2.15
  • Droute -n 192.168.1.40 from 10.0.2.15
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: ip route get 192.163.1.40 from 10.0.2.15

Topic 1 Β· Question 40

A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?

  • Axargs -f cat toDelete.txt -rm
  • Brm -d -r -f toDelete.txt
  • Ccat toDelete.txt | rm -frd
  • Dcat toDelete.txt | xargs rm -rf (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: cat toDelete.txt | xargs rm -rf

Topic 1 Β· Question 41

A Linux administrator is troubleshooting the root cause of a high CPU load and average. Which of the following commands will permanently resolve the issue?

Exhibit 1 for question 41
  • Arenice -n -20 6295
  • Bpstree -p 6295
  • Ciostat -cy 1 5
  • Dkill -9 6295 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: kill -9 6295

Showing questions 21–40 of 263 Β· Page 2 of 14