Courseiva
System ArchitecturemediumMultiple ChoiceObjective-mapped

LPIC-1 System Architecture Practice Question

A system administrator needs to ensure that the httpd service starts automatically when the system enters the multi-user.target. Which command should be used?

⚠ Common exam trap

Candidates often confuse `systemctl start` (which only runs the service now) with `systemctl enable` (which configures it to start at boot), leading candidates to pick option C.

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 to ensure the httpd service starts automatically when the system enters the multi-user.target. This is the correct method to enable a service to start at boot in a systemd-based Linux system.

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 add-wants multi-user.target httpd.service

    Why it's wrong here

    This is not a valid systemctl command; the correct command is systemctl enable.

  • systemctl enable httpd

    Why this is correct

    Enables the service to start automatically on boot for the current default target.

  • systemctl start httpd

    Why it's wrong here

    Starts the service immediately but does not enable it on boot.

  • systemctl set-default multi-user.target

    Why it's wrong here

    Sets the default target to multi-user, but does not enable the httpd service.

About these practice questions

This LPIC-1 question is part of Courseiva's 527-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 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.