Bird
0
0

If a Spring Boot application is healthy, what JSON response should you expect from the '/actuator/health' endpoint?

medium📝 Command Output Q4 of 15
Spring Boot - Actuator
If a Spring Boot application is healthy, what JSON response should you expect from the '/actuator/health' endpoint?
A{"status":"DOWN"}
B{"status":"UP"}
C{"error":"Not Found"}
D{"status":"UNKNOWN"}
Step-by-Step Solution
Solution:
  1. Step 1: Recall default health endpoint behavior

    The '/actuator/health' endpoint returns application health status.
  2. Step 2: Identify healthy status response

    When healthy, it returns {"status":"UP"} in JSON format.
  3. Final Answer:

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

    Healthy apps respond with status UP [OK]
Quick Trick: Healthy status is 'UP' in actuator health response [OK]
Common Mistakes:
  • Expecting 'DOWN' when app is healthy
  • Confusing 404 error with health status
  • Assuming 'UNKNOWN' is default healthy status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes