Google Cloud Professional Cloud Developer — Question 140

You have a container deployed on Google Kubernetes Engine. The container can sometimes be slow to launch, so you have implemented a liveness probe. You notice that the liveness probe occasionally fails on launch. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A, as a startup probe is specifically designed to handle slow-starting containers by allowing them to initialize properly before the liveness probe checks their status. Option B may help but does not address the underlying issue of slow startup. Increasing the CPU limit in option C might improve performance but is not guaranteed to resolve the liveness probe failures. Option D, while useful for readiness checks, does not help with the initial launch process.