QuizzesSpring Boot Actuator: Mastering Custom Health Indicators
advanced
spring

Spring Boot Actuator: Mastering Custom Health Indicators

An advanced quiz on creating and managing custom health indicators in Spring Boot Actuator.

20 minutes 10 questions Pass at 70%
Time Limit
20 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

10 questions on Spring Boot Actuator: Mastering Custom Health Indicators. Work through them here, then start the quiz to answer them and see your score.

  1. 1.In Spring Boot, which interface must be implemented to create a custom health indicator?

    • AHealthContributor
    • BHealthIndicator
    • CHealthChecker
    • DHealthStatusProvider
  2. 2.What method must be overridden when implementing a custom HealthIndicator in Spring Boot?

    • AhealthCheck()
    • Bhealth()
    • Cstatus()
    • DcheckHealth()
  3. 3.How can you register a custom health indicator in a Spring Boot application?

    • ARegister in HealthRegistry
    • BUse @EnableHealthIndicator
    • CAnnotate with @Component
    • DAdd to application.properties
  4. 4.Which class is used to build the health status in a custom HealthIndicator?

    • AHealthStatus.Builder
    • BHealthCheck.Builder
    • CStatus.Builder
    • DHealth.Builder
  5. 5.What is the default HTTP status code returned by the /actuator/health endpoint when a custom health indicator reports DOWN?

    • A500
    • B503
    • C200
    • D404
  6. 6.How can you exclude a specific custom health indicator from being exposed in the /actuator/health endpoint?

    • AUse @ExcludeHealthIndicator
    • BSet management.exclude=<indicator>
    • CSet management.health.<indicator>.enabled=false
    • DRemove @Component annotation
  7. 7.Which of the following can be used to aggregate multiple health indicators in Spring Boot?

    • AAggregateHealthIndicator
    • BHealthAggregator
    • CHealthComposite
    • DCompositeHealthIndicator
  8. 8.What is the purpose of the Status.UP constant in a custom HealthIndicator?

    • AMarks the component for maintenance
    • BIndicates a critical failure
    • CSignals that the component is operational
    • DDenotes a warning state
  9. 9.Which property can be used to change the default health endpoint path in Spring Boot Actuator?

    • Amanagement.web.health.path
    • Bmanagement.health.path
    • Cmanagement.endpoint.health.path
    • Dmanagement.endpoints.web.base-path
  10. 10.How can you programmatically access the health status of a custom health indicator within a Spring Boot application?

    • AAccess HealthRegistry
    • BUse HealthEndpoint
    • CInject HealthIndicator
    • DCall HealthManager