Spring Boot Actuator provides several endpoints. What is their main purpose?
Think about what monitoring tools need from a running app.
Actuator endpoints provide details like health, metrics, and environment info to help monitor and manage the app.
Consider a default Spring Boot app with Actuator enabled. What is the typical JSON output of the /actuator/health endpoint?
Look for the key that indicates overall system status.
The health endpoint returns a JSON with a status key showing the app health, usually "UP" if all is well.
Given the following application.properties snippet, which option correctly enables all Actuator endpoints?
management.endpoints.web.exposure.include=
Use the wildcard symbol to include all endpoints.
Setting management.endpoints.web.exposure.include=* exposes all available endpoints.
When you access /actuator/metrics/jvm.memory.used, what kind of data do you expect to see?
Look for a JSON structure with name, measurements, and statistics.
The metrics endpoint returns detailed JSON including metric name and measurement values.
You try to access /actuator/env but get a 404 Not Found error. What is the most likely reason?
Check which endpoints are exposed by default and which require explicit enabling.
By default, only a few endpoints like health and info are exposed. Others like env need to be enabled explicitly.