Bird
0
0

Which property in application.properties controls which management endpoints are exposed over HTTP in Spring Boot?

easy📝 Conceptual Q2 of 15
Spring Boot - Actuator
Which property in application.properties controls which management endpoints are exposed over HTTP in Spring Boot?
Amanagement.endpoint.info.enabled
Bmanagement.endpoints.enabled
Cspring.info.enabled
Dmanagement.endpoints.web.exposure.include
Step-by-Step Solution
Solution:
  1. Step 1: Identify property for endpoint exposure

    The property management.endpoints.web.exposure.include controls which endpoints are exposed over HTTP.
  2. Step 2: Differentiate from enabling individual endpoints

    management.endpoint.info.enabled enables the info endpoint but does not control exposure over HTTP.
  3. Final Answer:

    management.endpoints.web.exposure.include -> Option D
  4. Quick Check:

    Endpoint exposure property = management.endpoints.web.exposure.include [OK]
Quick Trick: Use exposure.include to control HTTP visibility of endpoints [OK]
Common Mistakes:
  • Confusing enablement with exposure properties
  • Using wrong property names like spring.info.enabled
  • Assuming all endpoints are exposed by default

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes