ExamDumpster

Free XK0-005 sample questions

Try these free XK0-005 sample questions from the retired Linux+ V7 exam, with answers and explanations. They look at package management, Linux hardening, and shell scripting with containers. They make a quick refresher, but study XK0-006 if you plan to take Linux+ now.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

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?

Question 2Choose one

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?

Question 3Choose one

A database server is exhibiting poor performance under heavy write loads. An administrator runs `iostat -x 1` and observes consistently high `%await` values (over 50%) for the disk `/dev/sdb` where the database files reside. The `%util` is also near 100%. What is the most likely cause of this performance bottleneck?

Question 4Choose 2

An administrator needs to create a new systemd service unit that starts a custom application. The service has a dependency on the network being fully online and should be part of the standard multi-user graphical environment. Which directives are required in the `[Unit]` section of the service file to meet these requirements? (Select TWO).

Question 5Choose one

True or False: The command `useradd -s /sbin/nologin -M -r john` creates a system account named `john` that cannot be used for an interactive login and does not have a home directory created.

Question 6Choose one

A DevOps engineer needs to write a bash script to parse an application's version from a configuration file. The version format is `version: "X.Y.Z"`. The script must extract only the `X.Y.Z` part. Given the input line `config_line='version: "1.2.3-beta"'`, which command correctly extracts the version number?

Question 7Choose one

An administrator is hardening a new server and wants to ensure that no world-writable files exist in the `/etc` directory, as this poses a significant security risk. Which command should be used to find all files in `/etc` that have write permissions for the 'others' category?

Question 8Choose one

A server has failed to boot, and the administrator has booted into a rescue environment. The root filesystem (`/dev/mapper/vg_root-lv_root`) is suspected to have errors. Before running `fsck`, the administrator must ensure the filesystem is unmounted. However, `umount` fails because the filesystem is busy. Which command can be used to identify and terminate all processes currently using the filesystem, allowing it to be unmounted?

Question 9Choose one

A company policy requires that all cron jobs executed on production servers are logged with a high level of detail, including the username, command, and execution time. Which system facility should be configured in `/etc/rsyslog.conf` to ensure all cron-related activities are captured in a dedicated log file?

Question 10Choose one

A web application running on a Linux server is experiencing slow response times. A system administrator uses `ss -tlnp` and notices an unusually high number of connections in the `SYN-RECV` state for the web server process. What type of issue does this symptom most likely indicate? sequenceDiagram participant Client participant Server Client->>+Server: SYN Server->>-Client: SYN-ACK Note over Server: State is SYN-RECV Note over Client: Client never sends final ACK

10 more free samples are waiting

Create a free account to unlock the whole XK0-005 sample bank, or get full access to all 658 practice questions in the simulator.

Create account