Bird
0
0

Given this Spring Boot configuration snippet:

medium📝 Predict Output Q4 of 15
Spring Boot - Actuator
Given this Spring Boot configuration snippet:
management.endpoints.web.exposure.include=health,prometheus
What is the effect of this setting?
AIt exposes all actuator endpoints
BIt exposes the health and Prometheus endpoints for monitoring
CIt exposes only the health endpoint
DIt disables all actuator endpoints
Step-by-Step Solution
Solution:
  1. Step 1: Understand actuator endpoint exposure

    The property management.endpoints.web.exposure.include controls which actuator endpoints are accessible over HTTP.
  2. Step 2: Analyze included endpoints

    Setting it to health,prometheus means only these two endpoints are exposed for monitoring and scraping.
  3. Final Answer:

    It exposes the health and Prometheus endpoints for monitoring -> Option B
  4. Quick Check:

    Exposed endpoints = health and prometheus [OK]
Quick Trick: Include only needed endpoints to expose for security [OK]
Common Mistakes:
  • Assuming all endpoints are exposed
  • Thinking it disables all endpoints
  • Confusing include with exclude property

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes