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.
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?
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?
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).
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.
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?
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?
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?
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?
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.