Skip to content
Medium Analyze Spring Boot multiple-choice

What is the N+1 query problem in Spring Data JPA?

Analyze — Tests ability to break down and examine complex problems.

Answer Options

A Running N queries in a @Transactional method causes rollback
B Fetching a list of N entities triggers N additional queries to load a lazy association
C Using N @Autowired fields causes injection failure
D Pagination with N pages requires N+1 database connections

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more Spring Boot questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Spring Boot topic (Programming Languages).

More Spring Boot Questions