CCNA Domain 6: Automation and Programmability
20 free practice questions for Automation and Programmability in the Cisco Certified Network Associate (CCNA 200-301) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Automation and Programmability practice questions
-
Question 1. How does automation MOST improve network management?
Show answer
Answer: D. It reduces manual errors and makes changes consistent at scale
Automation applies standard changes quickly and repeatably, reducing human error.
-
Question 2. What is a key difference between traditional networks and controller-based networks?
Show answer
Answer: C. Controller-based networks centralize the control plane and policy
In controller-based networks, a central controller programs devices. Traditionally, each device is configured and runs its own control plane.
-
Question 3. In software-defined networking, which plane forwards packets?
Show answer
Answer: C. The data plane
The data plane forwards traffic. The control plane decides how, and the management plane configures and monitors.
-
Question 4. Which API direction does a controller use to talk to applications and administrators?
Show answer
Answer: B. Northbound
Northbound APIs, often REST, expose the controller to applications. Southbound APIs program network devices.
-
Question 5. Which interface does an SDN controller use to program network devices?
Show answer
Answer: D. Southbound APIs such as OpenFlow, NETCONF, or RESTCONF
Southbound interfaces push configuration and forwarding state to devices.
-
Question 6. In an SD-Access fabric, what is the underlay network?
Show answer
Answer: B. The physical network connecting the fabric devices
The underlay carries traffic between nodes. The overlay builds virtual networks (tunnels) on top of it.
-
Question 7. What is an overlay network?
Show answer
Answer: D. A virtual network built with tunnels on top of the physical network
Overlays such as VXLAN let virtual topologies be created independently of the physical layout.
-
Question 8. Which HTTP method is used in a REST API to retrieve data without changing it?
Show answer
Answer: C. GET
GET reads data. POST creates, PUT or PATCH updates, and DELETE removes resources.
-
Question 9. Which CRUD operation maps to the HTTP POST method in a REST API?
Show answer
Answer: B. Create
POST typically creates a new resource. PUT replaces and PATCH modifies existing ones.
-
Question 10. What does an HTTP 401 response from a REST API mean?
Show answer
Answer: C. The request lacks valid authentication
401 means unauthorized (not authenticated). 403 is forbidden, 404 not found, and 500 a server error.
-
Question 11. Which characteristic describes REST APIs?
Show answer
Answer: A. Stateless, with each request carrying all the information needed
REST is stateless and typically uses HTTP with JSON or XML payloads.
-
Question 12. In JSON, how is an object represented?
Show answer
Answer: D. Key/value pairs inside curly braces
Objects use { "key": value }. Arrays use square brackets.
-
Question 13. Which JSON data is valid?
Show answer
Answer: D. {"hostname": "R1", "interfaces": ["Gi0/0", "Gi0/1"], "enabled": true}
JSON keys and string values need double quotes, arrays use brackets, and booleans are true or false.
-
Question 14. Which configuration management tool is agentless and uses YAML playbooks over SSH?
Show answer
Answer: B. Ansible
Ansible pushes changes over SSH without agents. Puppet and Chef traditionally use agents.
-
Question 15. Which tool is designed for declarative infrastructure as code, using providers to create and manage resources?
Show answer
Answer: C. Terraform
Terraform describes desired infrastructure in configuration files and applies the changes needed to reach that state.
-
Question 16. What does "declarative" mean in configuration management?
Show answer
Answer: D. You describe the desired end state, and the tool determines the steps
Declarative tools reconcile the actual state with the desired state. Imperative approaches spell out each step.
-
Question 17. How can AI and machine learning help network operations?
Show answer
Answer: A. Detect anomalies and predict issues from telemetry
Predictive AI finds patterns and anomalies in network data. Generative AI can assist with tasks such as drafting configurations, which still need review.
-
Question 18. What is a risk of applying configurations generated by generative AI without review?
Show answer
Answer: A. They may contain errors or insecure settings that cause outages
AI output can be confidently wrong, so human validation and testing are required.
-
Question 19. Which Cisco product is a controller for enterprise campus networks that supports intent-based networking?
Show answer
Answer: B. Cisco Catalyst Center (formerly DNA Center)
Catalyst Center automates and assures campus networks, exposing northbound REST APIs.
-
Question 20. Which data format is commonly returned by REST APIs and is easy for both humans and programs to read?
Show answer
Answer: A. JSON
JSON is lightweight and widely used. XML and YAML are also common in network automation.
Cisco and CCNA are trademarks or registered trademarks of Cisco Systems, Inc. These questions are original study material, not questions from the real exam.