Automation and Programmability: CCNA practice questions

Automation and Programmability is 10% of the free CCNA mock (4 of 50 questions). Pick an answer to see right away whether it is correct, with the explanation and the documentation section it comes from.

CN.VI · CCNA practice question

How does controller-based networking separate functions compared to traditional decentralized network management?

Choose one answer
Check answer and explanation

Correct answer: It centralizes control/management policy on a controller while network devices forward traffic in the data plane

Explanation

Controller-based architectures separate centralized control/management logic from the data plane, allowing a controller to push consistent policies across many devices.

Common trap

A common trap is choosing “It uses only Telnet without APIs” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

How does Terraform approach infrastructure provisioning in network automation workflows?

Choose one answer
Check answer and explanation

Correct answer: It uses declarative configuration files and providers to provision and manage infrastructure state

Explanation

Terraform is an Infrastructure as Code (IaC) tool that uses declarative templates and providers to provision, update, and manage infrastructure resources.

Common trap

A common trap is choosing “It captures live packet flows on switch interfaces to generate dynamic ACL rules automatically” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

In a controller-based SDN architecture, what is the role of the underlay network versus the overlay network?

Choose one answer
Check answer and explanation

Correct answer: The underlay provides IP/transport connectivity between nodes, while the overlay carries virtualized network traffic/policies encapsulated across tunnels or fabrics

Explanation

The underlay network provides foundational connectivity/reachability between fabric nodes, while the overlay provides logical segmentation, mobility, and policy transport over the underlay.

Common trap

A common trap is choosing “The underlay handles wireless AP control traffic, while the overlay carries wired trunk frames” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

In machine learning concepts relevant to network operations, which learning type trains on labeled examples to classify or predict known outcomes?

Choose one answer
Check answer and explanation

Correct answer: Supervised learning

Explanation

Supervised learning trains models on labeled input-output pairs so they can classify or predict outcomes on new data.

Common trap

A common trap is choosing “Spanning-tree root election” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

In network operations, how does predictive AI differ from generative AI?

Choose one answer
Check answer and explanation

Correct answer: Predictive AI forecasts future events, trends, or anomalies from data, whereas generative AI creates new content such as text, scripts, or configurations

Explanation

Predictive AI uses models and historical/telemetry data to forecast outcomes or anomalies, while generative AI synthesizes new outputs like configurations, documentation, or code.

Common trap

A common trap is choosing “Generative AI cannot assist engineers with troubleshooting summaries or drafts” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

Which data format uses key-value pairs, curly braces for objects, and square brackets for ordered arrays?

Choose one answer
Check answer and explanation

Correct answer: JSON

Explanation

JavaScript Object Notation (JSON) represents structured data using key-value pairs, objects in {...}, and arrays/lists in [...].

Common trap

A common trap is choosing “SNMP MIB” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

Which HTTP method is typically used in a RESTful API to create a new resource?

Choose one answer
Check answer and explanation

Correct answer: POST

Explanation

In REST APIs mapped to CRUD operations, POST is standardly used to create a new resource (while GET reads, PUT/PATCH updates, and DELETE removes).

Common trap

A common trap is choosing “HEAD” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

Which REST API authentication mechanism sends a credential token—often in an HTTP Authorization header such as 'Authorization: Bearer <token>'—after an initial authentication exchange?

Choose one answer
Check answer and explanation

Correct answer: Token-based authentication

Explanation

Token-based authentication uses issued tokens (such as bearer or session tokens) in API requests rather than resending raw passwords on every call.

Common trap

A common trap is choosing “Basic HTTP authentication” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


CN.VI · CCNA practice question

Which statement accurately describes Ansible in network automation?

Choose one answer
Check answer and explanation

Correct answer: Ansible uses playbooks (typically YAML) and is agentless over SSH/API to push configurations and automate tasks

Explanation

Ansible automates configuration and operational tasks using declarative/procedural playbooks (commonly in YAML) and generally operates agentlessly over SSH or APIs.

Common trap

A common trap is choosing “Ansible requires a custom Python daemon agent installed on each network device to execute playbooks” instead of the answer required by the cited rule.

Source: CCNA exam topics — Automation and Programmability
Checked against the cited text on 2026-12-01.

Report an error in this question

Open this question on its own page


Back to all topics