easyMultiple Choice
200-901 Practice Question: A developer is writing a Python script to…
A developer is writing a Python script to interact with the Cisco DNA Center REST API. Which HTTP method should be used to retrieve a list of network devices?
⚠ Common exam trap
Cisco often tests the distinction between safe (GET) and unsafe (PUT, POST, DELETE) HTTP methods, trapping candidates who confuse POST with GET for read operations due to the common misconception that POST can be used for any data-fetching request.
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
✓
GET
The GET method is the correct HTTP verb for retrieving data from a REST API without modifying server state. In Cisco DNA Center, the endpoint /dna/intent/api/v1/network-device is accessed via GET to fetch a list of network devices, as this operation is idempotent and read-only, aligning with RESTful principles.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
GET
Why this is correct
GET is the HTTP method defined for safe, read-only retrieval of a resource representation, so it returns the device list from the Cisco DNA Center REST API without altering server state. POST, PUT and DELETE would create, replace or remove data, violating the read-only requirement.
- ✗
PUT
Why it's wrong here
PUT replaces the full representation of an existing resource at a known URI; it does not fetch collections. Retrieving a device list requires GET. PUT would be correct when updating or overwriting a specific device's configuration object identified by its ID.
- ✗
POST
Why it's wrong here
POST submits data to create a resource or trigger an action; it does not read a collection. Retrieving the device list requires GET. POST would be correct when creating a new device entry or invoking an operation such as a command runner.
- ✗
DELETE
Why it's wrong here
DELETE removes an existing resource at the target URI, so it cannot return the device list the script needs. It is tempting because DELETE also targets a collection endpoint, and it would be correct when decommissioning or unregistering a device from Cisco DNA Center's inventory.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 975-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 →
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.