A container on GKE is slow to start and its liveness probe intermittently fails at launch. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Add a startup probe..
Why this is the answer
A startup probe is designed to detect if an application inside a container has successfully started. If configured, it runs before liveness and readiness probes. If the startup probe fails, the container is restarted. If it succeeds, liveness and readiness probes begin. This is ideal for slow-starting applications, as it prevents the liveness probe from prematurely restarting the container while it's still initializing. Increasing the initial delay for the liveness probe is a workaround but doesn't address the root cause of a slow startup and can still lead to restarts if the startup time varies. Increasing the CPU limit might help if the slowness is due to resource starvation, but it's not the primary solution for intermittent liveness probe failures during startup. A readiness probe determines if a container is ready to serve traffic; it doesn't prevent restarts due to slow startup.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed