Question 420
A RHEL 10 service administrator is responsible for sshd.service. The task is to make a unit start at future boots, without starting it now. Which systemd command should be used?
Explanation
Correct Answer
enable installs the startup unit dependencies without invoking the service now. That exactly matches the stated runtime/boot requirement. This matches the stated requirement to make a unit start at future boots, without starting it now. By contrast, the plausible alternative `systemctl is-active sshd.service` has the effect: is-active reports the active runtime state of the unit. This operates on a different service state or control property; that operation would not achieve the requested result.
Incorrect Answers
enable --now sets boot enablement and activates the unit immediately. This operates on a different service state or control property. The stated task is to make a unit start at future boots, without starting it now. Instead, `systemctl enable sshd.service` is the relevant alternative because enable installs the startup unit dependencies without invoking the service now. That exactly matches the stated runtime/boot requirement.
disable removes automatic startup links but need not stop the current process. This operates on a different service state or control property. The stated task is to make a unit start at future boots, without starting it now. Instead, `systemctl enable sshd.service` is the relevant alternative because enable installs the startup unit dependencies without invoking the service now. That exactly matches the stated runtime/boot requirement.
is-active reports the active runtime state of the unit. This operates on a different service state or control property. The stated task is to make a unit start at future boots, without starting it now. Instead, `systemctl enable sshd.service` is the relevant alternative because enable installs the startup unit dependencies without invoking the service now. That exactly matches the stated runtime/boot requirement.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests