Courseiva
easyMultiple ChoiceObjective-mapped

200-901 Practice Question: A network automation engineer is writing a Python…

A network automation engineer is writing a Python script to interact with the Cisco Meraki Dashboard API. The script currently makes GET requests to retrieve a list of networks and then makes subsequent requests for each network to get device details. However, the script is slow due to network latency. The engineer wants to improve performance without changing the API's functionality. Which approach best addresses the performance issue?

⚠ Common exam trap

Cisco often tests the distinction between concurrency (asyncio) and parallelism (multithreading/multiprocessing), and candidates may confuse increasing timeouts or changing HTTP methods as valid performance optimizations when they are not.

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 parallel requests with asyncio for concurrent API calls.

Using asyncio with an async HTTP library (like aiohttp) allows the script to send multiple GET requests concurrently rather than sequentially, reducing the total wall-clock time dominated by network latency. This approach improves performance without altering the API's functionality or the data being retrieved.

Answer analysis

Option-by-option breakdown

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

  • Wrap all API calls in a single transaction.

    Why it's wrong here

    Incorrect because wrapping API calls in a single transaction is a concept for database operations, not for REST API requests. It does not apply here and would not improve performance.

  • Increase the timeout value in each request.

    Why it's wrong here

    Incorrect because increasing the timeout only allows longer waiting periods for each request; it does nothing to reduce the overall time caused by sequential network latency.

  • Use parallel requests with asyncio for concurrent API calls.

    Why this is correct

    Correct because using asyncio with an async HTTP library (like aiohttp) allows concurrent execution of multiple GET requests, reducing total wall-clock time by overlapping network I/O, without changing API functionality.

  • Use a POST request instead of GET to combine both operations.

    Why it's wrong here

    Incorrect because using a POST request instead of GET does not combine operations in a way that reduces latency; it may also violate RESTful API design and typically has no performance benefit for fetching data.

About these practice questions

This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.