Free XK0-005 sample questions
Real questions from the Linux+ (v7) practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
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?
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 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" ]; thenB.if [ -d "$filename" ]; thenC.if [ -f "$filename" ] thenD.if [ -f "$filename" ]; while

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?

Which of the following technologies can be used as a central repository of Linux users and groups?
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 system administrator is managing a high-performance computing cluster where nodes frequently write large temporary files. To optimize I/O and reduce disk wear on the underlying SSDs, the administrator decides to use a tmpfs mount for `/tmp`. The system has 128GB of RAM. The requirement is to limit the tmpfs mount to 25% of the system's RAM and ensure it is mounted automatically on boot. Which entry in `/etc/fstab` correctly implements this?
A security audit reveals that a web server is logging sensitive user information in plaintext to `/var/log/httpd/access_log`. An administrator needs to prevent any user, including root, from accidentally reading this file via standard tools like `cat` or `less`, while still allowing the `httpd` process to write to it. The file's contents should not be altered. Which command will achieve this specific level of protection?
A developer is creating a multi-container application using Podman pods. The application consists of a web frontend and a database backend. For security reasons, the database should not be exposed to the external network, but the web frontend must be able to communicate with it. Which command sequence correctly sets up this pod and exposes only the web frontend on port 8080?
10 more free samples are waiting
Create a free account to unlock the whole XK0-005 sample bank, or get full access to all 279 practice questions in the simulator.