Back to CompTIA Linux+ XK0-005 questions

Scenario-based practice

Select Two (Multi-Select) Questions

Practise CompTIA Linux+ XK0-005 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

20
scenario questions
XK0-005
exam code
CompTIA
vendor

Scenario guide

How to approach select two (multi-select) questions

Multi-select questions tell you to 'Choose TWO' or 'Choose THREE'. Getting partial credit is not a thing — you must select all correct answers with no incorrect ones. The stem always states how many to choose, so trust it. These questions require precision, not best-guess elimination.

Quick answer

Select Two (Multi-Select) Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Related practice questions

Related XK0-005 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1mediummulti select
Full question →

A systems administrator wants to monitor system performance in real time. Which TWO commands can be used to display live updating information about processes, CPU, and memory usage? (Select TWO.)

Question 2mediummulti select
Full question →

Which TWO of the following are valid methods to enforce disk quota limits on a Linux filesystem? (Select TWO.)

Question 3hardmulti select
Full question →

A database server running on Linux is experiencing high load. The administrator runs 'strace -p <pid>' and sees many 'epoll_wait' and 'futex' calls. Which THREE of the following are possible causes of the high load? (Choose THREE.)

Question 4hardmulti select
Full question →

A Linux engineer is troubleshooting a server that fails to boot. The server displays a message indicating 'Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)'. Which TWO actions should the engineer take to resolve this issue? (Choose TWO.)

Question 5hardmulti select
Full question →

A Linux system is experiencing kernel panics after a recent update. The administrator wants to boot into a previous kernel version to restore functionality. Which three steps are required to achieve this? (Select THREE).

Question 6mediummulti select
Full question →

A technician is configuring a system to automatically mount an NFS share at boot. Which two files must be edited or created? (Choose two.)

Question 7mediummulti select
Full question →

A Linux administrator is hardening a server. Which TWO actions are effective in preventing unauthorized access via SSH? (Select TWO.)

Question 8hardmulti select
Full question →

A security audit identified that the /tmp directory is world-writable. Which THREE steps should be taken to secure /tmp on a Linux system? (Select THREE.)

Question 9hardmulti select
Full question →

Which THREE of the following are valid methods to troubleshoot a service that fails to start?

Question 10mediummulti select
Read the full Ansible explanation →

Which TWO statements are true regarding the use of Ansible for automation? (Choose TWO.)

Question 11mediummulti select
Full question →

A Linux administrator is troubleshooting a server that has become unresponsive. The administrator connects via IPMI and runs 'top' but the process list does not show any obvious CPU or memory hog. Which TWO commands could be used to identify I/O wait issues or disk bottlenecks? (Choose TWO.)

Question 12mediummulti select
Full question →

A Linux administrator suspects a memory leak in a process. Which TWO commands can be used to monitor memory usage over time for a specific process? (Choose two.)

Question 13hardmulti select
Full question →

A Linux server is experiencing intermittent connectivity issues. The administrator reviews the system logs and finds the following messages: 'NETDEV WATCHDOG: eth0: transmit queue 0 timed out'. Which THREE actions are likely to resolve this issue? (Choose three.)

Question 14easymulti select
Full question →

A Linux administrator is creating a shell script to back up configuration files to a remote server. The script must ensure that if any command fails (e.g., rsync or tar), the script exits immediately and does not continue. Which TWO of the following should be included in the script to achieve this behavior? (Choose two.)

Question 15mediummulti select
Full question →

Which TWO of the following are valid methods to pass environment variables to a Docker container at runtime?

Question 16hardmulti select
Full question →

A developer is writing a shell script that needs to handle errors. Which THREE of the following are best practices for robust script error handling?

Question 17hardmulti select
Full question →

A Linux administrator needs to implement a cron job that runs a script every day at 2:30 PM. Which TWO cron schedule expressions are equivalent?

Question 18easymulti select
Full question →

Which THREE of the following are valid systemd unit types?

Question 19hardmulti select
Full question →

An administrator runs auditctl -l and ausearch -k auth_log -ts today as shown in the exhibit. The administrator expects to see audit events for /var/log/auth.log but gets no matches. Which TWO actions should the administrator take to resolve this issue?

Exhibit

Refer to the exhibit.

# auditctl -l
LIST_RULES: syscall=openat,open,creat,truncate,ftruncate key=file_monitor
-a always,exclude -F msgtype=CRED_DISP
-w /etc/passwd -p wa -k passwd_changes
-w /etc/shadow -p wa -k shadow_changes
-w /etc/group -p wa -k group_changes
-w /var/log/auth.log -p wa -k auth_log

# ausearch -k auth_log -ts today
<no matches>
Question 20hardmulti select
Full question →

A Linux administrator is troubleshooting a service that fails to start. Which THREE files or commands should be checked to diagnose the issue? (Select THREE.)

These XK0-005 practice questions are part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style XK0-005 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.