Spring Boot - ActuatorIf you want to expose health details only to authenticated users, which property should you configure?Amanagement.endpoint.health.show-details=alwaysBmanagement.endpoint.health.show-details=when-authorizedCmanagement.endpoint.health.show-details=neverDmanagement.endpoint.health.show-details=authenticatedCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand property values for health details visibility"when-authorized" shows details only to authenticated users.Step 2: Confirm correct property valueOther values either always show or never show details.Final Answer:management.endpoint.health.show-details=when-authorized -> Option BQuick Check:Show health details only when authorized = when-authorized [OK]Quick Trick: Use when-authorized to restrict health details to authenticated users [OK]Common Mistakes:Using 'authenticated' which is invalidConfusing with 'always' or 'never'
Master "Actuator" in Spring Boot9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Spring Boot Quizzes Advanced Patterns - Event publishing with ApplicationEventPublisher - Quiz 3easy Advanced Patterns - Custom auto-configuration - Quiz 7medium Advanced Patterns - Why enterprise patterns matter - Quiz 15hard Aspect-Oriented Programming - @Around advice for full control - Quiz 14medium Async Processing - Exception handling in async - Quiz 15hard Caching - Redis as cache provider - Quiz 14medium Docker and Deployment - Why containerization matters - Quiz 15hard Spring Boot Actuator - Actuator endpoints overview - Quiz 10hard Spring Boot Actuator - Metrics with Micrometer - Quiz 15hard Testing Spring Boot Applications - @SpringBootTest for integration tests - Quiz 12easy