Courseiva

200-901 Understanding and Using APIs Practice Question

A developer is building a Python script that calls the Cisco Webex API to retrieve a list of rooms. The API returns a maximum of 100 items per page and includes a 'Link' response header with a rel="next" URL. The script must automatically fetch all pages until no 'next' link remains. Which approach should the developer implement?

⚠ Common exam trap

The trap here is assuming that a simple page number or offset parameter can be used for pagination, when the API actually requires following the Link header.

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

✓

Parse the Link header, extract the URL with rel="next", and issue a GET request to that URL in a loop until the header is absent.

The Webex API provides pagination through Link headers containing a rel="next" URL. Following that URL in a loop ensures all pages are retrieved. Other methods like page numbers, large max values, or offset parameters are not supported by this API and would fail to return the complete dataset.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Set the 'max' query parameter to 1000 and make a single GET request to retrieve all rooms at once.

    Why it's wrong here

    The Webex API enforces a maximum page size of 100 items; setting max to 1000 will either be ignored or result in an error. Even if accepted, the API may cap the response. A single request cannot retrieve more than the maximum page size, so this method fails to fetch all rooms.

  • ✗

    Use the 'offset' query parameter, increasing it by 100 on each request until the response body is empty.

    Why it's wrong here

    The Webex API does not support an offset parameter for pagination. It uses cursor-based pagination via Link headers. Attempting to use offset would likely be ignored or cause an error, and the script would not correctly iterate through all pages of rooms.

  • ✗

    Increment a 'page' query parameter starting at 0 and continue until an empty JSON array is returned.

    Why it's wrong here

    The Webex API does not use a numeric page parameter for pagination. It relies on cursor-based links in the Link header. Incrementing a page number would not advance through the result set and could return the same first page repeatedly or cause errors, making this approach ineffective for retrieving all rooms.

  • ✓

    Parse the Link header, extract the URL with rel="next", and issue a GET request to that URL in a loop until the header is absent.

    Why this is correct

    The Webex API uses RFC 5988 Link headers for pagination. The rel="next" URL contains the appropriate cursor or page parameters. By following this URL iteratively, the script retrieves all pages without manually constructing query strings. This is the documented and most reliable method for traversing paginated Webex API results.

About these practice questions

Courseiva writes every 200-901 question from scratch — 975 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

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.