Question 960
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Container dispatch-api in fulfillment restarts after liveness probe failures during slow initialization. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Choose realistic initial delays or startup probes based on measured application start behavior. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment describe pod dispatch-api plus kubectl -n fulfillment logs dispatch-api --previous to distinguish startup and runtime faults. The relevant mechanism is: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes.
Incorrect Answers
The suggested review tracks a different technical risk: Kubelet relies on a CRI-compatible runtime for container creation; restarting application Pods cannot repair an unavailable runtime. Here the sustained control must address: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. Choose “Choose realistic initial delays or startup probes based on measured application start behavior”.
That safeguard is relevant to: DaemonSets schedule according to node selection and toleration rules; unavailable node agents can break networking or logging on selected workers. The current failure instead follows from: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. Its prevention measure is “Choose realistic initial delays or startup probes based on measured application start behavior”.
The suggested review tracks a different technical risk: HPA CPU utilization is computed from reported metrics relative to requests; missing metrics or requests can prevent scaling decisions. Here the sustained control must address: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. Choose “Choose realistic initial delays or startup probes based on measured application start behavior”.