EX280 Troubleshooting And Diagnostics Practice Question
A pod in the 'production' namespace is crashing repeatedly due to a segmentation fault in the application binary. The administrator needs to inspect the file system of the crashing container without altering the deployment spec permanently. Which command is most appropriate?
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 debug pod/my-app-6b79f-abcde
oc debug with a pod target creates a debugging pod that shares the namespace and mounts the containers of the target pod, allowing file system inspection.
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 logs pod/my-app-6b79f-abcde --previous
Why it's wrong here
oc logs --previous shows standard output from the previous container instance but does not allow file system access.
- ✗
oc rsh deployment/my-app
Why it's wrong here
oc rsh requires a running container to attach to; a crashing container cannot be accessed via rsh.
- ✗
oc exec -it pod/my-app-6b79f-abcde -- /bin/sh
Why it's wrong here
oc exec also requires the container to be running and healthy to execute commands.
- ✓
oc debug pod/my-app-6b79f-abcde
Why this is correct
oc debug creates a troubleshooting container attached to the pod namespace for inspection.
About these practice questions
Courseiva writes every EX280 question from scratch — 509 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.