Cisco CCNA Network Automation and APIs 4 — Questions and Answers
Question 1: Which statement best describes Infrastructure as Code (IaC)?
- Writing firmware for network hardware
- Managing and provisioning infrastructure through machine-readable definition files (Correct answer)
- Using CLI scripts exclusively for router configuration
- Replacing physical hardware with virtual machines
Correct answer: Managing and provisioning infrastructure through machine-readable definition files
IaC treats infrastructure configuration as code, stored in version-controlled files and applied automatically by tools.
Question 2: In Cisco's SD-WAN (Viptela) architecture, which component exposes REST APIs for centralized management?
- vEdge
- vBond
- vManage (Correct answer)
- vSmart
Correct answer: vManage
vManage is the centralized management plane that provides REST APIs for configuration, monitoring, and policy management.
Question 3: What HTTP header is used to specify that a REST API request body contains JSON data?
- Accept: application/xml
- Content-Type: application/json (Correct answer)
- Authorization: Bearer token
- X-API-Key: mykey
Correct answer: Content-Type: application/json
The Content-Type header tells the server the format of the request body, and 'application/json' indicates JSON encoding.
Question 4: Which version control system is most commonly used to store Ansible playbooks and network automation scripts?
- SVN (Subversion)
- CVS
- Git (Correct answer)
- Mercurial
Correct answer: Git
Git is the dominant version control system used for storing automation code, playbooks, and configurations.
Question 5: What is the role of an API key in REST API authentication?
- It encrypts the API payload
- It identifies and authenticates the client making the API request (Correct answer)
- It specifies the API version to use
- It defines the rate limit for responses
Correct answer: It identifies and authenticates the client making the API request
An API key is a secret token passed in requests to identify and authenticate the calling application or user.
Question 6: In the context of network automation, what is a 'source of truth'?
- The configuration currently running on a device
- An authoritative system that holds the intended state of the network (Correct answer)
- The oldest backup configuration file
- A SNMP trap collector
Correct answer: An authoritative system that holds the intended state of the network
A source of truth (e.g., NetBox, CMDB) is the authoritative repository for the desired/intended network state used to drive automation.
Question 7: Which Python data type is most analogous to a JSON object?
- list
- tuple
- dictionary (Correct answer)
- set
Correct answer: dictionary
A JSON object (key-value pairs in curly braces) maps directly to a Python dictionary.
Which statement best describes Infrastructure as Code (IaC)?