Check: health checks

Knowledge check · 5 min · Module 4, lesson 5 of 55 min left in this module

Module 4 · Health checksLesson 5 of 5

Goal: Confirm you can say what a health check protects, write one that isn't fragile, and fix a restart loop.

Four questions: three on Module 4, one on Module 2. Every answer explains itself, right or wrong.

Your /healthz checks the database on every call. The database is unreachable for three minutes. What happens on ComputeSphere?
Where should the app report that its database is unreachable, without failing the health check?
An update stays on Redeploying. The deploy log repeats Unhealthy, and the runtime log shows the app starting over every two minutes, never reaching its ready line. It takes three minutes to start. Initial delay is 10 and Check interval 10. What do you do?
From Module 2: a new service fails, and the deploy log says Restarting repeatedly. Where do you look next?

Retry as often as you like.