Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Based on the exhibit, the myapp service fails to…

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?

⚠ Common exam trap

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.

Answer choices

Why each option matters

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.

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.

About these practice questions

One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 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-006 exam.