Spring Boot Actuator
Actuator for monitoring: endpoints (/health, /metrics, /info), metrics, health checks, configuration
1Which Maven dependency enables Spring Boot Actuator?
Which Maven dependency enables Spring Boot Actuator?
답변
Spring Boot Actuator is enabled by adding the spring-boot-starter-actuator dependency to the project. This dependency includes all monitoring features and automatically activates basic endpoints like /health and /info. Spring Boot's auto-configuration detects this dependency and configures the endpoints without requiring additional configuration.
2What is the default path for Actuator endpoints?
What is the default path for Actuator endpoints?
답변
By default, all Actuator endpoints are exposed under the /actuator prefix. This convention groups all monitoring endpoints in a single location and simplifies security by targeting this specific prefix. The prefix can be customized via the management.endpoints.web.base-path property if needed.
3Which two endpoints are exposed by default via HTTP?
Which two endpoints are exposed by default via HTTP?
답변
Spring Boot Actuator only exposes /health and /info endpoints by default via HTTP for security reasons. These endpoints provide non-sensitive information about the application's state. All other endpoints like /metrics, /env, or /loggers must be explicitly enabled in configuration to prevent accidental exposure of sensitive data in production.
Which status indicates the application is ready to receive traffic?
Which library does Spring Boot Actuator use for metrics collection?
+17 면접 질문