🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Boot Basics: all 10 questions

Quiz: Spring Boot Basics · Question 7 of 10

What does spring.jpa.open-in-view=false do?

What does spring.jpa.open-in-view=false do?

  1. A.Disables JPA completely
  2. B.Opens a database view
  3. C.Shows SQL in the browser
  4. D.Closes the database session when the service layer finishes, avoiding hidden slow queries later
Answer & explanation

Correct answer: Closes the database session when the service layer finishes, avoiding hidden slow queries later

With it off, lazy loading cannot quietly run queries while the view or JSON is being written.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Boot Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →