All exams← All Cisco CCNA Practice notes

Automation & programmability: Cisco CCNA Practice revision notes

Revision notes

What automation and programmability actually cover

This topic tests whether you understand WHY networks are moving away from box-by-box CLI configuration towards centralised, software-driven control. CCNA does not expect you to write code fluently, but you must know the concepts, the architecture, and the key terms.

Traditional networking vs controller-based networking

Traditional networks are managed device-by-device via CLI (SSH/console), which does not scale and is prone to human error and configuration drift. Controller-based (SDN) networks separate the control plane (decision-making, on a central controller) from the data plane (packet forwarding, on the switches/routers). The controller has a network-wide view and pushes configuration to devices via APIs, giving consistency and speed.

Northbound vs southbound APIs

  • Northbound API: sits between the controller and the applications/orchestration layer above it (usually REST/HTTP, often using JSON).
  • Southbound API: sits between the controller and the physical/virtual devices below it (examples: OpenFlow, NETCONF, OpFlex).

Getting the direction backwards is a very common exam trap - remember 'North looks up to apps, South looks down to devices'.

Data formats and REST APIs

Automation tools exchange structured data, not screen-scraped CLI text. Know the three formats:

  • JSON: uses key-value pairs in braces {}, most common in networking APIs.
  • XML: uses opening/closing tags like <tag>value</tag>, used heavily by NETCONF.
  • YAML: uses indentation and colons, no braces, human-readable, used by Ansible.

REST APIs use standard HTTP methods: GET (read), POST (create), PUT/PATCH (update), DELETE (remove).

Configuration management tools

Three tools are named on the exam - know their model and language:

  • Ansible: agentless, uses SSH, playbooks written in YAML, push-based.
  • Puppet: agent-based, uses a Ruby-like DSL, pull-based (agent checks in with the master).
  • Chef: agent-based, uses Ruby, pull-based, uses 'recipes' and 'cookbooks'.

Agentless (Ansible) is simpler to deploy since nothing extra is installed on the managed device.

Cisco SDN controllers

  • Cisco DNA Center: enterprise campus/branch automation and assurance, intent-based networking.
  • Cisco SD-WAN (vManage): controller for wide area network overlay/underlay automation.
  • Cisco ACI (APIC controller): data centre SDN, uses a policy/application-centric model.

Common mistakes

Students often mix up northbound/southbound, forget that JSON has no closing tags (unlike XML), and confuse push (Ansible/SSH) versus pull (Puppet/Chef, agent-based) automation models. Also remember APIs are typically consumed over HTTPS with authentication tokens, not plain HTTP.

Key facts

Flashcards

What does SDN stand for and what does it separate?
Software-Defined Networking; it separates the control plane (on a central controller) from the data plane (forwarding, on switches/routers)
tap to reveal
Which direction does a northbound API face?
Up towards applications and orchestration systems, typically using REST/HTTP and JSON
tap to reveal
Which direction does a southbound API face, and name an example protocol
Down towards network devices; example: OpenFlow or NETCONF
tap to reveal
What format uses key-value pairs inside curly braces?
JSON
tap to reveal
What format uses matching opening and closing tags like <tag>value</tag>?
XML
tap to reveal
What format uses indentation and colons with no braces, and which tool uses it?
YAML; used by Ansible playbooks
tap to reveal
What HTTP method is used to create a new resource via REST API?
POST
tap to reveal
What HTTP method is used to read/retrieve data via REST API?
GET
tap to reveal
What HTTP method removes a resource via REST API?
DELETE
tap to reveal
Is Ansible agent-based or agentless, and what protocol does it use to connect?
Agentless; it connects over SSH
tap to reveal
Are Puppet and Chef push-based or pull-based?
Pull-based - an agent on the managed device checks in with a central master/server
tap to reveal
What language does Puppet use, and what does Chef use?
Puppet uses a Ruby-like DSL; Chef uses Ruby (recipes and cookbooks)
tap to reveal
What is Cisco DNA Center used for?
SDN controller for enterprise campus and branch network automation and assurance
tap to reveal
What is Cisco ACI's controller called, and what network domain is it for?
The APIC controller; used for data centre SDN with an application/policy-centric model
tap to reveal
What is Cisco SD-WAN's controller called?
vManage
tap to reveal
Practice questions

Automation & programmability: 5 practice questions

Q1. What is the primary architectural difference between a traditional network device and a software-defined network (SDN) controller-based device?
  • A.  SDN devices no longer have a data plane at all
  • B.  The control plane is centralised in the SDN controller instead of running locally on each device
  • C.  Traditional devices cannot forward packets without a controller
  • D.  SDN removes the need for a management plane entirely
Show answer & explanation
✓ Answer: B. The control plane is centralised in the SDN controller instead of running locally on each device
In SDN, the control plane logic that decides how traffic should be forwarded is centralised in a controller, while devices retain only the data plane to forward packets based on instructions from the controller. Traditional devices run both control and data planes locally. Devices still need a data plane and management plane in both models.
Q2. Which plane of network device operation is responsible for actually forwarding packets based on the forwarding table?
  • A.  Data plane
  • B.  Application plane
  • C.  Management plane
  • D.  Control plane
Show answer & explanation
✓ Answer: A. Data plane
The data plane (forwarding plane) forwards packets through the device using the forwarding table built by the control plane. The control plane builds the routing/forwarding logic, and the management plane handles device configuration and monitoring, such as SSH or SNMP access.
Q3. In a Cisco SD-Access or SDN architecture, what is the role of the 'northbound API' on a controller?
  • A.  It allows applications to communicate with the controller to request network services
  • B.  It allows the controller to communicate with network devices below it
  • C.  It replicates configuration between two redundant controllers
  • D.  It handles authentication of network administrators only
Show answer & explanation
✓ Answer: A. It allows applications to communicate with the controller to request network services
Northbound APIs face upward toward applications and orchestration systems, allowing them to request services or retrieve data from the controller, often using REST. Southbound APIs (like OpenFlow or NETCONF) face downward toward the managed devices.
Q4. Which of the following is an example of a southbound API/protocol used by an SDN controller to manage network devices?
  • A.  REST
  • B.  GraphQL
  • C.  SOAP
  • D.  OpenFlow
Show answer & explanation
✓ Answer: D. OpenFlow
OpenFlow is a southbound protocol that allows a controller to directly program the forwarding tables of switches. REST, GraphQL, and SOAP are typically used as northbound interfaces for applications to interact with controllers.
Q5. What data format uses key-value pairs, arrays, and nested objects, and is commonly returned by REST APIs due to its lightweight, human-readable structure?
  • A.  CSV
  • B.  XML
  • C.  JSON
  • D.  YAML
Show answer & explanation
✓ Answer: C. JSON
JSON (JavaScript Object Notation) uses curly braces for objects and square brackets for arrays with key-value pairs, and is widely used in REST API responses because it is lightweight and easy to parse. XML uses tags, YAML uses indentation, and CSV is a flat tabular format.
Test yourself
See the Cisco CCNA Practice page

More Cisco CCNA Practice topics