The answer is to check that the application's configuration file exists and is readable. This is the correct first step because systemd will execute the binary specified in `ExecStart`, but if that binary immediately fails due to a missing or unreadable configuration file, the service will enter a failed state and trigger the `Restart=on-failure` directive. On the CompTIA Linux+ XK0-005 exam, this scenario tests your understanding of the boot sequence and dependency chain—many candidates mistakenly jump to checking logs or permissions, but the most common cause of a startup failure is a missing config file that the application expects at launch. A key trap is assuming the binary itself is broken when the real issue is a prerequisite file. Remember the mnemonic: “Config first, logs last”—always verify the application’s expected configuration path before digging deeper into systemd journal entries or file permissions.
XK0-005 System Management Practice Question
This XK0-005 practice question tests your understanding of system management. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit.
# cat /etc/systemd/system/myapp.service
[Unit]
Description=My Application
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/myapp
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
# systemctl daemon-reload
# systemctl start myapp
# systemctl status myapp
● myapp.service - My Application
Loaded: loaded (/etc/systemd/system/myapp.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since ...
Process: 5678 ExecStart=/usr/local/bin/myapp (code=exited, status=1/FAILURE)
Oct 23 15:00:00 server myapp[5678]: Error: Configuration file not found
Based on the exhibit, the myapp service fails to start. Which troubleshooting step should be taken first?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "first"
Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Check that the application's configuration file exists and is readable
The exhibit shows a systemd unit file for the myapp service with `ExecStart=/usr/local/bin/myapp` and `Restart=on-failure`. The service fails to start, and the most common cause for such a failure is a missing or misconfigured application configuration file that the binary expects at launch. Option D is correct because verifying the configuration file's existence and readability is a fundamental prerequisite before investigating deeper issues like permissions or logs.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
Increase the RestartSec value to allow more time for startup
Why it's wrong here
Does not address missing config file.
✗
Verify that /usr/local/bin/myapp has execute permission
Why it's wrong here
The error is about a missing config file, not execute permission.
✗
Inspect the system journal for more detailed error messages
Why it's wrong here
Additional logs may help, but the error is already clear.
✓
Check that the application's configuration file exists and is readable
Why this is correct
The error indicates a missing config file.
Clue confirmation
The clue word "first" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often jump to inspecting logs (Option C) or adjusting restart timers (Option A) without first verifying the most basic prerequisite—the configuration file—which is a direct and faster check that aligns with the 'first step' in systematic troubleshooting.
Detailed technical explanation
How to think about this question
Systemd unit files define service behavior, and when a service fails to start, the journal (accessible via `journalctl -u myapp.service`) provides detailed error messages. However, many applications (e.g., web servers, databases) immediately exit with a non-zero status if their configuration file is missing or unreadable, causing systemd to trigger the `Restart=on-failure` policy. In real-world scenarios, a common mistake is to assume the binary is broken or permissions are wrong, when in fact the config file path in the unit file or the application's default search path is incorrect.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the XK0-005 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this XK0-005 question in full detail.
System Management — This question tests System Management — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Check that the application's configuration file exists and is readable — The exhibit shows a systemd unit file for the myapp service with `ExecStart=/usr/local/bin/myapp` and `Restart=on-failure`. The service fails to start, and the most common cause for such a failure is a missing or misconfigured application configuration file that the binary expects at launch. Option D is correct because verifying the configuration file's existence and readability is a fundamental prerequisite before investigating deeper issues like permissions or logs.
What should I do if I get this XK0-005 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "first". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This XK0-005 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-005 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.