Question 1
Topic: Essential Commands
Skill tested: Diagnoses service failures using systemd status and journal logs.
A payment application is managed by the systemd unit `ledger-api.service`. After a configuration deployment, the service repeatedly exits with a nonzero status. The unit is enabled and the host has ample disk space and memory. The operations team needs the first diagnostic action that identifies the failure recorded by systemd without changing the service state or discarding evidence. What should the administrator do?
`journalctl -u ledger-api.service -b` filters the systemd journal to messages for this unit from the current boot, providing the relevant error context without altering the service. Restarting may change the state and obscure a transient failure; disabling and enabling affects startup configuration but does not diagnose the cause. `systemctl reset-failed` clears the failed-state indication and failure counters, which is inappropriate before evidence has been collected.