Bird
0
0

Given this Spring Boot Actuator endpoint configuration:

medium📝 Command Output Q13 of 15
Spring Boot - Actuator
Given this Spring Boot Actuator endpoint configuration:
management.endpoints.web.exposure.include=health,info
What will be the output when accessing /actuator/health?
A{"status":"DOWN"}
B{"error":"Endpoint not found"}
C{"status":"UP"}
D{"info":"No data"}
Step-by-Step Solution
Solution:
  1. Step 1: Check exposed endpoints

    Only 'health' and 'info' endpoints are exposed via web.
  2. Step 2: Understand default health output

    By default, health endpoint returns {"status":"UP"} if app is running well.
  3. Final Answer:

    {"status":"UP"} -> Option C
  4. Quick Check:

    Health endpoint = {"status":"UP"} when healthy [OK]
Quick Trick: Health endpoint shows status UP if app is healthy [OK]
Common Mistakes:
  • Expecting error when endpoint is exposed
  • Confusing info endpoint output with health
  • Assuming status DOWN without failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes