Cisco DevNet sample questions with explanations, traps, topic labels, and IT Mastery route links.
These original sample questions are designed to help you check how the exam topics appear in decision-style prompts. They are not taken from the live exam.
Use these sample questions as a guided self-assessment for Cisco Certified DevNet Associate topics such as REST APIs, HTTP methods, JSON payloads, Python basics, Git, Cisco platform APIs, authentication, secret handling, containers, CI/CD, idempotency, and automation troubleshooting. The prompts emphasize API contract reading and safe automation decisions.
The sample set below is part of the Cisco DevNet guide path:
Work through each prompt before opening the explanation. DevNet questions usually reward the answer that honors the API contract, protects credentials, validates state, and makes automation safe to rerun.
Topic: API method selection
A script needs to retrieve a list of network devices from a controller API without changing controller state. Which HTTP method is the strongest fit?
Best answer: B
Explanation: GET is the normal read operation for retrieving resources without changing server state.
Why the other choices are weaker:
What this tests: REST method semantics, read versus write operations, and API contract basics.
Related topics: REST; HTTP methods; APIs; Controller
Topic: Token exposure in logs
A CI job prints full API request headers during troubleshooting. The logs now contain a bearer token used to access a Cisco platform API. What is the strongest response?
Best answer: C
Explanation: DevNet security questions reward secret hygiene. Once a token is exposed, treat it as compromised, limit access to the logs, and prevent future disclosure.
Why the other choices are weaker:
What this tests: API tokens, CI/CD secrets, log sanitization, rotation, and least privilege.
Related topics: Secrets; CI/CD; Authentication; Logging
Topic: JSON shape mismatch
A Python script expects an API response field named interfaces to be a list. The script fails when iterating because the actual response contains {"interfaces": {"items": [...]}}. What should the developer do first?
Best answer: D
Explanation: DevNet parsing questions are often about data shape. The code must match whether the response has arrays, objects, nested keys, and required fields.
Why the other choices are weaker:
What this tests: JSON objects, arrays, nested keys, Python parsing, and API schema reading.
Related topics: JSON; Python; Parsing; Schema
Topic: Safe automation rerun
An automation job updates network device configuration across many sites. It may be run multiple times during rollout. Which design principle best reduces duplicate or unintended changes?
Best answer: C
Explanation: Idempotent automation can be rerun safely because it compares desired state with observed state before making changes.
Why the other choices are weaker:
What this tests: Idempotency, desired state, verification, error handling, and automation safety.
Related topics: Automation; Idempotency; Validation; Desired state
Tech Exam Lexicon and IT Mastery are independent study tools. They are not affiliated with, endorsed by, or sponsored by Cisco or any certification body.