CCIE CCIE Automation and Programmability 1 — Questions and Answers
Question 1: Which data encoding format uses indentation-based hierarchy and is natively used by Ansible playbooks?
- JSON
- XML
- YAML (Correct answer)
- CSV
Correct answer: YAML
YAML (YAML Ain't Markup Language) uses indentation to define structure and is the native format for Ansible playbooks and Kubernetes manifests.
Question 2: In YANG data models, what is the 'leaf' node used for?
- Defining a list of items
- Representing a single data value with a specific type (Correct answer)
- Grouping related nodes
- Defining reusable configuration blocks
Correct answer: Representing a single data value with a specific type
A YANG 'leaf' node represents a single scalar value (like an IP address or interface name) with a specific data type.
Question 3: Which NETCONF operation retrieves the current running configuration from a network device?
- <get-config> with source=running (Correct answer)
- <edit-config>
- <commit>
- <validate>
Correct answer: <get-config> with source=running
The NETCONF <get-config> operation with source='running' retrieves the currently active configuration datastore from the device.
Question 4: What transport protocol and port does NETCONF use by default?
- HTTP/80
- HTTPS/443
- SSH/830 (Correct answer)
- TELNET/23
Correct answer: SSH/830
NETCONF uses SSH as its transport with the IANA-assigned port 830, providing secure encrypted communication for network configuration.
Question 5: In Python, which library is commonly used to establish NETCONF sessions and interact with Cisco IOS-XE devices?
- paramiko
- ncclient (Correct answer)
- netmiko
- requests
Correct answer: ncclient
The 'ncclient' Python library provides a high-level NETCONF client interface for establishing sessions and sending RPC operations to NETCONF-enabled devices.
Question 6: Which Cisco platform provides a model-driven programmability interface supporting NETCONF, RESTCONF, and gRPC?
- Cisco DNA Center API only
- Cisco IOS-XE with YANG data models (Correct answer)
- Cisco ACI APIC only
- Cisco NX-OS traditional CLI
Correct answer: Cisco IOS-XE with YANG data models
Cisco IOS-XE supports model-driven programmability through NETCONF (port 830), RESTCONF (HTTPS), and gRPC-based gNMI interfaces using YANG data models.
Which data encoding format uses indentation-based hierarchy and is natively used by Ansible playbooks?