Spring Boot learning path

Backend engineers preparing for Java and Spring Boot interviews, from first basics to senior-level internals

46 questions3 levels7 must‑knowFree, no account

Your progress

L1 · 0 of 26L2 · 0 of 11L3 · 0 of 9

Level 1 · 26 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.

Start with Level 1
Level 1First ten minutesTwo-sentence answers to what gets asked first.26 questions · 5 topics

Core ideas

  1. 1.1What is Spring Boot, and how is it different from the Spring Framework?2 min
  2. 1.2What are inversion of control and dependency injection?1 min
  3. 1.3What is a Spring bean, and how do @Component, @Service, @Repository and @Bean differ?2 min
  4. 1.4Constructor injection, setter injection or field injection: which do you use and why?1 min
  5. 1.5What does @SpringBootApplication do?1 min
  6. 1.6What are bean scopes, and what is the default?1 min
  7. 1.7Why does Spring Boot prefer convention over configuration?2 min
  8. 1.8Difference between @ComponentScan and @SpringBootApplication?Must‑know2 min

Web and REST

  1. 2.1How do you build a simple REST endpoint in Spring Boot?2 min
  2. 2.2How do you return the right HTTP status code from a controller?1 min
  3. 2.3How do you handle exceptions globally in a Spring Boot REST API?2 min
  4. 2.4How do you validate request input in Spring Boot?1 min
  5. 2.5Difference between @RestController and @Controller internally?Must‑know2 min

Configuration

  1. 3.1How do application.properties, @Value and @ConfigurationProperties work, and how do profiles fit in?2 min
  2. 3.2What happens if application.yml and application.properties both exist?2 min
  3. 3.3How does Spring Boot decide server port priority?2 min
  4. 3.4How does Spring Boot manage dependency versions automatically?2 min

Data access

  1. 4.1What is Spring Data JPA, and what does a repository interface give you?2 min
  2. 4.2What does @Transactional do?2 min

Running, testing and packaging

  1. 5.1What is Spring Boot Actuator used for?1 min
  2. 5.2How do you test a Spring Boot application?1 min
  3. 5.3What is the real use of CommandLineRunner?2 min
  4. 5.4How does Spring Boot handle logging by default?3 min
  5. 5.5Difference between a fat JAR and a normal JAR?Must‑know3 min
  6. 5.6Why is Spring Boot perfect for microservices?2 min
  7. 5.7Why is Spring Boot preferred for cloud-native apps?2 min
Level 2Daily jobWhat you use at work every week.11 questions · 4 topics
Level 3SeniorProduction trade-offs and failure modes.9 questions · 4 topics