Practice Automation Questions Now
Start a timed practice session focusing on Network Automation & Programmability topics from the CCNA question bank.
Start CCNA Practice Quiz →CCNA Automation Question Bank (14 Questions)
Browse all 14 practice questions covering Network Automation & Programmability for the CCNA certification exam. Each question includes the full answer and a detailed explanation to help you understand the concepts.
- Question 1Automation and Programmability
Which configuration management tool uses a pull-based model?
Show Answer & Explanation
Correct Answer: BExplanation:Puppet uses a pull-based model where agents periodically check the Puppet master for configuration changes. Ansible uses a push-based model.
- Question 2Automation and Programmability
What is the first step when using Cisco DNA Center APIs?
Show Answer & Explanation
Correct Answer: BExplanation:DNA Center uses token-based authentication. You first POST credentials to /dna/system/api/v1/auth/token and use the returned token in the X-Auth-Token header.
- Question 3Automation and Programmability
Which HTTP method is used to create a new resource in a RESTful API?
Show Answer & Explanation
Correct Answer: CExplanation:POST creates a new resource. GET retrieves, PUT replaces entirely, PATCH updates partially, and DELETE removes a resource.
- Question 4Automation and Programmability
Which HTTP status code indicates a resource was successfully created?
Show Answer & Explanation
Correct Answer: BExplanation:HTTP 201 Created indicates a new resource was successfully created. 200 OK is a general success, 204 is success with no response body.
- Question 5Automation and Programmability
Which HTTP method is used to create a new resource via a REST API?
Show Answer & Explanation
Correct Answer: BExplanation:REST API HTTP methods: GET (read/retrieve), POST (create new resource), PUT (update/replace entire resource), PATCH (partial update), DELETE (remove resource). POST typically returns 201 Created with the new resource's URI in the Location header.
- Question 6Automation and Programmability
How does YAML differ from JSON as a data serialization format?
Show Answer & Explanation
Correct Answer: BExplanation:YAML: whitespace/indentation-based, supports comments (#), more readable for configs. JSON: braces {} and brackets [], no comments, universal API format. Both represent the same data structures (maps, lists, scalars). Ansible uses YAML; REST APIs typically use JSON.
- Question 7Automation and Programmability
Which Cisco API interface allows network engineers to interact with Cisco IOS XE devices using RESTCONF?
Show Answer & Explanation
Correct Answer: BExplanation:RESTCONF is a REST-based protocol that provides a programmatic interface to network devices using HTTP/HTTPS with JSON or XML encoding. It uses YANG data models and standard HTTP methods (GET, POST, PUT, PATCH, DELETE). NETCONF uses SSH with XML encoding. Both RESTCONF and NETCONF use YANG models for data structure.
- Question 8Automation and Programmability
What are Puppet and Chef in the context of network automation?
Show Answer & Explanation
Correct Answer: BExplanation:Puppet: declarative, uses manifests (Ruby DSL), agent-based, pull model (agent checks master periodically). Chef: imperative/procedural, uses recipes/cookbooks (Ruby), agent-based, pull model. Both enforce desired state configuration across infrastructure.
- Question 9Automation and Programmability
What is Ansible primarily used for in network automation?
Show Answer & Explanation
Correct Answer: BExplanation:Ansible is an agentless automation tool: uses SSH (or APIs) to push configurations to network devices. Key concepts: playbooks (YAML tasks), inventory (device list), modules (ios_config, nxos_config), and roles (reusable task collections). No agent installation required on devices.
- Question 10Automation and Programmability
What type of API does Cisco DNA Center primarily use?
Show Answer & Explanation
Correct Answer: CExplanation:Cisco DNA Center uses REST APIs for automation and integration. It provides northbound REST APIs that accept and return JSON.
- Question 11Automation and Programmability
Which HTTP header is commonly used to send an API authentication token?
Show Answer & Explanation
Correct Answer: BExplanation:The Authorization header carries authentication credentials: 'Bearer <token>' for OAuth/JWT tokens, 'Basic <base64>' for basic auth.
- Question 12Automation and Programmability
What is the purpose of an API key or token in REST API authentication?
Show Answer & Explanation
Correct Answer: BExplanation:API keys/tokens authenticate clients: the server verifies the key before processing requests. Token types: API keys (simple, in header/query), OAuth 2.0 Bearer tokens (scoped access, expirable), JWT (self-contained claims). Tokens should be kept secret and transmitted over HTTPS.
- Question 13Automation and Programmability
Which data serialization format is most commonly used by REST APIs and uses key-value pairs with curly braces?
Show Answer & Explanation
Correct Answer: CExplanation:JSON (JavaScript Object Notation) is the most widely used data format for REST APIs. It uses key-value pairs enclosed in curly braces {} for objects and square brackets [] for arrays. XML uses angle-bracket tags. YAML uses indentation-based formatting. CSV is for tabular data.
- Question 14Automation and Programmability
A network engineer uses a REST API call with the HTTP GET method. What is the expected behavior?
Show Answer & Explanation
Correct Answer: BExplanation:HTTP GET retrieves data from the server without modifying it (read-only, idempotent). POST creates a new resource. PUT/PATCH update existing resources. DELETE removes a resource. These are the standard CRUD operations mapped to HTTP methods used in REST APIs.
Key Automation Concepts for CCNA
CCNA Automation Exam Tips
Network Automation & Programmability questions in CCNA are typically scenario-based. Focus on service-level decision making aligned to official exam objectives. Priority concepts: automation, api, rest, json, yaml, ansible.
What CCNA Expects
- Anchor your answer in select the most practical, secure, and scalable answer for the stated scenario.
- Automation scenarios for CCNA are frequently mapped to Domain 6 (10%), so read the objective carefully before picking controls or architecture.
- Expect multi-service scenarios where Automation interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated service question.
- When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and managed-service best practices.
High-Value Automation Concepts
- Know the core Automation building blocks cold: automation, api, rest, json.
- Review the edge-case features and limits for yaml, ansible; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how Automation pairs with Network Fundamentals, IP Services, Security Fundamentals in real deployment patterns.
- For CCNA, explain why the chosen Automation design meets reliability, security, and cost expectations better than the alternatives.
Common CCNA Traps
- Watch for answers that partially solve the requirement but miss operational constraints.
- Questions in Automation and Programmability often include distractors that look correct for Automation but violate least-privilege, durability, or availability requirements.
- Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
- If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.
Fast Review Checklist
- Can you compare at least two Automation implementation paths and justify which one best fits the scenario?
- Can you map the chosen answer back to Automation and Programmability (10%) outcomes for CCNA?
- Can you explain security and access boundaries for Automation without relying on default-open assumptions?
- Can you describe how Automation integrates with Network Fundamentals and IP Services during failure, scaling, and monitoring events?