CompTIA XK0-005 Exam Practice Questions (P. 4)
- Full Access (380 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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?
send
light_mode
delete
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 nginxMost Voted
- Dsystemctl stop nginx
Correct Answer:
C
C
send
light_mode
delete
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?

Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?
- AEnable the logsearch.service and restart the service.
- BIncrease the TimeoutStartUSec configuration for the logsearch.sevice.
- CUpdate the OnCalendar configuration to schedule the start of the logsearch.service.
- DUpdate the KillSignal configuration for the logsearch.service to use TERM.
Correct Answer:
B
B
send
light_mode
delete
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?

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?
- ATRIGGERS=mariadb.service
- BONFAILURE=mariadb.service
- CWANTEDBY=mariadb.service
- DREQUIRES=mariadb.serviceMost Voted
Correct Answer:
D
D
send
light_mode
delete
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?

Which of the following commands should the administrator use to diagnose the issue?
- Adf -i /oracle1Most Voted
- Bfdisk -1 /dev/sdb1
- Clsblk /dev/sdb1
- Ddu -sh /oracle1
Correct Answer:
A
A
send
light_mode
delete
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 packagenameMost Voted
- Bapt-get remove packagename
- Crpm -i packagename
- Dapt remove packagename
Correct Answer:
A
A
send
light_mode
delete
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?
send
light_mode
delete
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?

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?
- 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.Most Voted
- CThe system is mostly idle, therefore the iowait is high.
- DThe system has a partitioned disk, which causes the IOPS to be doubled.
Correct Answer:
B
B
send
light_mode
delete
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.15Most Voted
- Cip route 192.169.1.40 to 10.0.2.15
- Droute -n 192.168.1.40 from 10.0.2.15
Correct Answer:
B
B
send
light_mode
delete
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 -rfMost Voted
Correct Answer:
B
B
send
light_mode
delete
All Pages