Spring Boot

Spring Boot Actuator

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

20 câu hỏi phỏng vấn·
Mid-Level
1

Which Maven dependency enables Spring Boot Actuator?

Câu trả lời

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?

Câu trả lời

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?

Câu trả lời

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 câu hỏi phỏng vấn

Nắm vững Spring Boot cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí