Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Ensure that a script runs once at system…

An administrator needs to ensure that a script runs once at system initialization, before any network services start. Which systemd target should the script be associated with?

⚠ Common exam trap

Many exam-takers confuse sysinit.target with basic.target or multi-user.target, mistakenly thinking that 'basic' or 'multi-user' implies early execution, when in fact sysinit.target is the correct target for pre-network initialization tasks.

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

sysinit.target

The sysinit.target is the correct target because it is designed for early system initialization tasks that must complete before any network or multi-user services start. Scripts associated with this target run during the boot process, after the basic system is initialized but before network services are brought up, ensuring the script executes once at system initialization.

Answer analysis

Option-by-option breakdown

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

  • multi-user.target

    Why it's wrong here

    Multi-user.target is reached after network and other services are started.

  • basic.target

    Why it's wrong here

    Basic.target is after sysinit but before multi-user; network may not be up.

  • sysinit.target

    Why this is correct

    Sysinit.target is intended for early system initialization tasks.

  • network.target

    Why it's wrong here

    Network.target is used to indicate network is available; not for early init.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.