Cisco Certified Network Associate Automation Exam Prep
Free practice questions

Free CCNA Automation Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

These 10 free CCNA Automation questions are organized by exam domain, so you can see how each part of the Cisco Certified Network Associate Automation blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Software Development and Design 15% of exam

Question 1

A device exports its administrative setting as XML. The enabled element is always present, and its text is exactly "true" or "false". This parser incorrectly reports the displayed interface as enabled: import xml.etree.ElementTree as ET root = ET.fromstring("<interface><enabled>false</enabled></interface>") enabled = bool(root.find("enabled").text) Select the expression that should replace the right-hand side of the final assignment and preserve both possible settings.

Show answer & explanation

Correct answer: A - root.find("enabled").text == "true"

Question 2

The last committed version of inventory.py contains timeout = 5. A developer changes it to timeout = 10 and runs git add inventory.py. The developer then changes the same line to timeout = 20 without staging again. No other files have changed. What will git commit -m "Adjust timeout" record?

Show answer & explanation

Correct answer: D - timeout = 10, with the later edit remaining in the working tree.

Domain 2: Understanding and Using APIs 20% of exam

Question 3

A controller accepts POST /devices with a JSON object containing hostname and enabled. Authentication succeeds, but this Python request receives HTTP 400 with the message "Expected object, received string": payload = {"hostname": "branch-r7", "enabled": True} response = requests.post( url, headers={"Authorization": "Bearer " + token}, json=json.dumps(payload), timeout=10, ) The imports, URL, and token are valid. Which replacement for the json argument corrects the request body?

Show answer & explanation

Correct answer: B - json=payload

Question 4

Two inventory collectors each send eight GET requests per second to the same organization. The API permits ten requests per second for the organization, shared across all API keys. Both collectors begin receiving HTTP 429 with Retry-After: 6. Choose the recovery plan that addresses both the response and its underlying cause.

Show answer & explanation

Correct answer: C - Wait at least six seconds, then cap their combined traffic at nine requests per second.

Domain 3: Cisco Platforms and Development 15% of exam

Question 5

An asset reconciliation must retrieve every managed Meraki device in organization org_id, across all of its networks. The result spans several pages. dashboard is an authenticated SDK client; network_id identifies just one network in that organization. The installed SDK exposes: - dashboard.organizations.getOrganizationDevices(organizationId, total_pages): managed device records for an organization. - dashboard.networks.getNetworkClients(networkId, timespan, total_pages): observed client records for one network, with timespan in seconds. For these calls, total_pages="all" retrieves every page; total_pages=1 retrieves one page. Which call supplies the required inventory?

Show answer & explanation

Correct answer: D - dashboard.organizations.getOrganizationDevices(org_id, total_pages="all")

Question 6

A Cisco Catalyst Center provisioning call succeeds at the HTTP layer and returns a task identifier with a status URL. A successful task is a prerequisite for the next provisioning step. A read of that URL confirms the task is still running, with no error reported. The operation's documented polling interval has not elapsed, and the workflow deadline remains well ahead. How should the client handle the dependency?

Show answer & explanation

Correct answer: B - Wait for the next permitted poll and require task success before starting the dependent step.

Domain 4: Application Deployment and Security 15% of exam

Question 7

A production automation job writes an active controller API key into a publicly accessible build log. The key permits configuration changes. The job has been paused and the log removed; an initial audit finds no unexpected API calls. Which action must take priority before the job resumes?

Show answer & explanation

Correct answer: A - Revoke the exposed key and provision a replacement through the secret store.

Domain 5: Infrastructure and Automation 20% of exam

Question 8

A NETCONF verification job reads an interface from the running datastore using <get-config>. The reply contains <enabled>true</enabled> but omits oper-status. The supported YANG model marks oper-status as config false. To establish whether the link is actually operational, the job should:

Show answer & explanation

Correct answer: B - Use <get> with a filter that includes the interface operational data.

Domain 6: Network Fundamentals 15% of exam

Question 9

After an automation VM is restored from a snapshot, its HTTPS calls fail with "certificate is not yet valid." DNS resolves the expected controller address and TCP 443 connects. The certificate matches the hostname, its issuing CA is already trusted, and its validity period is April 1 through December 31, 2026. The actual date is September 15, 2026, but the VM reports February 12, 2026. Where should the engineer intervene first?

Show answer & explanation

Correct answer: C - Synchronize the VM clock with the approved NTP source.

Question 10

A remote inventory run makes 25 small API reads sequentially over one established connection. No read depends on another's result. WAN round-trip time is a stable 80 ms, packet loss is zero, and server processing and payload transmission take negligible time. Bulk transfers on the same path reach 800 Mbps. The API also supports retrieving those same records in one batch request. Which assessment best supports reducing the inventory run time?

Show answer & explanation

Correct answer: A - About 2 seconds come from serial round trips; use the supported batch request.

That's 10 of 1,030

The full bank has 1,020 more CCNA Automation questions with explanations.

Continue in the free practice test →

View plans