A network automation script issues a RESTCONF HTTP GET request to a Cisco IOS XE router to inspect interface configurations. The API returns the following JSON response payload stored in a Python dictionary variable named `result`:
{
"ietf-interfaces:interfaces": {
"interface": [
{
"name": "Loopback0",
"description": "Router ID Interface",
"enabled": true,
"ietf-ip:ipv4": {
"address": [
{
"ip": "192.168.255.1",
"netmask": "255.255.255.255"
}
]
}
},
{
"name": "GigabitEthernet0/0/0",
"description": "WAN Link",
"enabled": false,
"ietf-ip:ipv4": {
"address": [
{
"ip": "10.0.12.1",
"netmask": "255.255.255.252"
}
]
}
}
]
}
}
Which Python expression correctly retrieves the IP address string `"10.0.12.1"` from the `result` dictionary?
- result["ietf-interfaces:interfaces"]["interface"][1]["ietf-ip:ipv4"]["address"][0]["ip"]Answer
- Bresult["ietf-interfaces:interfaces"]["interface"][2]["ietf-ip:ipv4"]["address"][0]["ip"]
- Cresult["ietf-interfaces:interfaces"]["interface"][1]["ietf-ip:ipv4"]["address"]["ip"]
- Dresult["ietf-interfaces:interfaces"]["interface"]["GigabitEthernet0/0/0"]["ietf-ip:ipv4"]["address"][0]["ip"]