Interview questions
Question 130 of 254
FreeHow does the /actuator/health endpoint work, and how do you add a custom health check?
Actuator & Observability
The health endpoint aggregates results from all registered HealthIndicator beans (built-in ones cover things like database connectivity, disk space, and message broker reachability) into one overall status (UP, DOWN, OUT_OF_SERVICE, or UNKNOWN). To add a custom check — say, verifying a downstream API is reachable — implement HealthIndicator (or extend AbstractHealthIndicator) and register it as a bean; Actuator automatically discovers and includes it in the aggregated health report.
Intermediate5 min
