CompTIA certification preparation

XK0-005 Practice Questions

Practice exam-style questions, check your answers, and review explanations and source references where they are available.

Exam
XK0-005
Provider
CompTIA
Full set
487 questions
Last Update Check

We provide XK0-005 exam questions and an online exam simulator here at Cert Mage. You can try our XK0-005 practice questions for free directly on this page, complete with answer explanations. If you find our free practice quiz helpful, you can purchase our premium preparation file for full access to all the latest XK0-005 questions.

A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?
Answer options
A systems administrator identifies multiple processes in a zombie state. Which of the following signals would be best for the administrator to send to the PPID?
Answer options

An administrator made a change to a system's network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?

Answer options
Which of the following can reduce the attack surface area in relation to Linux hardening?
Answer options
A Linux administrator needs to check extended permissions applied to the directory test. Which of the following commands should the administrator use to help with this task?
Answer options
A Linux systems administrator is updating code. After completing the update, the administrator wants to publish the updated code without including the configuration files. Which of the following should the administrator use to accomplish this task?
Answer options
An operations engineer is planning to start a container running a PostgreSQL database. The engineer wants the container to start automatically at system startup, mount the /home/db directory as /var/lib/postgresql inside the container, and expose port 5432 to the OS. Which of the following commands should the engineer run to achieve this task?
Answer options

A file called testfile has both uppercase and lowercase letters:

$ cat testfile ABCDEfgH IJKLmnoPQ abcdefgH ijklLMNopq

A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase.

Which of the following commands will achieve this task?

Answer options
A systems administrator created a user cron to run a scheduled database backup cronjob on the server at 1 a.m. every day. The following is the cronjob syntax: 0 1 * * * /bin/sh backup.sh The backups, however, are not being created. When checking the crontab file, the administrator sees the following error: /var/spool/cron/crontab/cron: Permission denied Which of the following will permit the cronjob to execute?
Answer options

An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails.

The administrator executes: nslookup -querytype=AAAA www.comptia.org Can't find www.comptia.org: No answer The workstation has a static entry in /etc/hosts: 104.18.99.101 www.comptia.org

Which of the following is the most likely cause?

Answer options
Question 1 of 10

Source context

How this practice set is maintained

Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.

Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.

Scroll to Top