Question 850
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Pod dispatch-api in fulfillment is repeatedly restarting with CrashLoopBackOff after a configuration change; the team needs the failed container's actual error first. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment logs pod/dispatch-api --previous and inspect Pod events before changing the workload. The direct acceptance evidence is: Run kubectl -n fulfillment describe pod dispatch-api and verify corrected Pods become Ready without repeated restarts.
Incorrect Answers
The offered statement is true for this other mechanism: A Job retries failed Pod executions up to its backoff limit, but increasing retries does not repair an invalid command or missing dependency. It does not explain the facts described here, which follow from: CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error.
Finalizers protect cleanup work; forcibly removing them without identifying failing controllers can orphan resources and leak infrastructure. That explanation applies to a different technical failure. Here the controlling principle is: CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error.
The offered statement is true for this other mechanism: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. It does not explain the facts described here, which follow from: CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error.