CCNA · Domain 6 of 6 · 10% of the exam

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

  1. Question 1. How does automation MOST improve network management?

    1. It removes the need for any network engineers
    2. It eliminates all network outages
    3. It makes devices use less power
    4. It reduces manual errors and makes changes consistent at scale
    Show answer

    Answer: D. It reduces manual errors and makes changes consistent at scale

    Automation applies standard changes quickly and repeatably, reducing human error.

  2. Question 2. What is a key difference between traditional networks and controller-based networks?

    1. Traditional networks use APIs for all configuration
    2. Controller-based networks require device-by-device CLI changes
    3. Controller-based networks centralize the control plane and policy
    4. Traditional networks have no data plane
    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.

  3. Question 3. In software-defined networking, which plane forwards packets?

    1. The control plane
    2. The management plane
    3. The data plane
    4. The application plane
    Show answer

    Answer: C. The data plane

    The data plane forwards traffic. The control plane decides how, and the management plane configures and monitors.

  4. Question 4. Which API direction does a controller use to talk to applications and administrators?

    1. Southbound
    2. Northbound
    3. Eastbound
    4. Downstream
    Show answer

    Answer: B. Northbound

    Northbound APIs, often REST, expose the controller to applications. Southbound APIs program network devices.

  5. Question 5. Which interface does an SDN controller use to program network devices?

    1. Northbound REST APIs for applications
    2. SNMP traps sent by the devices
    3. Syslog messages from the devices
    4. Southbound APIs such as OpenFlow, NETCONF, or RESTCONF
    Show answer

    Answer: D. Southbound APIs such as OpenFlow, NETCONF, or RESTCONF

    Southbound interfaces push configuration and forwarding state to devices.

  6. Question 6. In an SD-Access fabric, what is the underlay network?

    1. The virtual networks that users connect to
    2. The physical network connecting the fabric devices
    3. The controller's database of group policies
    4. The separate wireless network used by guests
    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.

  7. Question 7. What is an overlay network?

    1. A backup physical network for failover
    2. The management network for out-of-band access
    3. A second ISP connection
    4. A virtual network built with tunnels on top of the physical 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.

  8. Question 8. Which HTTP method is used in a REST API to retrieve data without changing it?

    1. POST
    2. PUT
    3. GET
    4. DELETE
    Show answer

    Answer: C. GET

    GET reads data. POST creates, PUT or PATCH updates, and DELETE removes resources.

  9. Question 9. Which CRUD operation maps to the HTTP POST method in a REST API?

    1. Read
    2. Create
    3. Update only
    4. Delete
    Show answer

    Answer: B. Create

    POST typically creates a new resource. PUT replaces and PATCH modifies existing ones.

  10. Question 10. What does an HTTP 401 response from a REST API mean?

    1. The request succeeded and returned data
    2. The resource was not found
    3. The request lacks valid authentication
    4. The server had an internal error
    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.

  11. Question 11. Which characteristic describes REST APIs?

    1. Stateless, with each request carrying all the information needed
    2. Stateful, with the server remembering each client session
    3. Only able to use XML encoding
    4. Only usable over serial connections
    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.

  12. Question 12. In JSON, how is an object represented?

    1. Values inside square brackets only
    2. Tags with opening and closing elements
    3. Indentation with no punctuation
    4. Key/value pairs inside curly braces
    Show answer

    Answer: D. Key/value pairs inside curly braces

    Objects use { "key": value }. Arrays use square brackets.

  13. Question 13. Which JSON data is valid?

    1. {hostname: R1, interfaces: [Gi0/0, Gi0/1], enabled: yes}
    2. <hostname>R1</hostname><enabled>true</enabled>
    3. hostname = "R1"; interfaces = "Gi0/0, Gi0/1";
    4. {"hostname": "R1", "interfaces": ["Gi0/0", "Gi0/1"], "enabled": true}
    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.

  14. Question 14. Which configuration management tool is agentless and uses YAML playbooks over SSH?

    1. Puppet
    2. Ansible
    3. Chef
    4. SaltStack with minions
    Show answer

    Answer: B. Ansible

    Ansible pushes changes over SSH without agents. Puppet and Chef traditionally use agents.

  15. Question 15. Which tool is designed for declarative infrastructure as code, using providers to create and manage resources?

    1. Syslog
    2. Wireshark
    3. Terraform
    4. NetFlow
    Show answer

    Answer: C. Terraform

    Terraform describes desired infrastructure in configuration files and applies the changes needed to reach that state.

  16. Question 16. What does "declarative" mean in configuration management?

    1. You list every command in the order it must run
    2. You configure devices manually through the CLI
    3. You write code in a compiled language
    4. You describe the desired end state, and the tool determines the steps
    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.

  17. Question 17. How can AI and machine learning help network operations?

    1. Detect anomalies and predict issues from telemetry
    2. Replace all routing protocols in the network
    3. Remove the need for security controls
    4. Guarantee that configurations never change
    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.

  18. Question 18. What is a risk of applying configurations generated by generative AI without review?

    1. They may contain errors or insecure settings that cause outages
    2. They cannot be pasted into network devices
    3. They always use outdated IOS syntax
    4. They disable automation permanently
    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.

  19. Question 19. Which Cisco product is a controller for enterprise campus networks that supports intent-based networking?

    1. Cisco Packet Tracer
    2. Cisco Catalyst Center (formerly DNA Center)
    3. Cisco Unified Communications Manager
    4. Cisco Webex
    Show answer

    Answer: B. Cisco Catalyst Center (formerly DNA Center)

    Catalyst Center automates and assures campus networks, exposing northbound REST APIs.

  20. Question 20. Which data format is commonly returned by REST APIs and is easy for both humans and programs to read?

    1. JSON
    2. Binary machine code
    3. CSV only
    4. Plain ASCII art
    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.