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

Quiz: Pagination and Sorting · Question 8 of 10

Why should a controller cap the page size?

Why should a controller cap the page size?

  1. A.Spring requires a maximum
  2. B.Larger pages are not valid JSON
  3. C.Otherwise a client can request a huge size and load the whole table at once
  4. D.Small pages are sorted faster
Answer & explanation

Correct answer: Otherwise a client can request a huge size and load the whole table at once

A maximum such as 100 protects the database and the server's memory.

Can you get the rest right without peeking?

Take the timed Quiz: Pagination and Sorting quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →