Spring Boot

Spring Boot Actuator

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

20 perguntas de entrevista·
Mid-Level
1

Which Maven dependency enables Spring Boot Actuator?

Resposta

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?

Resposta

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?

Resposta

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 perguntas de entrevista

Domine Spring Boot para sua proxima entrevista

Acesse todas as perguntas, flashcards, testes tecnicos, exercicios de code review e simuladores de entrevista.

Comece gratis