DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Boost Your Certification Prep with CompTIA XK0-005 Mock Tests, CompTIA Linux+ Certification | SPOTO

Elevate your CompTIA Linux+ XK0-005 certification journey with our comprehensive mock tests and exam materials. Identify knowledge gaps and reinforce your skills through our meticulously crafted online exam questions, sample questions, and exam dumps. Access a vast array of verified exam questions and answers to ensure you're thoroughly prepared for the latest XK0-005 objectives. Practice with our free mock exams, designed to simulate the real certification experience. Leverage our interactive exam practice resources to gain hands-on experience with real-world scenarios faced by early career Linux systems administrators. Boost your confidence and validate your proficiency with our continually updated bank of mock tests and exam materials.
Take other online exams

Question #1
A Linux systems administrator receives a notification that one of the server’s filesystems is full. Which of the following commands would help the administrator to identify this filesystem?
A. lsblk
B. fdisk
C. df -h
D. du -ah
View answer
Correct Answer: D
Question #2
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?
A. unzip -v
B. bzip2 -z
C. gzip
D. funzip
View answer
Correct Answer: C
Question #3
A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?
A. id_dsa
B. id_rsa
C. id_ecdsa
D. id_rsa
View answer
Correct Answer: C
Question #4
A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?
A. iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
B. iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
C. iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
D. iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT
View answer
Correct Answer: D
Question #5
A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?
A. apt-get upgrade
B. rpm -a
C. yum updateinfo
D. dnf update
E. yum check-update
View answer
Correct Answer: CE
Question #6
A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?
A. SQL
B. YAML
C. HTML
D. JSON
View answer
Correct Answer: A
Question #7
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
View answer
Correct Answer: D
Question #8
A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message: Given the following analysis: Which of the following is causing the error message?
A. The administrator is not using a highly privileged account
B. The filesystem is mounted with the wrong options
C. SELinux file context is denying the ACL changes
D. File attributes are preventing file modification
View answer
Correct Answer: B
Question #9
A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?
A. sudo useradd -e 2021-09-30 Project_user
B. sudo useradd -c 2021-09-30 Project_user
C. sudo modinfo -F 2021-09-30 Project_uses
D. sudo useradd -m -d 2021-09-30 Project_user
View answer
Correct Answer: A
Question #10
A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?
A. chmod +t /project/access2all
B. chmod +rws /project/access2all
C. chmod 2770 /project/access2all
D. chmod ugo+rwx /project/access2all
View answer
Correct Answer: A
Question #11
A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two.)
A. Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot
B. Interrupt the boot process in the GRUB menu and add systemd
C. Interrupt the boot process in the GRUB menu and add systemd
D. Interrupt the boot process in the GRUB menu and add single=user in the kernel line
E. Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line
F. Interrupt the boot process in the GRUB menu and add systemd
View answer
Correct Answer: C
Question #12
Rugged appliances are small appliances with ruggedized hardware and like Quantum Spark appliance they use which operating system?
A. Centos Linux
B. Gaia embedded
C. Gaia
D. Red Hat Enterprise Linux version 5
View answer
Correct Answer: B
Question #13
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/ director
B. systemctl enable cleanupsystemctl is-enabled cleanup
C. Create a unit file in the /etc/ske1/ director
D. systemctl enable cleanupsystemctl is-enabled cleanup
E. Create a unit file in the /etc/systemd/system/ director
F. systemctl enable cleanupsystemctl is-enabled cleanup G
View answer
Correct Answer: A
Question #14
A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output: The administrator runs grep db.example.com /etc/hosts and receives the following output: Given this scenario, which of the following should the administrator do to address this issue?
A. Modify the /etc/hosts file and change the db
B. Modify the /etc/network file and change the db
C. Modify the /etc/network file and change the db
D. Modify the /etc/hosts file and change the db
View answer
Correct Answer: D
Question #15
A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?
A. vgs
B. lvs
C. fdisk -1
D. pvs
View answer
Correct Answer: C
Question #16
A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?
A. Cloud-init
B. Bash
C. Docker
D. Sidecar
View answer
Correct Answer: B
Question #17
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?
A. df -i /oracle1
B. fdisk -1 /dev/sdb1
C. lsblk /dev/sdb1
D. du -sh /oracle1
View answer
Correct Answer: A
Question #18
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. C:\Users\Admin\Desktop\Data\Odt data\Untitled
B. C:\Users\Admin\Desktop\Data\Odt data\Untitled
C. C:\Users\Admin\Desktop\Data\Odt data\Untitled
D. C:\Users\Admin\Desktop\Data\Odt data\Untitled
View answer
Correct Answer: D
Question #19
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
View answer
Correct Answer: A

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number: