Courseiva
Administrative TaskshardMultiple ChoiceObjective-mapped

LPIC-1 Administrative Tasks Practice Question

Exhibit

Refer to the exhibit.

$ systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2023-08-14 10:30:45 UTC; 2h 15min ago
     Docs: man:apache2(8)
 Main PID: 1234 (apache2)
    Tasks: 55 (limit: 4915)
   Memory: 24.5M
   CGroup: /system.slice/apache2.service
           ├─1234 /usr/sbin/apache2 -k start
           ├─1235 /usr/sbin/apache2 -k start
           └─1236 /usr/sbin/apache2 -k start

$ systemctl list-dependencies apache2
apache2.service
● └─network.target
● └─syslog.service

Based on the exhibit, what will happen if the syslog service is stopped?

⚠ Common exam trap

Watch out — candidates often confuse 'Wants' (soft dependency) with 'Requires' (hard dependency), assuming any dependency means the dependent service will be stopped or restarted when the target service changes.

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

Apache2 will continue running because the dependency is a soft dependency

In Linux, services managed by systemd can have dependencies declared as 'Requires' (hard) or 'Wants' (soft). A soft dependency means that the dependent service (Apache2) does not require the target service (syslog) to be running; it will continue to operate even if syslog is stopped. The exhibit likely shows a 'Wants' directive, which does not enforce a strict ordering or runtime requirement.

Answer analysis

Option-by-option breakdown

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

  • Apache2 will be stopped because it depends on syslog

    Why it's wrong here

    Only hard dependencies cause stop.

  • The system will prompt to restart syslog before stopping

    Why it's wrong here

    No such prompt; systemd will just stop syslog.

  • Apache2 will be automatically restarted because it requires syslog

    Why it's wrong here

    It only 'wants' syslog, not 'requires'.

  • Apache2 will continue running because the dependency is a soft dependency

    Why this is correct

    By default, listed dependencies are 'Wants', not 'Requires'.

About these practice questions

One of 527 original LPIC-1 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 LPIC-1 practice question is part of Courseiva's free LPI 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 LPIC-1 exam.