Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A service named 'myapp' is currently running but…

A service named 'myapp' is currently running but should be disabled so it does not start automatically at boot. Which command accomplishes this?

⚠ Common exam trap

Candidates often confuse 'disable' with 'stop' or 'mask', mistakenly thinking that stopping a service also prevents it from starting at boot, or that masking is the same as disabling when it actually prevents all manual and automatic starts.

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

systemctl disable myapp

The correct command is `systemctl disable myapp` because it removes the symlinks that cause the service to start automatically at boot, while leaving the currently running service unaffected. This directly meets the requirement of disabling automatic startup without stopping the running process.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • systemctl disable myapp

    Why this is correct

    Disable removes the 'wants' or 'requires' symlinks, preventing automatic startup.

  • systemctl kill myapp

    Why it's wrong here

    Kill sends signals to the service processes; it does not disable the service.

  • systemctl mask myapp

    Why it's wrong here

    Mask links the service to /dev/null, making it impossible to start manually or automatically.

  • systemctl stop myapp

    Why it's wrong here

    Stop halts the current session but does not affect future boot behavior.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.