Frameworks

Spring Boot interview questions

Beta

Beans, auto-configuration, Spring MVC, Data JPA, security and testing.

80 questions · 40 theory · 40 codingWorks best after Java

Subtopics

  • IoC container & bean scopes8
  • Auto-configuration & starters6
  • Spring MVC & REST controllers8
  • Validation & exception handling6
  • Spring Data JPA & repositories8
  • Transactions & @Transactional6
  • Lazy loading & N+16
  • Spring Security & JWT8
  • Configuration & profiles6
  • Actuator & observability6
  • Caching6
  • Testing with Spring Boot Test6

Sample questions

  • CodingJuniorActuator & observability

    Model how /actuator/health combines multiple health indicators into one overall status. Implement entryPoint(Map<String, String> componentStatuses). Each entry maps a component name to its own status: "UP", "DOWN",

  • TheoryJuniorActuator & observability

    What does adding spring-boot-starter-actuator give you out of the box, and why are most of its endpoints — besides /health and /info — not exposed over HTTP by default?

  • CodingJuniorAuto-configuration & starters

    Model a simplified @ConditionalOnClass. Implement entryPoint(Set<String> classpath, List<List<String>> candidates). Each entry in candidates is a two-element list [beanName, requiredClassName], representing an auto-configuration that would

  • TheoryJuniorAuto-configuration & starters

    In plain terms, what does @SpringBootApplication turn on, and what is a "starter" (like spring-boot-starter-web) actually made of?

  • CodingJuniorCaching

    Model Spring's default cache key generation (SimpleKeyGenerator). Implement entryPoint(List<String> params), where params are a method's arguments, already converted to strings, in parameter order. If there are no parameters, return "SimpleKey[]". If there

  • TheoryJuniorCaching

    In one sentence each: what do @Cacheable, @CachePut, and @CacheEvict each actually do to the cache?