Troubleshooting and Optimization

An Amazon EKS container needs 30–180 seconds to initialize, and its liveness endpoint fails until initialization finishes. After initialization, deadlocks must trigger a restart within approximately 30 seconds; which configuration meets both requirements without imposing a fixed 180-second delay on every start?

Show the answer

Correct answerC. Use a startup probe with a 180-second budget, then a liveness probe with a 30-second failure window.

AWhy not this: Readiness failures control traffic eligibility but do not restart a deadlocked container.

BWhy not this: A long liveness failure window tolerates startup but also delays detection of deadlocks after startup.

CWhy this is right: The startup probe protects initialization and enables the short liveness failure window as soon as startup succeeds.

DWhy not this: A fixed initial delay postpones liveness checks for the full interval even when initialization finishes early.

A startup probe suppresses liveness checks until startup succeeds, allowing variable initialization times. Liveness can then use a short failure window; a fixed initial delay postpones detection even when startup finishes quickly.