2V0-72.22PSE · Question #59
How can the Health Indicator status severity order be changed?
The correct answer is D. Using the property management.health.status.order. Option D is correct because Spring Boot exposes the management.health.status.order property specifically to let you define the severity precedence of health statuses (e.g., DOWN,OUT_OF_SERVICE,UNKNOWN,UP). The HealthAggregator reads this ordered list to determine the overall…
Question
How can the Health Indicator status severity order be changed?
Options
- AUsing the @Primary annotation
- BUsing the @Ordered annotation
- CIt cannot be changed.
- DUsing the property management.health.status.order
How the community answered
(41 responses)- A5% (2)
- B2% (1)
- C2% (1)
- D90% (37)
Explanation
Option D is correct because Spring Boot exposes the management.health.status.order property specifically to let you define the severity precedence of health statuses (e.g., DOWN,OUT_OF_SERVICE,UNKNOWN,UP). The HealthAggregator reads this ordered list to determine the overall system health when multiple indicators report different statuses.
- A (@Primary) is wrong because
@Primaryresolves bean ambiguity in the Spring context - it has no concept of health status ordering. - B (@Ordered) is wrong because
@Orderedcontrols the execution order of beans in a chain, not the severity ranking of health statuses. - C (cannot be changed) is wrong because Spring Boot intentionally makes this configurable to support custom status types beyond the built-in defaults.
Memory tip: Think of it as a management concern - you manage the health status priority through management.health.status.order, just like other actuator behavior lives under the management.* namespace.
Topics
Community Discussion
No community discussion yet for this question.