Courseiva
Administrative TaskshardMultiple ChoiceObjective-mapped

LPIC-1 Administrative Tasks Practice Question

Exhibit

Refer to the exhibit.

$ systemctl status sshd.service
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2023-10-02 10:30:00 UTC; 2h 30min ago
     Docs: man:sshd(8)
   Process: 1234 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 1235 (sshd)
   Tasks: 1 (limit: 512)
   CGroup: /system.slice/sshd.service
           └─1235 /usr/sbin/sshd -D

Refer to the exhibit. The administrator restarts the sshd service. What is the new main PID after restart?

⚠ Common exam trap

The trap here is that candidates mistakenly think the PID remains the same after a restart, confusing 'restart' with 'reload' (which sends a SIGHUP and keeps the same PID), or they assume the new PID will be the next sequential number like 1235.

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

It will be a new, different PID.

When the sshd service is restarted, the old process is terminated and a new process is spawned, resulting in a new main PID. The PID is a unique identifier assigned by the kernel to each process at creation time, and it is never reused immediately after termination. Therefore, the new main PID will be different from the previous one.

Answer analysis

Option-by-option breakdown

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

  • It remains the same.

    Why it's wrong here

    Systemd assigns new PIDs for each start event.

  • 1235

    Why it's wrong here

    1235 is the current main PID; after restart, a new PID will be assigned.

  • 1234

    Why it's wrong here

    1234 was the ExecStart process that exited; the main PID is 1235 before restart.

  • It will be a new, different PID.

    Why this is correct

    After restart, the service will have a new main PID.

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.