Automation and Programmability
200 questions
A network administrator is evaluating configuration management tools to streamline the provisioning of Cisco IOS XE switches across an enterprise network. Which of the following statements correctly describe the operational capabilities and characteristics of Ansible compared to Puppet and Chef? (Select TWO.)
Select all that apply
A network administrator is evaluating how network operations are partitioned between functional planes in a controller-based architecture. Which task is performed exclusively within the control plane?
An automated Python monitoring script sends a RESTCONF HTTP GET request to a Cisco IOS XE router to inspect BGP peer relationships. The JSON response is parsed into a Python dictionary named `bgp_data` as shown below:
{
"Cisco-IOS-XE-bgp:bgp": {
"bgp": [
{
"asn": 65001,
"neighbor": [
{
"ip": "10.1.1.2",
"remote-as": 65002,
"state": "Established"
},
{
"ip": "10.2.2.2",
"remote-as": 65003,
"state": "Active"
}
]
}
]
}
}
Which Python expression correctly evaluates to the string `"Active"`?
A network engineer issues a RESTCONF GET request to a Cisco IOS XE router to inspect interface operational state data. The API returns the following JSON payload, which is parsed into a Python dictionary named `payload`:
{
"ietf-interfaces:interfaces-state": {
"interface": [
{
"name": "GigabitEthernet1",
"type": "iana-if-type:ethernetCsmacd",
"oper-status": "up",
"phys-address": "00:50:56:89:a1:b2",
"speed": 1000000000
},
{
"name": "GigabitEthernet2",
"type": "iana-if-type:ethernetCsmacd",
"oper-status": "down",
"phys-address": "00:50:56:89:a1:c3",
"speed": 100000000
}
]
}
}
Match each Python dictionary lookup expression on the left with its evaluated value on the right.
Click a left item, then click its matching right item
Items
Matches
A network technician parses telemetry data returned by a Cisco vManage REST API call stored in a Python dictionary variable named `telemetry_data`:
{
"header": {
"generated_at": 1690000000,
"status": "success"
},
"data": [
{
"device_id": "10.10.10.1",
"interfaces": [
{
"name": "GigabitEthernet1",
"rx_errors": 0,
"tx_errors": 12,
"status": "up"
},
{
"name": "GigabitEthernet2",
"rx_errors": 45,
"tx_errors": 3,
"status": "up"
}
]
},
{
"device_id": "10.10.10.2",
"interfaces": [
{
"name": "GigabitEthernet1",
"rx_errors": 108,
"tx_errors": 0,
"status": "down"
}
]
}
]
}
What specific value is extracted when referencing `telemetry_data["data"][1]["interfaces"][0]["rx_errors"]`?
A network engineer is analyzing packet processing behavior on a router to differentiate between tasks executed by the general-purpose CPU and tasks handled by specialized forwarding hardware. Which two operational tasks are executed exclusively within the control plane? (Select two.)
Select all that apply
A netops team is deploying a controller-based network architecture to maintain network topology intelligence centrally while retaining local packet switching on individual infrastructure nodes. Which operational behavior correctly distinguishes the responsibility of the centralized control plane from that of the local data plane?
During a performance audit of an enterprise router, traffic containing specialized IP options is punted to the main Route Processor CPU for intensive processing, raising local CPU usage to nearly 100%. Despite this high CPU utilization on the Route Processor, standard transit data packets matching pre-calculated forwarding entries continue flowing through the router without any measurable latency or throughput impact. Which operational mechanism explains why standard transit traffic performance remains unaffected?
Match each network operation or component to its correct functional plane or architectural interface.
Click a left item, then click its matching right item
Items
Matches
A network administrator issues a RESTCONF HTTP GET request to retrieve OSPF interface parameters from a Cisco IOS XE router. The API returns the following JSON payload:
{
"Cisco-IOS-XE-ospf:ospf": {
"process": [
{
"id": 1,
"area": [
{
"area-id": 0,
"interface": [
{
"name": "GigabitEthernet1",
"cost": 10,
"passive": false
},
{
"name": "GigabitEthernet2",
"cost": 100,
"passive": true
}
]
}
]
}
]
}
}
Based on the JSON payload provided, which two statements correctly interpret the structural data and values? (Select two.)
Select all that apply
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?
A network automation engineer issues a REST API call to a Cisco Catalyst 9800 Wireless LAN Controller to inspect access point operational telemetry. The controller returns the following JSON encoded response:
{
"response": {
"access_points": [
{
"name": "AP-Lobby-01",
"ip_address": "10.20.40.15",
"radios": [
{ "radio_id": 0, "band": "2.4GHz", "channel": 6, "admin_state": true },
{ "radio_id": 1, "band": "5GHz", "channel": 36, "admin_state": true }
]
},
{
"name": "AP-Conf-02",
"ip_address": "10.20.40.16",
"radios": [
{ "radio_id": 0, "band": "2.4GHz", "channel": 11, "admin_state": false },
{ "radio_id": 1, "band": "5GHz", "channel": 149, "admin_state": true }
]
}
]
}
}
Match each JSON data path expression on the left to its corresponding value on the right based on the returned JSON payload.
Click a left item, then click its matching right item
Items
Matches
An automation script retrieves the following JSON response payload from a Cisco Catalyst Center system health API endpoint and stores it in a Python dictionary variable named `health_data`:
{
"response": {
"overallHealth": 85,
"issueList": [
{
"issueId": "ISSUE-101",
"severity": "HIGH",
"impactedEntities": [
{"name": "GigabitEthernet1/0/1", "type": "Interface"},
{"name": "GigabitEthernet1/0/2", "type": "Interface"}
]
},
{
"issueId": "ISSUE-102",
"severity": "LOW",
"impactedEntities": [
{"name": "PowerSupply1", "type": "Power"}
]
}
]
}
}
Which two of the following statements regarding the structure and extraction of data from this JSON payload are correct?
Select all that apply
A network administrator parses a JSON response payload from a Cisco Catalyst Center API call stored in a Python dictionary variable named `inventory_data`:
{
"response": [
{
"hostname": "Core-SW-01",
"platformId": "C9300-48U",
"upTimeMinutes": 21600,
"stackMembers": ["Core-SW-01A", "Core-SW-01B"]
},
{
"hostname": "Dist-SW-01",
"platformId": "C9200-24P",
"upTimeMinutes": 61200,
"stackMembers": ["Dist-SW-01A"]
}
],
"version": "1.0"
}
Which Python expression correctly extracts the string value `'Core-SW-01B'` from the payload?
In network architectures, router and switch operations are divided between distinct functional planes. Which of the following network functions are executed directly by the data (forwarding) plane? (Select TWO.)
Select all that apply
A Python script queries a Cisco Catalyst Center API endpoint for network device inventory and stores the resulting data structure in a variable named `data`. The JSON payload structure is shown below:
{
"response": {
"devices": [
{
"id": "dev-101",
"role": "DISTRIBUTION",
"mgmt_ip": "10.1.10.1"
},
{
"id": "dev-102",
"role": "ACCESS",
"mgmt_ip": "10.1.20.1"
}
],
"totalCount": 2
}
}
Which Python expression correctly extracts the management IP address of the ACCESS role device?
A network administrator executes a RESTCONF GET request to retrieve interface and OSPF routing configuration details from a Cisco router. The response payload is stored in a Python dictionary named `data` as shown below:
{
"ietf-interfaces:interface": {
"name": "GigabitEthernet0/0/1",
"description": "Uplink to Core",
"ietf-ip:ipv4": {
"address": [
{
"ip": "10.10.20.1",
"netmask": "255.255.255.0"
}
]
},
"Cisco-IOS-XE-ospf:ospf": {
"process-id": [
{
"id": 100,
"area": [
{
"area-id": "0.0.0.0",
"cost": 20
}
]
}
]
}
}
}
Match each Python expression on the left to the corresponding value extracted from the JSON structure on the right.
Click a left item, then click its matching right item
Items
Matches
A network engineer issues an API call to a Cisco Catalyst Center endpoint to query site health metrics. The API returns the following JSON response payload stored in a Python dictionary named `site_data`:
{
"response": [
{
"siteHierarchy": "Global/USA/SanJose/Building1",
"clientCount": 150,
"healthScore": [
{
"healthType": "OVERALL",
"score": 88
},
{
"healthType": "WIRELESS",
"score": 92
}
]
}
]
}
Which Python expression correctly extracts the numerical score for the WIRELESS health type from `site_data`?
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.)
Select all that apply
An enterprise network administration team is transitioning from manually entering configuration commands on individual switches via SSH to using centralized automation playbooks. Which primary operational benefit does this shift to automated management provide?