Question 641 of 989
200-901 Infrastructure and Automation Practice Question
Exhibit
Refer to the exhibit.
{
"response": [
{
"hostname": "Core-Router",
"managementIpAddress": "10.1.1.1",
"platformId": "ISR4451-X",
"serialNumber": "F0C1234A5B6",
"lastUpdated": "2023-11-28T15:30:00.000+00:00"
}
],
"version": "2.0.0"
}A developer uses the Cisco DNA Center API to retrieve device inventory. The JSON response is shown. Which Python code snippet correctly extracts the serial number?
⚠ Common exam trap
The trap here is that candidates mistakenly treat the JSON response as a flat dictionary or forget that the 'response' value is a list, leading them to omit the list index and incorrectly access 'serialNumber' directly from 'response'.
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
✓
data['response'][0]['serialNumber']
The JSON response from the Cisco DNA Center device inventory API returns a list of devices under the 'response' key, and each device is a dictionary. The serial number for the first device is accessed by indexing into the list with [0] and then retrieving the 'serialNumber' key from that dictionary.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
data['response'][0]['serialNumber']
Why this is correct
Correctly accesses first element.
- ✗
data['serialNumber']
Why it's wrong here
Missing 'response' array access.
- ✗
data['response']['serialNumber']
Why it's wrong here
response is a list, not dict.
- ✗
data[0]['serialNumber']
Why it's wrong here
Index 0 at top level doesn't exist.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 24, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.