Bird
0
0

If you want to expose health details only to authenticated users, which property should you configure?

medium📝 Conceptual Q5 of 15
Spring Boot - Actuator
If you want to expose health details only to authenticated users, which property should you configure?
Amanagement.endpoint.health.show-details=always
Bmanagement.endpoint.health.show-details=when-authorized
Cmanagement.endpoint.health.show-details=never
Dmanagement.endpoint.health.show-details=authenticated
Step-by-Step Solution
Solution:
  1. Step 1: Understand property values for health details visibility

    "when-authorized" shows details only to authenticated users.
  2. Step 2: Confirm correct property value

    Other values either always show or never show details.
  3. Final Answer:

    management.endpoint.health.show-details=when-authorized -> Option B
  4. Quick 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 invalid
  • Confusing with 'always' or 'never'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes