Free Practice Test

Free XK0-005 Practice Test – 2025 Updated

Study Smarter for the XK0-005 Exam with Our Free and Reliable XK0-005 Exam Questions – Updated for 2025.

At Cert Empire, we are focused on providing the most accurate and up-to-date exam questions for students preparing for the CompTIA XK0-005 Exam. To help learners prepare more effectively, we’ve made parts of our XK0-005 exam resources free for everyone. You can practice as much as you want with Free XK0-005 Practice Test.

CompTIA XK0-005 Free Exam Questions

Disclaimer

Please keep a note that the demo questions are not frequently updated. You may as well find them in open communities around the web. However, this demo is only to depict what sort of questions you may find in our original files.

Nonetheless, the premium exam dumps files are frequently updated and are based on the latest exam syllabus and real exam questions.

1 / 60

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?

2 / 60

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?

3 / 60

Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:

comptia xk0-005 exam demo question

 

 

 

Which of the following is causing the connection issue?

4 / 60

Based on an organization’s new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below. PDF Exam dump

 

 

 

 

 

 

 

To which of the following configuration files will the required changes need to be made?

5 / 60

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

6 / 60

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?

7 / 60

Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:

comptia xk0-005 exam demo question

 

 

 

 

Which of the following commands should the administrator use to diagnose the issue?

8 / 60

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 execute the command?

9 / 60

An administrator is trying to diagnose a performance issue and is reviewing the following output:

comptia xk0-005 exam demo question

 

 

 

 

 

 

 

System Properties:

CPU: 4 vCPU -

Memory: 40GB -

Disk maximum IOPS: 690 -
Disk maximum throughput: 44Mbps | 44000Kbps
Based on the above output, which of the following BEST describes the root cause?

10 / 60

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

11 / 60

Which of the following tools is commonly used for creating CI/CD pipelines?

12 / 60

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?

13 / 60

An administrator deployed a Linux server that is running a web application on port 6379/tcp. SELinux is in enforcing mode based on organization policies. The port is open on the firewall. 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:

comptia xk0-005 exam demo question

 

 

 

 

 

 

Which of the following commands should be used to resolve the issue?

14 / 60

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 change the port number to the desired value?

15 / 60

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?

16 / 60

Which of the following technologies can be used as a central repository of Linux users and groups?

17 / 60

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

18 / 60

A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

19 / 60

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?

20 / 60

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?

21 / 60

A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

22 / 60

A Linux system fails to start and delivers the following error message:

comptia xk0-005 exam demo question

 

 

 

 

 

Which of the following commands can be used to address this issue?

23 / 60

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

comptia xk0-005 exam demo question

 

 

 

 

Which of the following commands would be BEST to use to accomplish this task?

24 / 60

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:

comptia xk0-005 exam demo question

 

 

 

 

 

Which of the following commands will BEST resolve this issue?

25 / 60

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?

26 / 60

A Linux administrator is troubleshooting the root cause of a high CPU load and average.

comptia xk0-005 exam demo question

 

 

 

 

 

 

 

 

 

Which of the following commands will permanently resolve the issue?

27 / 60

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 will accomplish this task?

28 / 60

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:

comptia xk0-005 exam demo question

 

 

 

 

 

 

 

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?

29 / 60

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 Linux administrator choose for the new design?

30 / 60

Which of the following commands will display the operating system?

31 / 60

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 following would the administrator do to complete this requirement?

32 / 60

A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

33 / 60

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?

34 / 60

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:

comptia xk0-005 exam demo question

 

 

 

 

 

Based on the output above, which of following is the MOST probable cause of the issue?

35 / 60

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 commands will accomplish this task?

36 / 60

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:

comptia xk0-005 exam demo question

 

 

 

 

 

 

 

Which of the following commands should replace the string?

37 / 60

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:

comptia xk0-005 exam demo question

 

 

 

 

Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

38 / 60

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?

39 / 60

A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?

40 / 60

After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

41 / 60

A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

42 / 60

A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.

comptia xk0-005 exam demo question

 

 

 

 

Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

43 / 60

Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

44 / 60

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?

45 / 60

A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

46 / 60

A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

47 / 60

A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

48 / 60

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?

49 / 60

A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

50 / 60

Which of the following is a function of a bootloader?

51 / 60

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

52 / 60

After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

53 / 60

A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?

54 / 60

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

55 / 60

Which of the following files holds the system configuration for journal when running systemd?

56 / 60

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?

57 / 60

A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?

58 / 60

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 following commands will achieve the desired effect?

59 / 60

A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:

comptia xk0-005 exam demo question

 

 

 

 

 

 

 

 

 

 

 

Which of the following technologies is the administrator using?

60 / 60

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?

Your score is

The average score is 79%

Shopping Cart
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail $6 DISCOUNT on YOUR PURCHASE