Courseiva
hardMultiple ChoiceObjective-mapped

200-901 Practice Question: Is using the Cisco DNA Center API to get site…

A network engineer is using the Cisco DNA Center API to get site health. The API endpoint returns a large dataset with pagination. The response includes the header 'X-Page-Total-Count'. To retrieve all pages efficiently, what should the engineer implement?

⚠ Common exam trap

Cisco often tests the distinction between REST API pagination patterns (offset/limit vs. page-based with total count) and the trap here is that candidates assume all APIs use 'next' links (like in HAL or JSON:API), but Cisco DNA Center uses explicit page parameters and headers.

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

A loop that increments the page parameter until the response is empty, using the total count header.

The Cisco DNA Center API uses pagination with a page parameter and returns a 'X-Page-Total-Count' header indicating the total number of pages. By implementing a loop that increments the page parameter until all pages are retrieved, the engineer can efficiently fetch all data without overwhelming the API or missing records, using the total count to know when to stop.

Answer analysis

Option-by-option breakdown

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

  • A single request with a high limit parameter to fetch all data at once.

    Why it's wrong here

    Requesting a very high limit may exceed API limits and cause errors or truncated results.

  • A loop that increments the page parameter until the response is empty, using the total count header.

    Why this is correct

    This efficiently retrieves all pages by iterating through page numbers.

  • A recursive function that follows 'next' links in the response body.

    Why it's wrong here

    DNA Center uses page-based pagination, not link-based; following 'next' links is not supported.

  • Polling the endpoint at regular intervals to gather data over time.

    Why it's wrong here

    Polling is not a pagination technique; it would retrieve the same data repeatedly.

About these practice questions

Courseiva writes every 200-901 question from scratch — 989 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 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.