← All topics
Quiz: Spring Boot Interview Questions: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the difference between JPA and Hibernate?
- Q2. Which is a correct description of @RestController?
- Q3. Which locking approach adds a @Version column?
- Q4. What does PATCH do compared with PUT?
- Q5. How should services keep data consistent without sharing a database?
- Q6. When is save() actually needed with JPA?
- Q7. When is optimistic locking (a @Version column) a better choice than pessimistic locking?
- Q8. What is the difference between @Mock and @MockitoBean?
- Q9. When is synchronous REST/Feign communication the right choice over Kafka events?
- Q10. Which is the strongest way to answer "Have you used JOIN FETCH?" in an interview?