XK0-005 Practice Test Free – 50 Real Exam Questions to Boost Your Confidence
Preparing for the XK0-005 exam? Start with our XK0-005 Practice Test Free – a set of 50 high-quality, exam-style questions crafted to help you assess your knowledge and improve your chances of passing on the first try.
Taking a XK0-005 practice test free is one of the smartest ways to:
- Get familiar with the real exam format and question types
- Evaluate your strengths and spot knowledge gaps
- Gain the confidence you need to succeed on exam day
Below, you will find 50 free XK0-005 practice questions to help you prepare for the exam. These questions are designed to reflect the real exam structure and difficulty level. You can click on each Question to explore the details.
A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?
A. /etc/ssh/sshd_config
B. /etc/ssh/moduli
C. ~/.ssh/config
D. ~/.ssh/authorized_keys
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
A. tar -cvzf /dev/sdd1 /dev/sdc1
B. rsync /dev/sdc1 /dev/sdd1
C. dd if=/dev/sdc1 of=/dev/sdd1
D. scp /dev/sdc1 /dev/sdd1
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?
A. systemctl cancel nginx
B. systemctl disable nginx
C. systemctl mask nginx
D. systemctl stop nginx
A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two.)
A. parted
B. df
C. mount
D. du
E. fdisk
F. dd
G. ls
Which of the following commands will display the operating system?
A. uname -n
B. uname -s
C. uname -o
D. uname -m
Based on the given command: find /home/user1 -type f -name "*.txt" -size +100M Which of the following will the command accomplish?
A. It finds all the files ending with .txt with a size less than 100MB in /home/user1 directory.
B. It finds all the files ending with .txt with a size of 100MB in /home/user1 directory.
C. It finds all the directories with .txt files with a size of 100MB in /home folder.
D. It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.
One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided:Given this scenario, which of the following should the administrator do to recover this volume?
A. Reboot the server. The volume will automatically go back to linear mode.
B. Replace the failed drive and reconfigure the mirror.
C. Reboot the server. The volume will revert to stripe mode.
D. Recreate the logical volume.
In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6.5/24 to the newly added network interface enpls0f1. Which of the following commands should the administrator run to achieve the goal?
A. ip addr add 10.0.6.5/24 dev enpls0f1
B. echo “IPV4_ADDRESS=10.0.6.5/24” > /etc/sysconfig/network-scripts/ifcfg-enpls0f1
C. ifconfig 10.0.6.5/24 enpsls0f1
D. nmcli conn add ipv4.address=10.0.6.5/24 if name snpls0f1
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?
A. Enable the logsearch.service and restart the service.
B. Increase the TimeoutStartUSec configuration for the logsearch.sevice.
C. Update the OnCalendar configuration to schedule the start of the logsearch.service.
D. Update the KillSignal configuration for the logsearch.service to use TERM.
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.)
A. netstat -antp | grep LISTEN
B. lsof -iTCP | grep LISTEN
C. lsof -i:22 | grep TCP
D. netstat -a | grep TCP
E. nmap -p1-65535 | grep -i tcp
F. nmap -sS 0.0.0.0/0
A user reported issues when trying to log into a Linux server. The following outputs were received:Given the outputs above, which of the following is the reason the user is unable to log in to the server?
A. User1 needs to set a long password.
B. User1 is in the incorrect group.
C. The user1 shell assignment is incorrect.
D. The user1 password is expired.
A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?
A. ~/.sshd/authkeys
B. ~/.ssh/keys
C. ~/.ssh/authorized_keys
D. ~/.ssh/keyauth
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
A. nslookup
B. rsynс
C. netstat
D. host
User1 is a member of the accounting group. Members of this group need to be able to execute but not make changes to a script maintained by User2. The script should not be accessible to other users or groups. Which of the following will give proper access to the script?
A. chown user2:accounting script.shchmod 750 script.sh
B. chown user1:accounting script.shchmod 777 script.sh
C. chown accounting:user1 script.shchmod 057 script.sh
D. chown user2:accounting script.shchmod u+x script.sh
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?
A.
B.
C.
D.
DRAG DROP - As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following: Add relevant content to /tmp/script.sh, so that it finds and compresses related files in /var/log without recursion. INSTRUCTIONS: Drag and drop snippets to fill the blanks to build a script that performs the actual compression of rotated log files. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
An administrator needs to get network information from a group of statically assigned workstations before they are reconnected to the network. Which of the following should the administrator use to obtain this information?
A. ip show
B. ifcfg -a
C. ifcfg -s
D. ifname -s
A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?
A. dnf list and dnf remove last
B. dnf remove and dnf check
C. dnf info and dnf upgrade
D. dnf history and dnf history undo last
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?
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
A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:Which of the following technologies is the administrator using?
A. Ansible
B. Puppet
C. Chef
D. Terraform
A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:Which of the following commands will BEST resolve this issue?
A. sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
B. restorecon -R -v /var/www/html
C. setenforce 0
D. setsebool -P httpd_can_network_connect_db on
A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:Which of the following commands should replace the string?
A. if [ -f “$filename” ]; then
B. if [ -d “$filename” ]; then
C. if [ -f “$filename” ] then
D. if [ -f “$filename” ]; while
Which of the following technologies can be used as a central repository of Linux users and groups?
A. LDAP
B. MFA
C. SSO
D. PAM
Which of the following data structures is written in JSON?
A.
B.
C.
D.
A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:Given there is a single CPU in the sever, which of the following is causing the slowness?
A. The system is running out of swap space.
B. The CPU is overloaded.
C. The memory is exhausted.
D. The processes are paging.
A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?
A. firewalld query-service-http
B. firewall-cmd –check-service http
C. firewall-cmd –query-service http
D. firewalld –check-service http
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection. Given the following output:Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?
A. restorecon -rv .ssh/authorized_key
B. mv .ssh/authorized_key .ssh/authorized_keys
C. systemctl restart sshd.service
D. chmod 600 mv .ssh/authorized_key
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”
An administrator runs ping comptia. org. The result of the command is: ping: comptia.org: Name or service not known Which of the following files should the administrator verify?
A. /etc/ethers
B. /etc/services
C. /etc/resolv.conf
D. /etc/sysctl.conf
A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:Based on the output above, which of following is the MOST probable cause of the issue?
A. The address ac:00:11:22:33:cd is not a valid Ethernet address.
B. The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
C. The network interface eth0 is using an old kernel module.
D. The network interface cable is not connected to a switch.
A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?
A. Create a unit file in the /etc/default/ directory.systemctl enable cleanupsystemctl is-enabled cleanup
B. Create a unit file in the /etc/ske1/ directory.systemctl enable cleanupsystemctl is-enabled cleanup
C. Create a unit file in the /etc/systemd/system/ directory.systemctl enable cleanupsystemctl is-enabled cleanup
D. Create a unit file in the /etc/sysctl.d/ directory.systemctl enable cleanupsystemctl is-enabled cleanup
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.
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.
A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?
A. find /etc/passwd -size +500
B. cut -d: -f1 /etc/passwd > 500
C. awk -F: ‘$3 > 500 {print $1}’ /etc/passwd
D. sed ‘/UID/’ /etc/passwd < 500
A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?
A. docker image inspect
B. docker container inspect
C. docker exec ls
D. docker ps
Which of the following directories is the mount point in a UEFI system?
A. /sys/efi
B. /boot/efi
C. /efi
D. /etc/efi
A database administrator requested the installation of a custom database on one of the servers. Which of the following should the Linux administrator configure so the requested packages can be installed?
A. /etc/yum.conf
B. /etc/ssh/sshd.conf
C. /etc/yum.repos.d/db.repo
D. /etc/resolv.conf
A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?
A. ss -plnt
B. tcpdump -nL
C. netstat -pn
D. lsof -lt
A systems administrator is tasked with creating a cloud-based server with a public IP address. The code is as follows:Which of the following technologies did the systems administrator use to complete this task?
A. Puppet
B. Git
C. Ansible
D. Terraform
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?
A. chmod g+s /home/test
B. chgrp test /home/test
C. chmod 777 /home/test
D. chown -hR test /home/test
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?
A. Configure a sidecar to perform log shipping.
B. Run docker exec to access the logs within the container.
C. Execute docker inspect and run a log rsync replication.
D. Set up a custom task scheduler via kubectl.
The applications team is reporting issues when trying to access the web service hosted in a Linux system. The Linux systems administrator is reviewing the following outputs: Output 1:Output 2:
Which of the following statements best describe the root cause? (Choose two.)
A. The httpd service is currently started.
B. The httpd service is enabled to auto start at boot time, but it failed to start.
C. The httpd service was manually stopped.
D. The httpd service is not enabled to auto start at boot time.
E. The httpd service runs without problems.
F. The httpd service did not start during the last server reboot.
A systems administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive. Which of the following commands will help the administrator accomplish this task?
A. grub-install /dev/hda
B. grub-install /dev/sda
C. grub-install /dev/sr0
D. grub-install /dev/hd0,0
SIMULATION - Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache. INSTRUCTIONS - Install Apache and start the service. Verify that the Apache service is running with the defaults. Typing “help” in the terminal will show a list of relevant event commands. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
A. docker export
B. docker info
C. docker start
D. docker inspect
A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?
A. The administrator did not reboot the server properly.
B. The administrator did not set the default target to basic.target.
C. The administrator did not set the default target to graphical.target.
D. The administrator did not shut down the server properly.
A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?
A. pull -> push -> add -> checkout
B. pull -> add -> commit -> push
C. checkout -> push -> add -> pull
D. pull -> add -> push -> commit
A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?
A. systemctl stop sshd
B. systemctl mask sshd
C. systemctl reload sshd
D. systemctl start sshd
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?
A. chown web:web /home/web
B. chmod -R 400 /home/web
C. echo “umask 377” >> /home/web/.bashrc
D. setfacl read /home/web
Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
A. route -i etho -p add 10.0.213.5 10.0.5.1
B. route modify eth0 +ipv4.routes “10.0.213.5/32 10.0.5.1”
C. echo “10.0.213.5 10.0.5.1 eth0” > /proc/net/route
D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
Free Access Full XK0-005 Practice Test Free Questions
If you’re looking for more XK0-005 practice test free questions, click here to access the full XK0-005 practice test.
We regularly update this page with new practice questions, so be sure to check back frequently.
Good luck with your XK0-005 certification journey!