CCIE CCIE Automation and Programmability 2 — Questions and Answers
Question 1: In Ansible, what is the purpose of an 'inventory' file?
- Storing playbook task definitions
- Defining the list of managed hosts and groupings (Correct answer)
- Encrypting sensitive variables
- Configuring Ansible control node settings
Correct answer: Defining the list of managed hosts and groupings
The Ansible inventory file defines the managed hosts, their groupings, and host/group variables used by playbooks during automation runs.
Question 2: What is the key difference between RESTCONF and NETCONF?
- RESTCONF uses YANG while NETCONF does not
- RESTCONF uses HTTP/HTTPS with REST principles while NETCONF uses SSH with XML-RPC (Correct answer)
- RESTCONF is more secure than NETCONF
- NETCONF only works on Cisco devices
Correct answer: RESTCONF uses HTTP/HTTPS with REST principles while NETCONF uses SSH with XML-RPC
RESTCONF uses HTTP/HTTPS with REST operations (GET, PUT, POST, DELETE) while NETCONF uses SSH transport with XML-encoded RPC operations.
Question 3: In Cisco NSO (Network Services Orchestrator), what is a 'service package' used for?
- Installing NSO software
- Defining reusable network service models that abstract device-specific configuration (Correct answer)
- Managing NSO user authentication
- Providing NSO high availability
Correct answer: Defining reusable network service models that abstract device-specific configuration
NSO service packages define YANG-based service models and mapping logic that translate abstract service inputs into device-specific configurations.
Question 4: Which Python library provides a higher-level abstraction for SSH-based network device management, supporting multiple vendor CLI?
- ncclient
- netmiko (Correct answer)
- pyATS
- napalm
Correct answer: netmiko
Netmiko is a Python library built on Paramiko that abstracts SSH connections to network devices, providing vendor-agnostic methods for sending CLI commands.
Question 5: What is the purpose of Cisco pyATS (Python Automated Test System) in network automation?
- Providing a REST API framework
- Network test and verification framework with device abstraction (Correct answer)
- YANG model validation
- Ansible module development
Correct answer: Network test and verification framework with device abstraction
Cisco pyATS is a test framework providing device abstraction (Genie), state comparison, and automated testing for network verification and regression testing.
Question 6: In YANG modeling, what does the 'list' node type represent?
- An ordered sequence of scalar values
- A sequence of list entries each identified by key leaf(s) (Correct answer)
- A mandatory configuration parameter
- A read-only operational data node
Correct answer: A sequence of list entries each identified by key leaf(s)
A YANG 'list' node represents a sequence of list entries (like BGP neighbors or interfaces), each uniquely identified by one or more key leaf values.
In Ansible, what is the purpose of an 'inventory' file?