Bird
0
0

Which interface must you implement to create a custom health check in Spring Boot?

easy📝 Syntax Q12 of 15
Spring Boot - Actuator
Which interface must you implement to create a custom health check in Spring Boot?
AHealthIndicator
BHealthCheck
CHealthService
DHealthStatus
Step-by-Step Solution
Solution:
  1. Step 1: Recall Spring Boot health customization

    Custom health checks require implementing a specific interface.
  2. Step 2: Identify correct interface

    The interface to implement is HealthIndicator, which requires overriding health().
  3. Final Answer:

    HealthIndicator -> Option A
  4. Quick Check:

    Custom health check interface = HealthIndicator [OK]
Quick Trick: Custom health checks need HealthIndicator interface [OK]
Common Mistakes:
  • Using HealthCheck instead of HealthIndicator
  • Confusing with HealthService or HealthStatus
  • Not overriding health() method

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes