Drag steps to the numbered slots on the right, or tap a step then tap a slot.
350-401 Practice Question: Drag and drop the steps of REST API call using…
Drag and drop the steps of REST API call using Requests library to DNA Center into the correct order, from first to last.
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
Import requests module
The correct order starts with importing the Requests library, sending a POST request to the authentication endpoint with credentials, extracting the token from the JSON response, using the token in headers for a GET request to a resource endpoint, and finally parsing the JSON response.
Go deeper
Related to this question
Learn chapter
Wireless Deployment Models and Security
Key term
REST API for Network Devices
A REST API for network devices is a set of rules that allows software applications to communicate with routers, switches, and firewalls using standard web methods like GET, POST, PUT, and DELETE over HTTP or HTTPS.
About these practice questions
Courseiva writes every 350-401 question from scratch — 1,175 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 →
Same concept, more angles
2 more ways this is tested on 350-401
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Drag and drop the steps of REST API call using Requests library to DNA Center into the correct order, from first to last.
medium- ✓ A.Import requests library in Python script
- ✓ B.POST to /dna/system/api/v1/auth/token
- ✓ C.Extract token from response JSON
- ✓ D.GET /dna/intent/api/v1/network-device with token
- ✓ E.Parse response JSON and print device list
Why A: The correct order starts with importing the requests library, then obtaining an authentication token via POST to the login endpoint. Next, the token is used as a header in a GET request to retrieve network devices, the response is parsed as JSON, and finally the token is used for subsequent API calls.
Variation 2. Drag and drop the steps of using a Python REST API call to retrieve device configuration via Cisco DNA Center into the correct order, from first to last.
medium- ✓ A.Authenticate to DNA Center API and get token
- ✓ B.Retrieve device UUID via GET request
- ✓ C.Send GET request for running configuration
- ✓ D.Parse JSON response to extract config
- ✓ E.Save configuration to local file
Why A: The process begins with authenticating to the DNA Center API to obtain a token. Then, the device UUID is retrieved using a GET request to the device list endpoint. Next, a GET request is sent to fetch the running configuration for that device. The JSON response is parsed to extract the configuration text. Finally, the configuration is saved to a local file.
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-401 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 350-401 exam.