hardMultiple Choice
200-901 Practice Question: Refer to the exhibit
Exhibit
{
"response": [
{
"id": "1234",
"name": "Switch1",
"platformId": "C9300-24P",
"softwareVersion": "16.12.5",
"upTime": "30 days, 4 hours, 12 minutes"
}
],
"version": "1.0"
}Refer to the exhibit. This JSON response was received from the Cisco DNA Center API. A developer wants to extract the software version of the first device. Which Python expression correctly retrieves '16.12.5' from the variable `data`?
⚠ Common exam trap
The trap here is that candidates often forget the 'response' wrapper and treat the JSON as a flat list, or confuse the key name 'version' with 'softwareVersion', which Cisco deliberately uses to test attention to exact field names in the API schema.
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]['softwareVersion']
The JSON response from Cisco DNA Center's API is structured with a 'response' key containing an array of device objects. To access the software version of the first device, you must first index into the array with [0] to get the first device object, then use the key 'softwareVersion' to retrieve the value '16.12.5'. The variable `data` holds the entire JSON object, so `data['response'][0]['softwareVersion']` correctly navigates this nested structure.
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[0]['softwareVersion']
Why it's wrong here
The DNA Center response wraps devices in a 'response' array, so indexing data directly as a list raises a KeyError or TypeError before reaching any version field. It is tempting because the field name matches the target value, which would work only if the JSON root itself were the device array.
- ✗
data['response'][0]['version']
Why it's wrong here
The exhibit's device objects expose the value under 'softwareVersion', not 'version', so this key lookup fails despite correct array indexing. It is tempting because 'version' is a common field name in other Cisco API payloads, making the path look structurally right while naming the wrong key.
- ✗
data['response']['softwareVersion']
Why it's wrong here
'response' holds a list of devices, so indexing it with the string 'softwareVersion' raises a TypeError; the array element must be selected first. It is tempting because it names the correct container and field, which would work only if the API returned a single device object rather than an array.
- ✓
data['response'][0]['softwareVersion']
Why this is correct
The JSON nests devices inside the 'response' array, so indexing [0] selects the first device before the 'softwareVersion' key is accessed. Chained bracket notation traverses each level precisely, returning the string '16.12.5' rather than the whole device object.
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.