LFCS Service Configuration Practice Question
Which TWO directives are typically used in a systemd service unit file to configure dependencies?
⚠ Common exam trap
Many exam-takers confuse ordering directives (`After`, `Before`) with dependency directives (`Wants`, `Requires`), mistakenly thinking that specifying an order also implies a dependency, but systemd treats them as separate concepts that must be explicitly combined.
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
✓
Wants
B is correct because the `Wants` directive in a systemd service unit file specifies a weaker dependency: the listed units are started if possible, but the current unit will still activate even if they fail. E is correct because the `Requires` directive creates a stronger dependency: the listed units must be successfully started for the current unit to start; if they fail, the current unit is deactivated. Both are fundamental for defining service dependencies in systemd.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
After
Why it's wrong here
Orders startup but not a dependency.
- ✓
Wants
Why this is correct
Creates a weak dependency.
- ✗
Before
Why it's wrong here
Orders startup but not a dependency.
- ✗
Alias
Why it's wrong here
Provides alternative names for the unit.
- ✓
Requires
Why this is correct
Creates a hard dependency.
Go deeper
Related to this question
About these practice questions
One of 507 original LFCS 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 →
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.