XK0-005 Exam - Free Actual Q&As, Page 1 - ExamTopics 1-50
XK0-005 Exam - Free Actual Q&As, Page 1 - ExamTopics 1-50
Topic 1 - Exam A
Question #1 Topic 1
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?
Correct Answer: A
Question #2 Topic 1
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to
A. /etc/host.conf
B. /etc/hostname
C. /etc/services
D. /etc/ssh/sshd_config
Correct Answer: D
Question #3 Topic 1
A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which
of the following commands should the administrator use for this task?
A. git reflog
B. git pull
C. git status
D. git push
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/ 1/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #4 Topic 1
A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following
D. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination 192.0.2.25:3128 Most Voted
Correct Answer: D
Question #5 Topic 1
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?
Correct Answer: D
Question #6 Topic 1
A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:
A. if [ -f "$filename" ]; then
B. if [ -d "$filename" ]; then
C. if [ -f "$filename" ] then
D. if [ -f "$filename" ]; while
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/ 2/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #7 Topic 1
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.
Correct Answer:
https://www.examtopics.com/exams/comptia/xk0-005/view/ 3/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #8 Topic 1
A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:
A. Ansible
B. Puppet
C. Chef
D. Terraform
Correct Answer: D
Question #9 Topic 1
Which of the following technologies can be used as a central repository of Linux users and groups?
B. MFA
C. SSO
D. PAM
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/ 4/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
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?
Correct Answer: D
A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host
machine while it internally listens on port 8443. Which of the following commands will accomplish this task?
Correct Answer: A
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux
administrator to enter the running container and analyze the logs that are stored inside?
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/ 5/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
Correct Answer: C
When trying to log in remotely to a server, a user receives the following message:
The server administrator is investigating the issue on the server and receives the following outputs:
D. The user has the wrong shell assigned to the account. Most Voted
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/ 6/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following
commands can be used to copy a key file to remote servers? (Choose two.)
A. wget
B. ssh-keygen
C. ssh-keyscan
D. ssh-copy-id
E. ftpd
F. scp
Correct Answer: DF
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the
B. sysctl -w net.ipv4.ip_forward=1
Correct Answer: B
A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions
and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only
running daily. Which of the following is MOST likely causing the issue?
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 7/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
An administrator deployed a Linux server that is running a web application on port 6379/tcp.
Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.
The administrator ran some commands that resulted in the following output:
Correct Answer: B
A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 8/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
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
D. cp -r /data /remote/backup/
Correct Answer: C
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version
control?
git status
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/ 9/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
An administrator attempts to rename a file on a server but receives the following error.
The administrator then runs a few commands and obtains the following output:
Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?
Correct Answer: D
A. uname -n
B. uname -s
D. uname -m
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 10/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
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
A.
B.
C.
D. Most Voted
Correct Answer: D
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will
B. bzip2 -z
C. gzip
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/ 11/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A Linux administrator is troubleshooting SSH connection issues from one of the workstations.
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:
C. The server’s firewall is preventing connections from being made. Most Voted
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 12/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
C (88%) 13%
Which of the following files holds the system configuration for journal when running systemd?
B. /etc/systemd/systemd-journalctl.conf
C. /usr/lib/systemd/journalctl.conf
D. /etc/systemd/systemd-journald.conf
Correct Answer: A
A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the
administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the
A. Docker
B. On-premises systems
C. Cloud-based systems
Correct Answer: D
Which of the following tools is commonly used for creating CI/CD pipelines?
A. Chef
B. Puppet
D. Ansible
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 13/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
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
Correct Answer: C
A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following
A. pam_login.so
B. pam_access.so
C. pam_logindef.so
D. pam_nologin.so
Correct Answer: D
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?
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 14/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few
Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?
Correct Answer: B
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?
A. TRIGGERS=mariadb.service
B. ONFAILURE=mariadb.service
C. WANTEDBY=mariadb.service
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/ 15/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
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?
B. fdisk -1 /dev/sdb1
C. lsblk /dev/sdb1
D. du -sh /oracle1
Correct Answer: A
After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the
C. rpm -i packagename
Correct Answer: A
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
A. tail -v 20
C. tail -c 20
D. tail -l 20
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/ 16/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
An administrator is trying to diagnose a performance issue and is reviewing the following output:
System Properties:
CPU: 4 vCPU -
Memory: 40GB -
Based on the above output, which of the following BEST describes the root cause?
A. The system has reached its maximum IOPS, causing the system to be slow. Most Voted
B. The system has reached its maximum permitted throughput, therefore iowait is increasing.
D. The system has a partitioned disk, which causes the IOPS to be doubled.
Correct Answer: A
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
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/ 17/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the
B. rm -d -r -f toDelete.txt
Correct Answer: D
A Linux administrator is troubleshooting the root cause of a high CPU load and average.
B. pstree -p 6295
C. iostat -cy 1 5
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/ 18/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve
this goal?
Correct Answer: A
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems
D. chown -R data/
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/ 19/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently
only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?
Correct Answer: B
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
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/ 20/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A systems administrator is tasked with creating a cloud-based server with a public IP address.
Which of the following technologies did the systems administrator use to complete this task?
A. Puppet
B. Git
D. Terraform
Correct Answer: C
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:
C. setenforce 0
D. setsebool -P httpd_can_network_connect_db on
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/ 21/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the
Correct Answer: B
A. It initializes all the devices that are required to load the OS. Most Voted
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/ 22/23
10/24/24, 3:52 PM XK0-005 Exam - Free Actual Q&As, Page 1 | ExamTopics
A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:
Which of the following is the reason the firewall rules are not active?
Correct Answer: D
Next Questions
Get IT Certification
https://www.examtopics.com/exams/comptia/xk0-005/view/ 23/23