Which TWO of the following are commonly used when implementing pagination in REST APIs? (Select TWO)
Cursor-based pagination returns an opaque token pointing to the next page, avoiding skipped or duplicated records when data changes between requests. The server supplies the cursor in the response, which the client echoes back, satisfying the requirement for a commonly used pagination technique.
Why this answer
Option A (cursor-based token in response) is correct because cursor pagination returns an opaque token (often in a 'next_cursor' or Link header) that the client sends back to fetch the next page, giving stable results even when records are inserted or deleted. Option D (offset and limit query parameters) is correct because it is the most common pagination pattern, e.g. GET /items?offset=20&limit=10, where limit caps page size and offset skips records.
Option B (rate limiting headers) is wrong because headers like X-RateLimit-Remaining or Retry-After govern request throttling, not page navigation. Option C (OAuth 2.0 token) is wrong because it is an authorization credential (bearer token), unrelated to paginating result sets. Option E (webhook callback URL) is wrong because webhooks push event notifications to a subscriber endpoint, not retrieve successive pages of a collection.