🚀 Spring Boot — interview questions

12 questions. Filter by what the role asks for; open one for the six layers of the answer. The course is where the answers come from.

12 of 12

01How does Spring Boot auto-configuration decide what to configure, and how do you find out why a bean is missing?Auto-configurationeasy0-2y02What does @SpringBootApplication actually do?Bootstrapmedium0-2y03What is a Spring Boot starter, and how does spring-boot-dependencies keep all those library versions compatible?Dependency managementeasy0-2y04Walk through what happens between SpringApplication.run() and the app accepting its first HTTP request.Bootstraphard3-5y05How does Spring Boot decide which value wins when the same property is set in application.yml, a profile-specific file, an environment variable and a command-line argument?Configurationmedium3-5y06Why prefer @ConfigurationProperties with validation over scattering @Value across the codebase?Configurationmedium3-5y07How does Spring Boot Actuator's /health endpoint combine multiple health indicators into one status, and how do liveness and readiness differ?Observabilitymedium5-8y08How does Micrometer fit into Actuator's metrics, and how would you secure actuator endpoints in production?Observabilityhard5-8y09When would you use @WebMvcTest or @DataJpaTest instead of @SpringBootTest, and what's the actual difference?Testingmedium5-8y10How would you use Spring's application events to decouple two parts of a Boot application, and what are the tradeoffs against calling the other service directly?Application lifecyclehard8+y11How does Spring Boot's graceful shutdown actually work, and what can still go wrong during a rolling deploy?Production operationshard8+y12What does Spring Boot do by default when a controller throws an uncaught exception, and how would you replace it with your own error contract?Error handlingsenior8+y