Courseiva

LFCS User and Group Management Practice Question

Order the steps to create a systemd service unit that runs a script at boot.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

✓

Create the unit file, then enable the service for boot, then start the service, then check the status.

Creating the unit file, enabling for boot, starting, and checking status are standard steps.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Create the unit file, then enable the service for boot, then start the service, then check the status.

    Why this is correct

    This is correct because the unit file must exist before enabling, enabling makes the service start at boot, starting runs it immediately, and checking status verifies it's running.

  • ✗

    Start the service, then create the unit file, then enable for boot, then check status.

    Why it's wrong here

    This is incorrect because the unit file must be created before the service can be started; you cannot start a service that hasn't been defined yet.

  • ✗

    Enable the service for boot, then create the unit file, then start, then check status.

    Why it's wrong here

    This is incorrect because you cannot enable a service that does not have a unit file yet; enabling requires the file to be present.

  • ✗

    Create the unit file, then start the service, then enable for boot, then check status.

    Why it's wrong here

    This is incorrect because starting before enabling will not ensure the service starts at boot; enabling must be done before or after starting to set the boot behavior, but it's typically done before starting to avoid a missed boot dependency.

About these practice questions

This LFCS question is part of Courseiva's 406-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 LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.