A network administrator queries a Cisco vManage REST API endpoint to retrieve device interface operational details. The API returns the following JSON payload, which is parsed into a Python dictionary variable named `response_data`:
{
"header": {
"generated_at": 1774137600,
"status": 200
},
"data": [
{
"device_id": "10.10.10.1",
"host_name": "Edge-Router-1",
"interfaces": [
{
"name": "GigabitEthernet1",
"admin_status": "up",
"oper_status": "up",
"ip_address": "192.168.10.1",
"mtu": 1500
},
{
"name": "GigabitEthernet2",
"admin_status": "up",
"oper_status": "down",
"ip_address": "10.0.0.2",
"mtu": 1500
}
]
}
]
}
Which two statements regarding data extraction from this JSON payload are correct? (Select two.)
- The expression `response_data["data"][0]["host_name"]` evaluates to the string `"Edge-Router-1"`.Answer
- The expression `response_data["data"][0]["interfaces"][1]["name"]` evaluates to the string `"GigabitEthernet2"`.Answer
- CThe expression `response_data["data"][1]["host_name"]` evaluates to the string `"Edge-Router-1"`.
- DThe expression `response_data["data"][0]["interfaces"][0]["ip_address"]` evaluates to the string `"10.0.0.2"`.