Home › 200-301 CCNA › Practice questions › Automation and Programmability
200-301 CCNA · Cisco · Automation and Programmability · Bank updated 2026-11-03

200-301 CCNA practice questions: Automation and Programmability

5 free questions from 20 on this area · answer and explanation for each · no sign-up

These 5 questions come from the Automation and Programmability section of our 200-301 CCNA bank (20 questions on this area, which carries 10% of the real exam). Every question is original, with the correct answer explained and linked to the source it is drawn from.

Try 6 free 200-301 CCNA questions → All 200-301 CCNA sample questions

Free: 6 questions in study mode, no card. All 20 Automation and Programmability questions and the full 200-301 CCNA bank: $15 one-time.

1/5 · Automation and Programmability
An operations team has to add one VLAN and one matching access list to 400 access switches. Until now every change was typed into a console session per device. The team now keeps the change in a file that an automation tool renders and applies to all 400 switches from one control host. Which statement about that tool is accurate?
ADevices are changed one at a time inside one transaction, and a failure part-way rolls the estate back.
BEach switch keeps a copy of the file and re-applies it after a reload, reverting console changes.
CRunning the same file again reports which switches no longer match it, as well as changing them.
DThe tool derives the access list from the VLAN it is given, leaving the engineer just the VLAN to state.
Answer: C. Topic 6.1. Automation moves the unit of work from a device to a definition: the same rendered configuration reaches every target from one control host, so the differences that accumulate when 400 devices are edited by hand largely disappear, and because the file states what the devices are meant to look like, re-running it is at the same time a correction and a compliance report. What does not come with it is atomicity or self-healing on the device: a run iterates and reports per-device results, an unreachable switch fails its own task rather than blocking the rest, and nothing on the switch re-applies the definition by itself after a reload. Cisco frames the same idea for controller-based operations, describing intent APIs that provide policy-based abstraction of business intent, allowing an operator to focus on an outcome to achieve instead of struggling with the mechanisms that implement that outcome. What never changes is the engineer's responsibility for the content of the change. Source: Cisco 200-301 CCNA v1.1 Exam Topics - Section 6: Automation and Programmability
2/5 · Automation and Programmability
A ticketing application asks the network controller over HTTPS for the list of managed devices and receives a JSON document. Separately, the controller pushes the resulting configuration to the switches it manages. Which statement maps these two exchanges to the correct interfaces?
ABoth exchanges use the northbound interface, both of them starting at the controller itself.
BThe application-to-controller exchange is southbound, and the controller-to-device one is northbound.
CBoth exchanges use the southbound interface, the controller being client in one and server in the other.
DThe application-to-controller exchange is northbound and the controller-to-device one is southbound.
Answer: D. Topic 6.3.b. Cisco states that the intent API is a northbound REST API that exposes specific capabilities of the controller platform and that the RESTful intent API uses HTTPS verbs (GET, POST, PUT and DELETE) with JSON structures to discover and control the network. On the other side, a device package enables the controller to communicate with a device by encapsulating the southbound protocol used to communicate with it. The simple rule that survives the exam room: applications and orchestration systems live above the controller and talk to it northbound; switches, routers and access points live below it and are reached southbound. Source: Cisco 200-301 CCNA v1.1 Exam Topics - Section 6: Automation and Programmability
3/5 · Automation and Programmability · hard
A virtual machine in a VXLAN fabric is migrated from a server under leaf 1 to a server under leaf 9. It keeps its IP address, it keeps the entries already in its ARP cache, including the one for its default gateway, and it carries on sending without a pause. Which property of the fabric lets that happen?
ALeaf 9 tunnels the traffic back to leaf 1, the holder of the gateway for that subnet.
BEvery leaf carrying that subnet answers to the same gateway address and gateway MAC.
CThe spine switches hold the gateway for every subnet and answer the machine's requests.
DThe controller rewrites the machine's ARP cache as soon as it detects the migration.
Answer: B. Topic 6.3. Cisco's VXLAN BGP EVPN design and implementation guide describes the distributed anycast gateway: a network shares the same gateway IP and the globally assigned gateway MAC address, and every VTEP is assigned the same MAC address for every Layer 2 VNI switched virtual interface. The guide then states the consequence for mobility: as the endpoint attachments to the network are moved from one VTEP to the other, the ARP entry for the gateway MAC does not need to be resolved again in the endpoint's ARP cache, as the gateway MAC and IP remain consistent across VTEPs provisioned with the same VLAN. The endpoint therefore sends to the same gateway address and the same gateway MAC after the move, and the leaf it now sits behind answers locally instead of forwarding to a distant gateway. The underlay's job in the same design is narrower: it advertises the reachability of the tunnel endpoints so that the encapsulated traffic can cross the fabric between them. Source: Cisco 200-301 CCNA v1.1 Exam Topics - Section 6: Automation and Programmability
4/5 · Automation and Programmability · hard
A team manages the VLANs of a data-centre fabric with Terraform: one resource block per VLAN in the configuration files, and a state file kept by the team's pipeline. VLAN 30 is being handed over to another team, which will look after it by hand from now on, and the VLAN has to keep carrying traffic. An engineer deletes the VLAN 30 block from the files, removes the references to it, runs terraform apply and approves the plan. What does the run do to VLAN 30?
ALeaves it on the switches and drops it from the state file
BDestroys it on the switches and drops it from the state file
CLeaves it on the switches and keeps its entry in the state file
DHalts with an error that the state and the files disagree
Answer: B. Topic 6.6. Terraform is declarative: the configuration describes what should exist and the state file records what Terraform manages. HashiCorp's procedure for destroying a single resource is the sequence in the stem - delete the resource block from the configuration, delete any references to its attributes, run terraform apply - after which Terraform destroys the actual infrastructure resource and removes it from the state. To stop managing an object without destroying it, the block is replaced by a removed block: by default Terraform removes the resource from state and destroys the actual resource, and setting destroy to false removes it from state without destroying it, which HashiCorp describes as the way to hand management over to another tool or team. The habit this item tests comes from procedural tools, where a task deleted from a playbook simply stops running and the device keeps what it already has. Source: Cisco 200-301 CCNA v1.1 Exam Topics - Section 6: Automation and Programmability; destroy procedure verified at HashiCorp, 'Destroy a resource managed by Terraform' ('Delete the resource block from your configuration ... Run a terraform apply command'), https://developer.hashicorp.com/terraform/language/resources/destroy and removed block default at https://developer.hashicorp.com/terraform/language/block/removed
5/5 · Automation and Programmability
Before a change window, an engineer runs a playbook against the production access switches with ansible-playbook --check to see what it would do. Most of its tasks use modules that support check mode. One task uses a module that does not, and that task sets no check_mode keyword of its own. What does that one task do on this run?
AIt is skipped and leaves the switches as they are
BIt runs in normal mode and pushes its change to the switches
CIt fails and halts the play at that task
DIt reports the change it would make and leaves it unapplied
Answer: A. Topic 6.6. Check mode is Ansible's dry run, and the documentation separates two kinds of module. For one kind: 'Modules that support check mode report the changes they would have made.' For the other: 'Modules that do not support check mode report nothing and do nothing.' A task can leave the simulation, but only explicitly: 'To force a task to run in normal mode and make changes to the system, even when the playbook is called with --check, set check_mode: false.' This task sets no such keyword, so it neither changes the switches nor predicts a change, and the play continues with the next task. The practical consequence is that a silent task in a --check run is not evidence that the real run will leave the device untouched. Source: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_checkmode.html Source: Ansible documentation, Playbook Guide, 'Validating tasks: check mode and diff mode' ('Modules that do not support check mode report nothing and do nothing.'), https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_checkmode.html
Try 6 more free 200-301 CCNA questions → See the whole 200-301 CCNA bank

Other 200-301 CCNA areas

The same kind of free sample for every other section of the 200-301 CCNA bank:

IP Connectivity30 qNetwork Fundamentals28 qNetwork Access28 qSecurity Fundamentals27 qIP Services24 q

Practise 200-301 CCNA with instant feedback

6 free questions in study mode · no card · full 200-301 CCNA bank with area filters and the error log: $15 one-time · no dumps, no ads.

Start 200-301 CCNA free →
Read next
CCNA 200-301 Study Plan: How Many Hours, Week by Week (Before the v2.0 Cutover) CCNA 200-301 takes roughly 100-150 hours. Week-by-week plans for 8 and 12 weeks, and why v1.1 candidates must test by 2 February 2027.
ExamDeck is an independent study tool, not affiliated with, endorsed by, or sponsored by Cisco. 200-301 CCNA and related marks are trademarks of their respective owners, used for identification only. Exam facts checked against official Cisco materials (as of November 2026); always confirm current details with the vendor before booking.