Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

After an outage where all services reported healthy while customers saw errors, leadership asks you to fix health checking across Dropwizard and Spring Boot services. What standard would you set?

I would set a standard in which health means the ability to serve, defined per service, rather than dependencies answering a ping. Liveness, readiness and dependency status are separate signals with liveness kept trivial, and the same endpoint names and response format are used across Dropwizard and Spring Boot. Because probes can never cover every failure, the real safety net is SLO-based alerting on actual traffic, and health definitions are reviewed after incidents and tested with fault injection.

Why this question is asked

An outage in which every dashboard is green while customers see errors damages trust in monitoring more than any red alert. Leadership's question is really: how do we know the truth next time? Interviewers ask this to see whether a senior engineer can turn one incident into a standard that is simple enough for many teams to follow and honest enough to catch real failures. In this answer, we will look at why everything reported healthy, define what healthy should mean, separate the signals, add alerting on real traffic, make the stacks consistent and keep the standard alive.

1Why Everything Reported Healthy

Most health checks test reachability: can we open a connection to the database, does the cache answer a ping. In a typical incident of this kind, the database answered SELECT 1 perfectly, but one table was locked by a migration, so every checkout query timed out. Or a downstream API returned 200 with an error in the body. Or a feature flag pointed to a missing configuration. The checks proved the dependencies were up; nobody had checked whether the service could do its job.

There is also a structural reason. A health check runs from inside the pod and sees only what that pod sees. A wrong TLS certificate on the load balancer, a broken DNS record or an expired partner key in one region may never show up in any pod's checks. So the first lesson for leadership is that health checks alone can never be the whole answer.

2Define Healthy as the Ability to Serve

The standard asks every service to write down, in one paragraph, what healthy means for it: which user-facing operations it must perform and which dependencies those need. A checkout service is healthy if it can read the cart, price it and write an order. Its readiness check therefore runs a cheap read on the real orders table with a short timeout, not just SELECT 1, and counts the recent error rate of its pricing calls.

This definition is reviewed with the service owner, kept next to the code and linked from the runbook. The point is not to make checks heavy; they still run in milliseconds. The point is to choose what they test from the service's purpose instead of from the list of connections it happens to open.

3Separate the Signals and Keep Liveness Simple

One endpoint cannot answer three different questions, so the standard defines three. Liveness: is the process able to run at all; restarting it might help. It checks no dependencies. Readiness: should this instance get traffic now; it includes the critical dependencies from the definition above. Dependency status: a detailed report of every dependency, critical or not, for dashboards and people, which never drives automated restarts.

Keeping liveness trivial is the most important rule, because a dependency in liveness makes the orchestrator restart every pod during a shared outage. Readiness is where the service's definition of healthy goes, and the detailed status is where everything else goes.

Signals in the health standard
SignalAnswersIncludesDrives
LivenessIs the process broken?process, event loop, deadlockscontainer restart
ReadinessShould it get traffic?critical dependencies, real queryload balancer routing
Dependency statusWhat is degraded?every dependency, with detailsdashboards, people
SLO alertsAre users hurt?error rate, latency of real requestspaging the on-call
Only the last row measures what customers experience.

4Alert on Real Traffic With SLOs

The safety net for everything checks cannot see is alerting on the traffic itself. Each service defines service level objectives (SLOs), targets such as 99.9 percent of checkout requests succeed and 99 percent finish under 500 ms over 30 days. The difference to 100 percent is the error budget. We alert on burn rate, how fast that budget is being spent: if errors run at 14 times the allowed rate for 5 minutes and also over the last hour, we page, because at that pace a month's budget is gone in about two days.

This catches the outage from the incident directly. It does not matter whether the cause was a locked table, a bad certificate or a broken DNS record: customers' requests failed, the error rate rose, and the alert fires. Measuring at the load balancer or gateway as well as in the service also covers failures that never reach a pod. Synthetic checks, scripted user journeys run every minute from outside, add coverage for paths with little traffic.

5One Format Across Dropwizard and Spring Boot

Tooling only works across the estate if the endpoints look the same. Spring Boot Actuator already offers liveness and readiness groups at /actuator/health/liveness and /actuator/health/readiness. For Dropwizard, the platform library exposes the same two paths with the same JSON shape, a top-level status of UP or DOWN plus a components object, built on the health module's critical and ready checks. The orchestrator configuration, the dashboards and the status page then need one template, not two.

6Keeping the Standard Honest

A standard decays unless it is tested. After every incident, the review asks one fixed question: did the health signals and SLO alerts tell the truth, and if not, what definition changes? In staging, a monthly fault injection exercise breaks one dependency per service, by blocking it, slowing it to 5 seconds or returning errors, and checks that readiness and alerts react as the definition says and that no pod restarts.

Finally, we report to leadership with measures they can follow: the share of services with a written health definition, the share with SLO alerts, and for each incident whether we detected it before customers told us. That turns a vague fix the monitoring request into a programme with visible progress.

7Follow-up questions

How do you stop readiness checks from becoming heavy and slow?

The standard sets limits: each check has a timeout under 1 second, heavy checks run on a schedule and the endpoint returns the last result, and checks may read but never write business data. A real query on a small indexed row is enough to prove the table is usable. If a team needs more, that belongs in synthetic monitoring, not in a probe called every few seconds.

What if teams resist writing SLOs?

Start with defaults generated from current traffic: take the last month's success rate and latency for the main endpoints and propose targets slightly below them, so alerts do not fire on day one. Teams then adjust them in a short review. Once a team sees an alert catch a problem before customers did, adoption usually follows.

Should a non-critical dependency ever affect readiness?

No. If the recommendations service is down, the shop should still sell, perhaps without recommendations. Marking it non-critical keeps it in the dependency status for people, while readiness and restarts ignore it. Making it critical would let a minor feature take the whole service out of rotation.

8Conclusion

In this answer, we set a health standard after an outage that monitoring missed. Healthy is defined per service as the ability to serve, liveness, readiness and dependency status are separate signals with liveness kept simple, and both stacks expose the same endpoints and format. SLO burn-rate alerts on real traffic catch what probes cannot, and incident reviews and fault injection keep the definitions honest.

What to say in the interviewAbout 80 seconds aloud

Open with

I'd start by explaining that our checks proved dependencies were reachable, not that the service could do its job, and that checks inside a pod can never see every failure.

Then, if they want more

So the standard has two halves. First, honest health signals: each service writes down what healthy means for it, the operations it must perform and the dependencies they need, and readiness tests exactly that with cheap real operations and short timeouts.

Liveness stays trivial, process only, so a shared outage never restarts every pod, and a separate dependency status covers everything else for dashboards. Spring Boot already has actuator liveness and readiness groups, and our Dropwizard library exposes the same paths and JSON shape, so tooling works everywhere.

Second, and more important, alerting on real traffic: every service has SLOs on success rate and latency, and we page on error-budget burn rate measured in the service and at the edge, plus synthetic journeys for quiet paths. That catches the locked table or the bad certificate regardless of cause.

To keep it honest, every incident review asks whether the signals told the truth, we run fault injection in staging monthly, and I'd report coverage and detect-before-customers numbers to leadership.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "After an outage where all services reported healthy while customers saw errors...": https://scrivio-interview-library.netlify.app/java/dropwizard/1db385373f/