hardMultiple ChoiceObjective-mapped
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
Missing the 'response' key; data is a dictionary with 'response' key.
- ✗
data['response'][0]['version']
Why it's wrong here
'version' is at the top level, not inside the device object.
- ✗
data['response']['softwareVersion']
Why it's wrong here
Missing index; 'response' is an array, so you must specify index.
- ✓
data['response'][0]['softwareVersion']
Why this is correct
Correctly navigates the JSON hierarchy.
Go deeper
Related to this question
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 →
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.