LFCS Service Configuration Practice Question
A system administrator needs to ensure the Apache httpd service starts automatically on system boot. Which command should they use?
⚠ Common exam trap
A common mix-up: candidates confuse `systemctl start` (immediate runtime action) with `systemctl enable` (persistent boot-time configuration), leading candidates to choose the command that works now but fails after a reboot.
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 enable httpd
The `systemctl enable httpd` command creates the necessary symlinks in the systemd unit configuration directories (typically `/etc/systemd/system/multi-user.target.wants/`) to ensure the Apache httpd service starts automatically at boot time. This is the correct approach because `enable` configures the service to be started on system startup, whereas `start` only runs it immediately without affecting boot behavior.
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 enable httpd
Why this is correct
The enable subcommand creates the persistent symlink that ties httpd into the boot target, so systemd starts it automatically at every boot. Start alone only launches the service for the current session, failing the boot-persistence requirement.
- ✗
systemctl start httpd
Why it's wrong here
`systemctl start httpd` only launches the service in the current session; it writes no enablement symlink, so the unit stays inactive after reboot. It is tempting because starting is genuinely needed when bringing httpd up immediately, and that would be the right command if the service were already enabled and merely stopped.
- ✗
systemctl disable httpd
Why it's wrong here
`systemctl disable httpd` removes the symlinks that cause a unit to start at boot, so it does the opposite of the requirement. It is tempting because `disable` is the counterpart to `enable`, and it is the right command when decommissioning a service or preventing it from launching automatically after a migration.
- ✗
systemctl reload httpd
Why it's wrong here
`systemctl reload httpd` re-reads httpd's configuration without interrupting active connections; it does not touch boot-time activation. It is tempting because reloading is the routine way to apply config changes to a running daemon, and it would be right when httpd is already enabled and you have edited httpd.conf. Enabling on boot requires `systemctl enable httpd`.
Go deeper
Related to this question
About these practice questions
One of 406 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.