PRACTICE / UNDERSTAND / REPEAT

Kubernetes practice question

Practice troubleshooting with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Troubleshooting · MCQQuestion link ↗

Which command displays the recent logs from Pod `api`?

Choose one answer
Answer & explanation

Answer: kubectl logs api

`kubectl logs` prints a container’s stdout and stderr. `describe` shows resource details and events.