2V0-72-22 practice question 8 of 15

Which two statements are correct regarding the Health Indicator status? (Choose two.)

Full set: 79 questions
Answer options
A:

A. The last status in a sorted list of HealthIndicators is used to derive the final system health.

B:

B. The status with the least severity is used as the top-level status.

C:

C. Custom status values can be created.

Correct answer
D:

D. The built-in status values are DOWN, OUT_OF_SERVICE, UNKNOWN, and UP in decreasing order of severity.

Correct answer
E:

E. The severity order cannot be changed due to security reasons.

Correct Answer:
C. C. Custom status values can be created.; D. D. The built-in status values are DOWN, OUT_OF_SERVICE, UNKNOWN, and UP in decreasing order of severity.
Explanation

The Spring Boot Actuator health endpoint aggregates status from multiple HealthIndicator components. The framework allows for full customization of the health system. Developers can define custom status types by creating beans of type Status and registering them. The default built-in statuses are DOWN, OUTOFSERVICE, UP, and UNKNOWN. While the question incorrectly swaps the default severity order of UP and UNKNOWN (the correct default is DOWN, OUTOFSERVICE, UP, UNKNOWN), it correctly lists the names of the built-in statuses, making it a better choice than the other incorrect options.

Why Incorrect

A. The final health status is derived from the first status in the severity-sorted list (the most severe), not the last.
B. The status with the highest severity (e.g., DOWN) is used as the top-level status, not the one with the least severity.
E. The severity order is configurable via the management.endpoint.health.status.order application property.

References

1. Spring Boot Reference Documentation, 3.2.5, "Actuator - Monitoring Health". Section 4.2. It details the auto-configured HealthIndicators.

2. Spring Boot Reference Documentation, 3.2.5, "Actuator - Custom HealthIndicators". Section 4.2.2. This section explains how to write custom health indicators and define custom statuses.

3. Spring Boot Reference Documentation, 3.2.5, Appendix A: Common application properties. The property management.endpoint.health.status.order is listed, confirming that the order can be changed.

Scroll to Top