XK0-005 Exam - Free Actual Q&As, Page 5 - ExamTopics 201-250
XK0-005 Exam - Free Actual Q&As, Page 5 - ExamTopics 201-250
#!/bin/bash
# FILENAME: /home/user/script.sh
exit 1
However, when the user tried to run the script file using the command ~/script.sh, an error returned indicating permission was denied. Which of
the following should the user execute in order for the script to run properly?
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 1/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem format. The administrator runs dmesg and notices the
following output:
Given this scenario, which of the following should the administrator perform to meet these requirements? (Choose three.)
A. gpg /dev/sdc1
B. pvcreate /dev/sdc
E. fdisk /dev/sdc
G. wipefs -a/dev/sdb1
A developer wants to ensure that all files and folders created inside a shared folder named /Group00DEV inherit the group name of the parent
folder. Which of the following commands will help achieve this goal?
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 2/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
Ann, a security administrator, is performing home directory audits on a Linux server. Ann issues the su Joe command and then issues the ls
command. The output displays files that reside in Ann's home directory instead of Joe's. Which of the following represents the command Ann
B. sudo Joe
C. visudo Joe
D. pkexec Joe
Correct Answer: A
A developer needs to launch an Nginx image container, name it Web00l, and expose port 8080 externally while mapping to port 80 inside the
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 3/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
The security team has identified a web service that is running with elevated privileges. A Linux administrator is working to change the systemd
service file to meet security compliance standards. Given the following output:
[Unit]
Documentation=man:webserver(8) man:webserver_config(5)
After=network.target -
[Service]
Type=notify -
EnvironmentFile=/etc/webserver/config
ExecStart=/usr/sbin/webserver -D $OPTIONS
KillMode=process -
Restart=on-failure -
RestartSec=42s -
[Install]
WantedBy=multi-user.target -
Which of the following remediation steps will prevent the web service from running as a privileged user?
C. Adding the User=webservice to the [Service] section of the service file Most Voted
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 4/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report
that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:
Which of the following would most likely resolve the issue while maintaining a least privilege security model?
Correct Answer: D
Which of the following would significantly help to reduce data loss if more than one drive fails at the same time?
A. Server clustering
B. Load balancing
C. RAID
D. VDI
Correct Answer: C
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 5/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems administrator receives reports that several virtual machines in a host are responding slower than expected. Upon further investigation,
the administrator obtains the following output from one of the affected systems:
A. The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines. Most Voted
B. The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.
C. The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.
D. The virtual machine is running out of CPU resources, leading to users experiencing longer response times.
Correct Answer: A
A user is unable to remotely log on to a server using the server name server1 and port 22. The Linux engineer troubleshoots the issue and gathers
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 6/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems administrator needs to extend the logical volume /dev/mapper/linux-root to use all available space in its volume group. The filesystem
should be extended as well. Which of the following commands will allow the administrator to achieve this goal?
Correct Answer: D
A systems administrator is gathering information about a file type and the contents of a file. Which of the following commands should the
A. file filename
B. touch filename
C. grep filename
D. lsof filename
Correct Answer: A
A systems administrator is investigating a service that is not starting up. Given the following information:
Which of the following systemd commands should the administrator use in order to obtain more details about the failing service?
C. sysctl -a network
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 7/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A DevOps engineer wants to allow the same Kubernetes container configurations to be deployed in development, testing, and production
environments. A key requirement is that the containers should be configured so that developers do not have to statically configure custom,
environment-specific locations. Which of the following should the engineer use to meet this requirement?
A. Custom scheduler
B. Node affinity
D. Ambassador container
Correct Answer: C
After starting an Apache web server, the administrator receives the following error:
Which of the following commands should the administrator use to further troubleshoot this issue?
A. ss Most Voted
B. ip
C. dig
D. nc
Correct Answer: A
Which of the following commands should a technician use to create an administrative account for the username Joe?
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 8/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
Due to performance issues on a server, a Linux administrator needs to terminate an unresponsive process. Which of the following commands
should the administrator use to terminate the process immediately without waiting for a graceful shutdown?
Correct Answer: A
A Linux administrator generated a list of users who have root-level command-line access to the Linux server to meet an audit requirement. The
Which of the following users, in addition to the root user, should be listed in the audit report as having root-level command-line access? (Choose
two.)
C. Mallory
D. Eve
E. Bob
F. Alice
Correct Answer: AB
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 9/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:
$ ls -l config
Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current
ownership?
Correct Answer: B
Which of the following actions are considered good security practices when hardening a Linux server? (Choose two.)
Correct Answer: BE
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 10/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A Linux user is trying to execute commands with sudo but is receiving the following error:
$ sudo visudo
root:*LOCK*:14600::::::
A. Log in directly using the root account and comment out line 28 from /etc/sudoers.
B. Boot the system in single user mode and comment out line 28 from /etc/sudoers. Most Voted
C. Comment out line 28 from /etc/sudoers and try to use sudo again.
D. Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/sudoers.
Correct Answer: B
Users are experiencing high latency when accessing a web application served by a Linux machine. A systems administrator checks the network
Which of the following is the most probable cause of the observed latency?
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 11/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-a. Which of the following
B. mv -f /usr/local/share/app-a /usr/local/bin/app-a
C. cp -f /usr/local/share/app-a /usr/local/bin/app-a
Correct Answer: A
The applications team is reporting issues when trying to access the web service hosted in a Linux system. The Linux systems administrator is
Output 1:
Output 2:
Which of the following statements best describe the root cause? (Choose two.)
B. The httpd service is enabled to auto start at boot time, but it failed to start.
D. The httpd service is not enabled to auto start at boot time. Most Voted
F. The httpd service did not start during the last server reboot. Most Voted
Correct Answer: DF
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 12/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
Which of the following specifications is used to perform disk encryption in a Linux system?
B. TLS
C. SSL
D. NFS
Correct Answer: A
A junior developer is unable to access an application server and receives the following output:
[email protected]'s password:
[email protected]'s password:
[email protected]'s password:
The systems administrator investigates the issue and receives the following output:
B. pam_tally2 --user=dev2
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 13/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems technician is configuring an application server to accept packets from a trusted source with the IP address 192.168.10.22. Which of
the following commands will allow communication between the two servers?
Correct Answer: C
An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator
Correct Answer: A
A Linux administrator is creating a new sudo profile for the accounting user. Which of the following should be added by the administrator to the
sudo configuration file so that the accounting user can run /opt/acc/report as root?
A. accounting localhost=/opt/acc/report
B. accounting ALL=/opt/acc/report
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 14/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
An administrator needs to make an application change via a script that must be run only in console mode. Which of the following best represents
sh script.sh
sh script.sh
C. sh script.sh
sh script.sh
Correct Answer: A
A Linux administrator logs in to a system and identifies that an important backup has been started. The backup process is consuming a
considerable amount of CPU lime but needs to continue. Which of the following should the administrator use to reduce the impact this process
B. nice -n 15 -p
C. renice -n -15 -p
D. nice -n -15 -p
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 15/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
The application team has reported latency issues that are causing the application to crash on the Linux server. The Linux administrator starts
# sysctl -p
# systemctl daemon-reload
B. # ifdown eth0
# ifup eth0
Correct Answer: D
An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version.
B. /etc/named.conf.rpmsave
C. /etc/named.conf
D. /etc/bind/bind.conf
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 16/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?
B. sudo userdel
C. sudo chage
D. sudo usermod
Correct Answer: A
A user is unable to log on to a Linux workstation. The systems administrator executes the following command:
Which of the following should the systems administrator execute to fix the issue?
Correct Answer: D
A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of
A. SQL
B. YAML
C. HTML
D. JSON
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 17/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to
display all the firewall rules applied to the Linux servers? (Choose two.)
A. ufw limit
B. iptables -F
F. iptables -A
Correct Answer: DE
A Linux administrator intends to start using KVM on a Linux server. Which of the following commands will allow the administrator to load the KVM
B. insmod kvm
C. depmod kvm
D. hotplug kvm
Correct Answer: A
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
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 18/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs:
Which of the following is the reason that the administrator is unable to perform the assigned duties?
Correct Answer: B
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?
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 19/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
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.)
Correct Answer: AB
A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and
www-data:x:502:502:www-data:/var/www:/bin/bash
db:x:505:505:db:/opt/db:/bin/bash
Correct Answer: D
A systems administrator is cloning a system partition /dev/sda1 to /dev/sdc1. Which of the following commands would allow the administrator to
A. dd if=/dev/sda1 of=/dev/sdc1
C. cp -R /dev/sda1 /dev/sdc1
Correct Answer: A
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 20/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
An administrator would like to securely connect to a server and forward port 8080 on a local machine to port 80 on the server. Which of the
Correct Answer: A
A Linux administrator needs to transfer a local file named accounts.pdf to a remote /tmp directory of a server with the IP address 10.10.10.80.
C. cp [email protected]:/tmp accounts.pdf
Correct Answer: B
Application code is stored in Gil. Due to security concerns, the DevOps engineer does not want to keep a sensitive configuration file, app.conf, in
the repository. Which of the following should the engineer do to prevent the file from being uploaded to the repository?
Correct Answer: D
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 21/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
An administrator has source code and needs to rebuild a kernel module. Which of the following command sequences is most commonly used to
A. ./configure
make
make install
B. wget
gcc
cp
C. tar xvzf
build
cp
D. build
install
configure
Correct Answer: A
An administrator would like to measure possible packet loss between a workstation and a remote web application that is running on port 443.
Which of the following would be the best command for the administrator to use to display this information?
B. tcpdump -p 443
C. mtr -T -P 443
D. traceroute -p 443
Correct Answer: C
Users in the human resources department are trying to access files in a newly created directory. Which of the following commands will allow the
A. chattr
B. chgrp
C. chage
D. chcon
Correct Answer: B
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 22/23
10/24/24, 3:59 PM XK0-005 Exam - Free Actual Q&As, Page 5 | ExamTopics
Get IT Certification
https://www.examtopics.com/exams/comptia/xk0-005/view/5/ 23/23