Question 469 of 522
Administrative TasksmediumMultiple SelectObjective-mapped

LPIC-1 Administrative Tasks Practice Question

This LPIC-1 practice question tests your understanding of administrative tasks. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An administrator needs to restart the SSH service after a configuration change. Which TWO commands can accomplish this on a systemd-based system?

Question 1mediummulti select
Full question →

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 restart sshd

On a systemd-based system, the correct command to restart the SSH service is `systemctl restart sshd`. This command communicates directly with systemd's service manager to stop and then start the sshd unit, ensuring proper state tracking and dependency handling.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • initctl restart sshd

    Why it's wrong here

    initctl is used with Upstart, not systemd.

  • rc.d restart sshd

    Why it's wrong here

    rc.d is used on BSD systems, not typically on Linux.

  • systemctl restart sshd

    Why this is correct

    The correct systemd command to restart a service.

    Related concept

    Read the scenario before looking for a memorised answer.

  • service sshd restart

    Why this is correct

    The 'service' command works as a wrapper for systemd on many distributions.

    Related concept

    Read the scenario before looking for a memorised answer.

  • /etc/init.d/sshd restart

    Why it's wrong here

    This is a SysV init script; may not be available on all systemd systems.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume the `service` command (Option D) is always correct on systemd systems, but while it often works via a compatibility wrapper, the official and reliable command for systemd is `systemctl`, and the question explicitly asks for commands that 'can accomplish this on a systemd-based system'—both C and D are technically valid, but D relies on a legacy compatibility layer that may not be present in minimal or hardened systemd installations.

Detailed technical explanation

How to think about this question

Under the hood, `systemctl restart sshd` sends a D-Bus message to systemd's PID 1, which then executes the ExecStop and ExecStart commands defined in the sshd.service unit file. This ensures that any dependencies (e.g., network.target) are properly ordered and that the service state is recorded in the systemd journal. In contrast, SysV scripts or direct execution of the binary may not integrate with systemd's cgroup management or dependency resolution, leading to inconsistent behavior in complex environments.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the LPIC-1 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LPIC-1 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LPIC-1 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LPIC-1 question test?

Administrative Tasks — This question tests Administrative Tasks — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: systemctl restart sshd — On a systemd-based system, the correct command to restart the SSH service is `systemctl restart sshd`. This command communicates directly with systemd's service manager to stop and then start the sshd unit, ensuring proper state tracking and dependency handling.

What should I do if I get this LPIC-1 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.