Cisco Certified Network Associate (CCNA 200-301) · Cisco
Automation and Programmability
12 practice questions covering 10% of the official Cisco Certified Network Associate (CCNA 200-301) blueprint. Every item includes a worked explanation of the correct answer.
View all 6 domains in Cisco Certified Network Associate (CCNA 200-301)
Syllabus Coverage & Domain Overview
Automation and Programmability makes up about 10 percent of the CCNA 200-301 v1.1 exam. The official outline asks you to explain how automation changes network management, compare traditional device-by-device networking with controller-based networking, and describe software-defined architecture, including the ideas of overlay, underlay and fabric, the separation of control plane from data plane, and northbound versus southbound APIs. It also covers the role of generative and predictive AI and machine learning in network operations, the characteristics of REST-based APIs, the capabilities of configuration management tools such as Ansible and Terraform, and recognizing the parts of JSON-encoded data.
The distinctions below are the ones to be sure of. In a traditional network every device runs its own control plane and is configured one box at a time. In a controller-based design, a central controller holds the logic and policy and pushes it to devices. Northbound interfaces face the applications and administrators above the controller. Southbound interfaces face the network devices below it. The underlay is the physical and routed transport, the overlay is the virtual network built on top of it, and the fabric is the combined whole. For REST, know that it runs over HTTP and is stateless. Know that HTTP verbs map to create, read, update and delete operations, that clients must authenticate in some form, and that payloads are commonly encoded as JSON. For configuration management, understand what these tools do conceptually: they describe a desired state or a set of tasks once and apply it consistently across many devices, instead of relying on manual CLI work.
Questions are usually scenario based. You may be given a short situation and asked which architecture, API direction, HTTP verb or tool fits. Or you may be shown a small JSON snippet and asked what a particular key, value, object or array represents. Common traps include mixing up northbound and southbound, assuming a controller carries user traffic when it normally sits outside the data path, and confusing the verb that creates a resource with the one that replaces or modifies it. Another trap is misreading JSON syntax, such as the difference between curly braces and square brackets, or treating a string as a number. Watch for answers that sound plausible but describe a manual or device-local method when the question is about centralized or programmatic control.
For preparation, work from the official outline and make sure you can explain each line in a sentence or two without notes. Practise reading JSON until nested objects and arrays are easy to follow. Look at a few sample REST requests and responses and say what each part does. Make a small comparison table of traditional versus controller-based networking and of the main automation tools. Then do practice questions on this topic and review every wrong answer until you can explain why the correct option fits and the others do not.
In the official Cisco Certified Network Associate (CCNA 200-301) examination blueprint, Automation and Programmability carries a weightage of 10%. Out of the total examination duration of 2 hr, candidates should budget approximately 12 min for questions from this domain to maintain pace across the paper.
How to Master Automation and Programmability for Cisco Certified Network Associate (CCNA 200-301)
Our 12 published questions in Automation and Programmability are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the medium difficulty level of the Cisco exam:
- Targeted Topic Drills: Launch Topic Practice mode to work exclusively through Automation and Programmability items and review the step-by-step derivation after each submission.
- Negative Marking Discipline: The Cisco Certified Network Associate (CCNA 200-301) applies no negative marking penalty, so practice eliminating the three distractors systematically on every Automation and Programmability item.
- Benchmark Target: Aim for at least 82.5% accuracy in Automation and Programmability drills before moving to full-paper simulations.
Automation and Programmability worked examples
Automation and Programmability questions from the Cisco Certified Network Associate (CCNA 200-301) syllabus, answered in full. Try each one before opening the explanation.
Example 1 · Automation and Programmability · easy
A network automation engineer is comparing Ansible and Puppet/Chef for automating VLAN and OSPF configurations across 250 Cisco Catalyst switches that cannot install third-party Linux agents on their IOS XE firmware. Which two characteristics accurately describe how Ansible operates in this environment? (Select two.)
Show answer and explanation
Correct answers: A. Operates agentlessly by connecting to switches over SSH or NETCONF; D. Defines automation tasks and device state using human-readable YAML Playbooks
Why
Ansible is an agentless automation tool. It runs from a control node and pushes configuration to managed devices over transports those devices already support, such as SSH (CLI-based modules like ios_config) or NETCONF (TCP 830), so nothing needs to be installed on the Catalyst switches. This is why it fits an environment where third-party Linux agents cannot be installed on IOS XE. Ansible also describes automation in Playbooks, which are written in YAML. Playbooks are human-readable, declarative lists of plays and tasks that state the desired result, for example which VLANs or OSPF settings should exist. The common trap is mixing up the tools. Puppet and Chef are agent-based in their traditional models and use a pull approach with a Ruby-based DSL, while Ansible is push-based and uses YAML. Also remember that Ansible uses secure, standard management transports, not file-transfer protocols.
- B. Requires installing a persistent Ruby daemon inside every switch's flash memory — A persistent Ruby daemon describes the agent model used by Puppet and Chef, which are Ruby-based. Ansible needs no on-box daemon, and the scenario says agents cannot be installed on these switches in any case.
- C. Communicates exclusively via unencrypted UDP port 69 TFTP broadcasts — TFTP uses UDP port 69 and only transfers files, and it is not a broadcast-based, encrypted automation protocol. Ansible manages devices over encrypted SSH on TCP 22 or NETCONF on TCP 830, so this does not describe how it operates.
Example 2 · Automation and Programmability · easy
A Python script calls the Cisco Catalyst Center (DNA Center) REST API over HTTPS to retrieve the current inventory list of all managed network switches without modifying any device state, and receives a successful payload. Which HTTP method and HTTP status code pair corresponds to this read-only API request?
Show answer and explanation
Correct answer: A. HTTP GET returning status code 200 OK
Why
A read-only inventory query to Catalyst Center maps to the HTTP GET method. GET is defined as safe and idempotent: it asks the server for a representation of a resource and does not change state, which matches retrieving the list of managed devices. A successful retrieval is reported with status code 200 OK, and the inventory data is carried in the response body, usually as JSON. The question gives two clues, so both halves of each option must be checked: the method must be read-only, and the status code must indicate success with a payload. The common trap is to pick an option on the method alone, or to ignore the stated result. Options with 4xx or 5xx codes cannot match a scenario that received a successful payload, no matter which verb they use. Also remember the CRUD mapping the exam expects: POST creates, GET reads, PUT updates or replaces, and DELETE removes. Status code classes are 2xx success, 3xx redirection, 4xx client error, and 5xx server error.
- B. HTTP POST returning status code 401 Unauthorized — POST is used to create a resource or trigger an action, so it is not a read-only retrieval. The 401 Unauthorized code means authentication failed, which contradicts the successful payload described in the scenario.
- C. HTTP DELETE returning status code 404 Not Found — DELETE removes a resource, which would modify device or inventory state and violates the read-only requirement. The 404 Not Found code means the target URI does not exist, which is an error, not a successful retrieval.
- D. HTTP PUT returning status code 500 Internal Server Error — PUT replaces or updates an existing resource, so it changes state and is not a read operation. The 500 Internal Server Error code indicates a server-side fault, which contradicts the successful response in the scenario.
Example 3 · Automation and Programmability · hard
When automating Cisco IOS XE devices using model-driven programmability, an engineer must choose between NETCONF and RESTCONF, both of which use YANG (Yet Another Next Generation) data models. Which two statements accurately compare the transport protocols and data encodings of NETCONF and RESTCONF? (Select two.)
Show answer and explanation
Correct answers: A. NETCONF operates over SSH (TCP 830) using XML-encoded RPC messages; D. RESTCONF operates over HTTPS (TCP 443) using JSON or XML payloads
Why
NETCONF (RFC 6241) runs over SSH (TCP port 830) and encodes configuration RPCs exclusively in XML (A). RESTCONF (RFC 8040) is a stateless HTTP-based protocol that runs over HTTPS (TCP port 443) and supports both JSON (application/yang-data+json) and XML (application/yang-data+xml) payloads mapped to standard HTTP verbs (GET, POST, PUT, PATCH, DELETE) (D).
- B. NETCONF operates over unencrypted UDP port 69 using CSV text files — UDP 69 is TFTP; NETCONF requires encrypted SSH (TCP 830) and structured XML.
- C. RESTCONF requires a proprietary Cisco serial console cable for every query — RESTCONF runs over standard IP networks via HTTPS (TCP 443).
Example 4 · Automation and Programmability · medium
On a Cisco Catalyst switch, a legacy router calculates every route locally using distributed OSPF hellos and builds its own forwarding table in hardware. When explaining Controller-Based Networking (SDN) to a junior engineer, how are the Data Plane, Control Plane, and Management Plane defined?
Show answer and explanation
Correct answer: D. Data Plane forwards packets in ASICs; Control Plane builds routing tables; Management Plane handles SSH/NETCONF/SNMP
Why
- Data Plane (Forwarding Plane): Forwards packets/frames at line rate in hardware (ASICs/TCAM) based on populated tables (CEF/FIB and MAC table). - Control Plane: Makes routing and topology decisions (OSPF, BGP, STP, ARP) that populate the forwarding tables (centralized in an SDN controller). - Management Plane: Handles device administration, monitoring, and configuration (SSH, SNMP, Syslog, NETCONF, RESTCONF).
- A. Data Plane runs SSH CLI sessions; Control Plane crimps RJ-45 cables; Management Plane switches Ethernet frames — SSH belongs to the Management Plane, physical cabling is Layer 1, and frame switching is the Data Plane.
- B. Data Plane computes OSPF shortest paths; Control Plane sends Syslog alerts; Management Plane performs ASIC lookups — OSPF path calculation is Control Plane, Syslog is Management Plane, and ASIC lookup is Data Plane.
- C. All three planes execute inside an end-user Windows workstation browser — The three planes describe network device and SDN controller packet-handling architectures.
Example 5 · Automation and Programmability · easy
Examine the following JSON payload returned by a Cisco IOS XE RESTCONF query: json { "ietf-interfaces:interface": { "name": "GigabitEthernet1", "enabled": true, "ipv4": { "address": [ { "ip": "10.1.1.1", "netmask": "255.255.255.0" } ] } } } In JSON syntax, what data types are represented by the values of "enabled" (true) and "address" ([ { ... } ])?
Show answer and explanation
Correct answer: B. "enabled" is a Boolean and "address" is an Array of Objects
Why
The keyed answer is correct. In JSON, the literals true and false (written without quotes, in lowercase) are the Boolean type, so the value of "enabled" is a Boolean. The value of "address" begins with a square bracket, which marks a JSON array, an ordered list of values. Each element of this array is itself enclosed in curly braces, which marks a JSON object made of key-value pairs, here "ip" and "netmask". So "address" is an array of objects. This is the usual shape of YANG list data in RESTCONF, where a list of entries such as multiple IP addresses on one interface is encoded as an array. The most common trap is confusing quoting and brackets: a quoted value would be a string, while true without quotes is a Boolean. Another is treating the square brackets and the curly braces as interchangeable, when [] means array and {} means object.
- A. "enabled" is a String and "address" is a floating-point Number — This option says "enabled" is a String, but a string must be enclosed in double quotes, and true is unquoted, so it is a Boolean. It also calls "address" a floating-point Number, but a Number is a bare numeric literal such as 3.14, never a bracketed list.
- C. "enabled" is an Array and "address" is a null pointer reference — This option says "enabled" is an Array, but an array needs square brackets and "enabled" holds a bare true. It also says "address" is null, but null is a separate literal written as null, and "address" holds a populated list. The array is actually on "address", not "enabled", so the types are swapped and wrong.
- D. Both "enabled" and "address" are XML CDATA string attributes — CDATA sections and attributes are XML constructs and do not exist in JSON. This payload uses JSON syntax with braces, brackets, and colon-separated key-value pairs. RESTCONF can return XML as well as JSON, but the question asks about JSON data types, so XML terms do not apply.
Example 6 · Automation and Programmability · medium
In a software-defined network (SDN) managed by Cisco Catalyst Center (formerly Cisco DNA Center), an external IT service management application calls an API on the controller to provision a new QoS policy, and the controller then pushes the configuration down to 100 Catalyst switches. How are the API between the application and the controller and the interface between the controller and the switches classified?
Show answer and explanation
Correct answer: D. Northbound REST API toward the app and Southbound API toward the switches
Why
In SDN architecture, the API facing upward toward external applications and orchestrators is the Northbound API (typically a RESTful HTTPS/JSON API), while the interface facing downward from the controller to program physical/virtual network switches and routers is the Southbound API (NETCONF, RESTCONF, SSH, SNMP, OpenFlow).
- A. Southbound API toward the application and Northbound API toward the switches — This reverses the SDN architectural orientation (applications sit 'north' of the controller; switches sit 'south').
- B. East-West BGP peering API for both interfaces using TCP port 179 sessions — BGP is a distributed routing protocol, not the Northbound/Southbound SDN controller API hierarchy.
- C. Spanning Tree BPDU API toward the application and VTP toward the switches — STP and VTP are legacy Layer 2 switching protocols, not SDN controller APIs.
Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.
All 6 Automation and Programmability questions with answers
- A network automation engineer is comparing Ansible and Puppet/Chef for automating VLAN and OSPF configurations across…
- A Python script calls the Cisco Catalyst Center (DNA Center) REST API over HTTPS to retrieve the current inventory…
- When automating Cisco IOS XE devices using model-driven programmability, an engineer must choose between NETCONF and…
- On a Cisco Catalyst switch, a legacy router calculates every route locally using distributed OSPF hellos and builds…
- Examine the following JSON payload returned by a Cisco IOS XE RESTCONF query: json { "ietf-interfaces:interface": {…
- In a software-defined network (SDN) managed by Cisco Catalyst Center (formerly Cisco DNA Center), an external IT…
All Syllabus Domains in Cisco Certified Network Associate (CCNA 200-301)
Network Fundamentals
11 questions · 20%Network Access
11 questions · 20%IP Connectivity
12 questions · 25%IP Services
12 questions · 10%Security Fundamentals
11 questions · 15%Automation and Programmability (Current domain)
12 questions · 10%
Cisco and CCNA are trademarks of Cisco Systems, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.