Spring Boot

Spring Boot Actuator

Actuator for monitoring: endpoints (/health, /metrics, /info), metrics, health checks, configuration

20 면접 질문·
Mid-Level
1

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.

2

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.

3

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.

4

Which status indicates the application is ready to receive traffic?

5

Which library does Spring Boot Actuator use for metrics collection?

+17 면접 질문

다음 면접을 위해 Spring Boot을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기