Network Automation Flashcards
(120 cards)
Basics of Network Automation
What is the primary goal of network automation?
a) Reducing manual configuration errors
b) Increasing hardware costs
c) Slowing down network operations
d) Limiting scalability
Answer: a) Reducing manual configuration errors
Which of the following is NOT a benefit of network automation?
a) Faster deployment of network services
b) Increased human errors
c) Improved consistency in configurations
d) Reduced operational costs
Answer: b) Increased human errors
What does Infrastructure as Code (IaC) mean in network automation?
a) Manually configuring devices via CLI
b) Managing network configurations using scripts and templates
c) Using physical servers for all configurations
d) Avoiding any form of scripting
Answer: b) Managing network configurations using scripts and templates
Which protocol is commonly used for automating network device configurations?
a) HTTP
b) SNMP
c) NETCONF
d) FTP
Answer: c) NETCONF
What is the role of YANG in network automation?
a) A data encryption standard
b) A data modeling language for NETCONF
c) A routing protocol
d) A wireless security protocol
Answer: b) A data modeling language for NETCONF
APIs in Network Automation
Which API is commonly used for Cisco devices to enable automation?
a) RESTCONF
b) BGP
c) OSPF
d) ICMP
Answer: a) RESTCONF
What is the primary function of a REST API in network automation?
a) Encrypting all network traffic
b) Enabling programmatic interaction with devices using HTTP methods
c) Replacing all CLI commands
d) Blocking automation scripts
Answer: b) Enabling programmatic interaction with devices using HTTP methods
Which HTTP method is used to retrieve data in a REST API?
a) POST
b) GET
c) PUT
d) DELETE
Answer: b) GET
What does CRUD stand for in API operations?
a) Create, Read, Update, Delete
b) Configure, Route, Update, Disable
c) Control, Reset, Undo, Deploy
d) Copy, Remove, Upload, Download
Answer: a) Create, Read, Update, Delete
Which format is commonly used for data exchange in REST APIs?
a) Binary
b) XML
c) JSON
d) CSV
Answer: c) JSON
Which tool is used for push-based configuration automation?
a) Ansible
b) Puppet
c) Chef
d) SaltStack
Answer: a) Ansible
What is an Ansible Playbook?
a) A CLI command for Cisco routers
b) A YAML file defining automation tasks
c) A Python script for encryption
d) A network monitoring tool
Answer: b) A YAML file defining automation tasks
Which protocol does Ansible primarily use to communicate with network devices?
a) SSH
b) Telnet
c) HTTP
d) SNMP
Answer: a) SSH
What is the purpose of Puppet in network automation?
a) Real-time traffic analysis
b) Enforcing desired state configurations
c) Packet sniffing
d) Dynamic routing
Answer: b) Enforcing desired state configurations
Which of the following is a pull-based configuration management tool?
a) Ansible
b) Chef
c) Netmiko
d) NAPALM
Answer: b) Chef
Python for Network Automation
Which Python library is commonly used for SSH-based network automation?
a) Requests
b) Netmiko
c) Flask
d) Pandas
Answer: b) Netmiko
What is the purpose of the Paramiko library in Python?
a) Web scraping
b) SSH protocol implementation
c) Data visualization
d) Database management
Answer: b) SSH protocol implementation
Which Python module is used for working with JSON data?
a) os
b) json
c) sys
d) re
Answer: b) json
What does the following Python code do?
python
import requests
response = requests.get(“https://api.example.com/devices”)
a) Sends a POST request
b) Retrieves device data via a REST API
c) Configures a router via CLI
d) Encrypts network traffic
Answer: b) Retrieves device data via a REST API
Which Python data structure is most suitable for storing device configurations?
a) List
b) Dictionary
c) Tuple
d) Set
Answer: b) Dictionary
What is the main concept of Software-Defined Networking (SDN)?
a) Decoupling control plane from data plane
b) Merging control and data planes
c) Eliminating all network controllers
d) Using only hardware-based routing
Answer: a) Decoupling control plane from data plane
Which component in SDN makes centralized decisions?
a) Data Plane
b) Control Plane
c) SDN Controller
d) Router CPU
Answer: c) SDN Controller
What protocol is commonly used between SDN controllers and switches?
a) OSPF
b) OpenFlow
c) BGP
d) EIGRP
Answer: b) OpenFlow
Which Cisco solution provides SDN capabilities for enterprise networks?
a) Cisco ACI
b) Cisco IOS
c) Cisco Catalyst
d) Cisco IronPort
Answer: a) Cisco ACI