🔥 3-day streak
Kubernetes and Cloud Native Associate89 / 142
Question 89 of 142

A developer reports that a Pod named 'payment-api' keeps restarting. When you run 'kubectl logs payment-api', you only see startup messages from the container that is currently running, and nothing that explains the earlier failure. You need to inspect the output the container produced during its last run before it crashed. Which command retrieves the logs from the previous, terminated instance of the container?

Reviewed for accuracy · Report an issueNext question