Bird
0
0

What is the default security behavior of Spring Boot actuator endpoints when Spring Security is on the classpath?

easy📝 Conceptual Q2 of 15
Spring Boot - Actuator
What is the default security behavior of Spring Boot actuator endpoints when Spring Security is on the classpath?
AAll endpoints require authentication
BOnly health endpoint is public, others require authentication
CAll endpoints are publicly accessible
DOnly info endpoint is public, others require authentication
Step-by-Step Solution
Solution:
  1. Step 1: Recall default actuator security behavior

    By default, with Spring Security, the health endpoint is public, others are secured.
  2. Step 2: Verify info endpoint access

    The info endpoint is secured by default, not public.
  3. Final Answer:

    Only health endpoint is public, others require authentication -> Option B
  4. Quick Check:

    Default actuator security = health public, others secured [OK]
Quick Trick: Health endpoint is public by default with Spring Security [OK]
Common Mistakes:
  • Assuming all endpoints are public
  • Thinking info endpoint is public by default
  • Believing no authentication is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes