Question 430
During RHEL 10 incident response, an operator needs to list known boot ids for which journal records exist (service sshd.service when applicable). Which journalctl command supplies that evidence?
Explanation
Correct Answer
--list-boots shows retained boot identifiers and their time intervals. It gives the specified scope of log evidence. This matches the stated requirement to list known boot ids for. By contrast, the plausible alternative `journalctl -u sshd.service` has the effect: -u filters journal entries to the specified unit; that operation would not achieve the requested result.
Incorrect Answers
-b selects journal records associated with the current boot. The stated task is to list known boot ids for. Instead, `journalctl --list-boots` is the relevant alternative because --list-boots shows retained boot identifiers and their time intervals. It gives the specified scope of log evidence.
-b -1 selects the preceding boot instead of the current one. The stated task is to list known boot ids for. Instead, `journalctl --list-boots` is the relevant alternative because --list-boots shows retained boot identifiers and their time intervals. It gives the specified scope of log evidence.
-u filters journal entries to the specified unit. The stated task is to list known boot ids for. Instead, `journalctl --list-boots` is the relevant alternative because --list-boots shows retained boot identifiers and their time intervals. It gives the specified scope of log evidence.






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