← 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?
- A.Spring requires a maximum
- B.Larger pages are not valid JSON
- C.Otherwise a client can request a huge size and load the whole table at once
- 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 →