Courseiva
mediumMultiple ChoiceObjective-mapped

200-901 Practice Question: A network automation engineer using the Cisco DNA…

You are a network automation engineer using the Cisco DNA Center REST API to retrieve health scores for all sites in your network. You call the 'GET /dna/intent/api/v1/site-health' endpoint with parameters to filter by time range. The response returns only the first 20 sites out of a total of 150 sites. You notice that the response includes a 'totalRecords' field showing 150, but only 20 objects are in the 'response' array. You recall that the API documentation mentions pagination support. To avoid manually looping through all pages, you want to implement a robust solution that efficiently retrieves all site health data. Which approach should you take?

⚠ Common exam trap

Cisco often tests the misconception that you can simply increase the 'pageSize' parameter to retrieve all records at once, but the trap is that API endpoints enforce a maximum page size, and the correct pattern is to use the provided 'nextPageUri' field to iterate through pages.

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

Use the 'nextPageUri' field provided in the response to iterate through all pages until no more pages are available.

The Cisco DNA Center REST API implements pagination using a 'nextPageUri' field in the response, which provides the direct URL to the next page of results. By following this field iteratively until it is null or absent, you can efficiently retrieve all 150 site health records without manually constructing pagination parameters or looping through page numbers, ensuring a robust and maintainable solution.

Answer analysis

Option-by-option breakdown

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

  • Change the endpoint to 'GET /dna/intent/api/v1/network-device' which returns all devices without pagination.

    Why it's wrong here

    Incorrect. This endpoint retrieves network devices, not site health, and may also implement pagination.

  • Export the site health data using the 'POST /dna/intent/api/v1/site-health/export' endpoint.

    Why it's wrong here

    Incorrect. This is an export feature that may generate a report, not a direct retrieval of all data in a single API call.

  • Increase the 'pageSize' parameter to 150 to retrieve all records in a single request.

    Why it's wrong here

    Incorrect. The API likely has a maximum page size (e.g., 50), so requesting 150 may be rejected or truncated.

  • Use the 'nextPageUri' field provided in the response to iterate through all pages until no more pages are available.

    Why this is correct

    Correct. Following the pagination links (nextPageUri) is the standard and reliable method to retrieve all records.

About these practice questions

One of 989 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 →

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.