Spring Framework & Spring Boot Interview Questions & Answers — Cracked Java
// Module · 16 topics · 142 questions

Spring Framework & Spring Boot

Spring Core, Boot, Data, Security, and internals — from middle to senior interview depth.

0%
Reviewed
0 / 142
Topics done
0 / 16
Est. time left
~50h
Next up
IoC, Dependency Injection, ApplicationContext
16 topics
01Mid9 Q0

IoC, Dependency Injection, ApplicationContext

Inversion of Control and the three injection styles, BeanFactory vs ApplicationContext, the stereotype annotations, and what @Configuration actually does at runtime.

Not startedStart →
02Mid7 Q0

Bean Scopes & Lifecycle

The bean scopes, the full instantiation-to-ready lifecycle order, @PostConstruct/@PreDestroy, injecting prototypes into singletons, and Bean(Factory)PostProcessor.

Not startedStart →
03Mid8 Q0

@Autowired, @Qualifier, @Primary, Injection Resolution

How @Autowired resolves dependencies, handling optional and ambiguous beans, collection injection, circular dependencies, and why ObjectProvider is the modern recommendation.

Not startedStart →
04Mid10 Q0

Spring Boot Auto-Configuration

How auto-configuration decides what to wire, decomposing @SpringBootApplication, properties vs YAML and override order, profiles, starters, and writing your own auto-config.

Not startedStart →
05Mid12 Q0

Spring MVC & REST

The DispatcherServlet request flow, controller annotations and argument binding, ResponseEntity, validation, exception handling, content negotiation, and interceptors vs filters.

Not startedStart →
06Mid14 Q0

Spring Data JPA

JPA/Hibernate/Spring Data layering, repository hierarchy, derived and @Query methods, relationships and fetch types, the N+1 problem, the persistence context, and propagation.

Not startedStart →
07Mid9 Q0

Transactions Deep Dive

What @Transactional does and where to put it, propagation and isolation, the default rollback rule, the AOP-proxy implementation, the self-invocation trap, and TransactionTemplate.

Not startedStart →
08Mid11 Q0

Spring Security Basics

The SecurityFilterChain and lambda DSL, authentication vs authorization, the core abstractions, password encoders, method security, CSRF/CORS, and JWT/OAuth2 flows.

Not startedStart →
09Senior9 Q0

AOP & Proxies

Cross-cutting concerns, Spring AOP vs AspectJ, JDK vs CGLIB proxies, pointcut and advice types, the full self-invocation mechanics, and the Spring features built on AOP.

Not startedStart →
10Senior5 Q0

Spring Events

ApplicationEvent and @EventListener, sync vs async events, transactional event listeners and their phases, when to use events vs a message broker, and Spring Modulith.

Not startedStart →
11Senior7 Q0

Caching

The caching annotations and how they compose, key generation, cache providers and their trade-offs, cache stampede, conditional caching, the self-invocation trap, and consistency strategies.

Not startedStart →
12Senior8 Q0

Async, Scheduling, Virtual Threads

@Async and its executor, async return types, @Scheduled with fixedRate/fixedDelay/cron, distributed scheduling, virtual threads in Boot 3.2+, and when they help.

Not startedStart →
13Senior9 Q0

Reactive — WebFlux, Reactor

The Reactive Streams contract, Mono and Flux, backpressure, hot vs cold publishers, the core operators, WebFlux vs MVC, reactive security, R2DBC, and the virtual-thread question.

Not startedStart →
14Senior6 Q0

Spring Boot Actuator, Observability

Actuator and its endpoints, custom health indicators, Micrometer metrics, distributed tracing with OpenTelemetry, securing endpoints, and Kubernetes liveness/readiness probes.

Not startedStart →
15Senior9 Q0

Testing — Unit, Slice, Integration

@SpringBootTest vs slice tests, the test clients, mocking beans, Testcontainers and @DynamicPropertySource, context caching, and the common causes of flaky Spring tests.

Not startedStart →
16Senior9 Q0

Spring Boot 3 Features & Modern Stack

The Boot 3 baseline and jakarta namespace, GraalVM native images and AOT, Spring Modulith, Problem Details, HTTP Interface clients and RestClient, observability rework, and removed APIs.

Not startedStart →