200-901 Understanding and Using APIs Practice Question
A REST API uses offset and limit parameters for pagination. If the first request returns items 0-49 with limit=50 and offset=0, how should the next request be constructed to get the next page?
⚠ Common exam trap
The trap here is that candidates mistakenly think offset should be incremented by 1 (like a page number) rather than by the limit value, leading them to choose offset=1 instead of offset=50.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
offset=50, limit=50
Pagination with offset and limit works by advancing the offset by the limit value to fetch the next set of items. The first request returned items 0-49 (offset=0, limit=50), so the next request should start at offset=50 with the same limit=50 to retrieve items 50-99. This ensures no overlap and no gaps in the data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
offset=1, limit=50
Why it's wrong here
Offset=1 re-fetches item 1, overlapping the first page and skipping nothing forward; pagination advances by the page size, so the next offset must be 50. Incrementing offset by one is tempting when treating offset as a page number, which suits page-indexed APIs rather than item-indexed ones.
- ✓
offset=50, limit=50
Why this is correct
Offset pagination advances by the page size, so the next page begins after the 50 items already retrieved. Keeping limit=50 and setting offset=50 returns items 50-99, satisfying the stem's requirement to fetch the subsequent page without overlap or gaps.
- ✗
offset=50, limit=100
Why it's wrong here
Offset 50 correctly skips the first page, but limit=100 fetches 100 items, not the next 50, so the page size changes and overlaps the following page. Offset/limit pagination is designed for fixed page sizes; limit=50 with offset=50 would be the correct next request.
- ✗
offset=0, limit=100
Why it's wrong here
Requesting offset=0 with limit=100 re-fetches the first hundred records, duplicating items 0–49 instead of advancing the window. Offset pagination moves the start position, so the next page needs offset=50. Larger limits suit bulk extraction or reducing request counts, not sequential page traversal.
Go deeper
Related to this question
About these practice questions
One of 975 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.