Courseiva
Troubleshooting And DiagnosticseasyMultiple ChoiceObjective-mapped

EX280 Troubleshooting And Diagnostics Practice Question

An administrator wants to check the exit code of a container that terminated earlier today in a pod that has since been restarted. Which command displays the previous termination details?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

oc logs <pod-name> --previous

oc logs --previous retrieves the log output from the previous container instance before it restarted.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • oc describe pod <pod-name> --history

    Why it's wrong here

    There is no --history flag for oc describe pod.

  • oc logs <pod-name> --previous

    Why this is correct

    The --previous flag fetches logs from the prior container instance that crashed or exited.

  • oc adm pod-logs --last

    Why it's wrong here

    This is not a valid OpenShift CLI command.

  • oc get pod <pod-name> -o exit-code

    Why it's wrong here

    There is no exit-code output format option for oc get.

About these practice questions

This EX280 question is part of Courseiva's 509-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Red Hat exam blueprint

This EX280 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX280 exam.