Bird
0
0

Which property correctly exposes only the health and info actuator endpoints in application.properties?

easy📝 Syntax Q12 of 15
Spring Boot - Actuator
Which property correctly exposes only the health and info actuator endpoints in application.properties?
Amanagement.endpoints.web.expose=health,info
Bmanagement.endpoints.web.exposure.include=health,info
Cmanagement.endpoints.exposure.include=health,info
Dmanagement.web.endpoints.include=health,info
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct property name

    The correct property to expose endpoints is management.endpoints.web.exposure.include.
  2. Step 2: Verify property value format

    Comma-separated list of endpoints like health,info is correct.
  3. Final Answer:

    management.endpoints.web.exposure.include=health,info -> Option B
  4. Quick Check:

    Correct property = management.endpoints.web.exposure.include [OK]
Quick Trick: Use 'management.endpoints.web.exposure.include' to list endpoints [OK]
Common Mistakes:
  • Using 'expose' instead of 'exposure.include'
  • Missing 'web' in the property path
  • Incorrect property structure or spelling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes