comptia XK0-005 Exam Questions

Questions for the XK0-005 were updated on : Jul 20 ,2024

Page 1 out of 19. Viewing questions 1-10 out of 187

Question 1

A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

  • A. scp -p /data remote:/backup/data
  • B. ssh -i /remote:/backup/ /data
  • C. rsync -a /data remote:/backup/
  • D. cp -r /data /remote/backup/
Answer:

c

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 2

A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?

  • A. visudo -c
  • B. test -f /etc/sudoers
  • C. sudo vi check
  • D. cat /etc/sudoers | tee test
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 3

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

Which of the following commands would be BEST to use to accomplish this task?

  • A. chattr +a /opt/app/logs
  • B. chattr +d /opt/app/logs
  • C. chattr +i /opt/app/logs
  • D. chattr +c /opt/app/logs
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 4

While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:



Which of the following commands should the administrator use to terminate all of the identified processes?

  • A. pkill -9 -f "upload*.sh"
  • B. kill -9 "upload*.sh"
  • C. killall -9 "upload*.sh"
  • D. skill -9 "upload*.sh"
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

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?

  • A. gedit & disown
  • B. kill 9 %1
  • C. fg %1
  • D. bg %1 job name
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 6

Users are reporting that writes on a system configured with SSD drives have been taking longer than expected, but reads do not seem to be affected. A Linux systems administrator is investigating this issue and working on a solution. Which of the following should the administrator do to help solve the issue?

  • A. Run the corresponding command to trim the SSD drives.
  • B. Use fsck on the filesystem hosted on the SSD drives.
  • C. Migrate to high-density SSD drives for increased performance.
  • D. Reduce the amount of files on the SSD drives.
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 7

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

  • A. rpm -qa | grep kernel; uname -a
  • B. yum -y update; shutdown -r now
  • C. cat /etc/centos-release; rpm -Uvh --nodeps
  • D. telinit 1; restorecon -Rv /boot
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 8

A systems administrator detected corruption in the /data file system. Given the following output:



Which of the following commands can the administrator use to BEST address this issue?

  • D. None
Answer:

c

User Votes:
D
50%
Discussions
vote your answer:
D
0 / 1000

Question 9

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?

  • A. git clone https://git.company.com/admin/project.git
  • B. git checkout https://git.company.com/admin/project.git
  • C. git pull https://git.company.com/admin/project.git
  • D. git branch https://git.company.com/admin/project.git
Answer:

a

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 10

A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

The Linux administrator attempts to start the timer service but receives the following error message:

Which of the following is MOST likely the reason the timer will not start?

  • A. The checkdiskspace.timer unit should be enabled via systemctl.
  • B. The timers.target should be reloaded to get the new configuration.
  • C. The checkdiskspace.timer should be configured to allow manual starts.
  • D. The checkdiskspace.timer should be started using the sudo command.
Answer:

c

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2