PRACTICE / UNDERSTAND / REPEAT

Kubernetes: Troubleshooting

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

17 questionsAnswers explainedFree · no login
Question 1 of 17
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.