Troubleshooting and Optimization

An Amazon EKS application briefly cannot serve requests while refreshing its local cache, but restarting it would delay recovery. Which probe should fail during the refresh to stop Kubernetes Service traffic without restarting the container?

Show the answer

Correct answerC. A readiness probe

AWhy not this: A startup probe gates initial startup checks, not temporary unavailability after startup.

BWhy not this: EC2 status checks assess instance health, not whether a Pod can currently serve application requests.

CWhy this is right: Readiness failures stop Service traffic to the Pod while allowing the container to continue running.

DWhy not this: Liveness probe failures can restart the container rather than merely stop incoming Service traffic.

A failed readiness probe removes the Pod from eligible Service endpoints without restarting its container. Liveness failures can trigger restarts, which would delay recovery here.