Q46 AKS Domain 1 · 20–25% of exam Priority · Real Exam

Your deployment shows CrashLoopBackOff. Which command reveals why the previous container instance terminated?

  1. A kubectl logs <pod>
  2. B kubectl logs <pod> --previous (correct answer)
  3. C kubectl get pod <pod> -o wide
  4. D kubectl top pod <pod>

Shortcut: By the time you investigate, the failed container has been replaced. --previous returns the log stream of the last terminated instance, which contains the actual failure.