Which command displays the recent logs from Pod `api`?
Answer & explanation
Answer: kubectl logs api
`kubectl logs` prints a container’s stdout and stderr. `describe` shows resource details and events.
Practice troubleshooting with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: kubectl logs api
`kubectl logs` prints a container’s stdout and stderr. `describe` shows resource details and events.