
Answer-first summary for fast verification
Answer: Add a startup probe.
The correct answer is **A. Add a startup probe**. Liveness probes restart containers if they fail, but during slow startup, these probes might run before the app is ready, causing unnecessary restarts. A startup probe allows Kubernetes to delay liveness checks until the app has fully started. Increasing the initial delay (B) could help temporarily but is less robust for variable startup times. Readiness probes (D) handle traffic readiness, not startup delays. CPU limits (C) are unrelated to probe timing issues.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have a container running on Google Kubernetes Engine that occasionally starts slowly, prompting you to implement a liveness probe. However, the probe sometimes fails during container startup. What is the recommended solution?
A
Add a startup probe.
B
Increase the initial delay for the liveness probe.
C
Increase the CPU limit for the container.
D
Add a readiness probe.
No comments yet.