CCNA Automation (DevNet Associate) Practice Questions
Prepare for 200-901 with more than an answer.
- Exam fee
- $300 USD
- Level
- Associate
- Valid for
- 3 years
Domains covered on the exam 6
- Software Development and Design15%
- Understanding and Using APIs20%
- Cisco Platforms and Development15%
- Application Deployment and Security15%
- Infrastructure and Automation20%
- Network Fundamentals15%
- 1
A DevOps engineer is troubleshooting a complex git history where a feature branch has diverged significantly from the main branch. They want to integrate the latest changes from main into the feature branch while maintaining a linear project history without creating a merge commit. Which command sequence should be used?
Show answer details
Correct answer: B
To maintain a linear history (avoiding the diamond shape of merge commits),
git rebaseis used. This rewrites the commit history of the feature branch by applying its unique commits on top of the latest commit from the main branch. - 2
While parsing a large JSON dataset from a Cisco DNA Center API response, a Python script encounters a
KeyErrorbecause specific optional fields are missing in some device records. Which Python coding approach best handles this robustly without crashing the script?Show answer details
Correct answer: A
The
.get()method on Python dictionaries allows retrieving a value for a key if it exists, or returning a specified default value (like None or 'Unknown') if the key is missing. Chaining.get()allows safe navigation of nested structures. - 3
A developer is writing a test suite for a network automation function that reboots a router. Following Test Driven Development (TDD) principles, what is the correct sequence of actions?
Show answer details
Correct answer: D
TDD follows the Red-Green-Refactor cycle. You must first write a failing test (Red) that defines the expected behavior, then write just enough code to make it pass (Green), and finally improve the code quality (Refactor) without changing behavior.
- 4
Identify the primary structural difference between XML and JSON that impacts parsing efficiency in Python automation scripts.
Show answer details
Correct answer: D
JSON's syntax (objects and arrays) corresponds almost 1:1 with Python's dictionaries and lists, allowing for simple
json.loads(). XML uses a tree of nodes (elements, attributes, text) which requires more complex parsing logic (likexml.etreeorlxml). - 5
An automation engineer is interacting with the Cisco DNA Center API. They receive an HTTP 429 response code. The response header contains
Retry-After: 30. What is the appropriate programmatic action?Show answer details
Correct answer: C
HTTP 429 indicates 'Too Many Requests' (rate limiting). The
Retry-Afterheader specifies the number of seconds the client must wait before making another request to avoid being blocked further. - 6
Which of the following systems provides ability to branch and merge various tasks completed in isolation before they are merged into a feature or master branch while allowing engineers to work against the same code and configuration files and manage differences and conflicts in a coding system. (Choose two).
Show answer details
Correct answer: A, E
Both centralized and distributed version control systems provide branching and merging capabilities for collaborative software development. Version control systems like Git (distributed) and SVN (centralized) allow engineers to work on isolated branches, complete tasks independently, and merge changes back to feature or master branches. The other options are incorrect because central logging systems handle log data collection, model-driven programming is about using models to generate code, and code topology refers to code structure analysis, none of which provide version control branching and merging functionality. Reference: https://developer.cisco.com/docs/nx-os/#!why-version-control
Both centralized and distributed version control systems provide branching and merging capabilities for collaborative software development. Version control systems like Git (distributed) and SVN (centralized) allow engineers to work on isolated branches, complete tasks independently, and merge changes back to feature or master branches. The other options are incorrect because central logging systems handle log data collection, model-driven programming is about using models to generate code, and code topology refers to code structure analysis, none of which provide version control branching and merging functionality. Reference: https://developer.cisco.com/docs/nx-os/#!why-version-control
- 7
Which of the following is the correct statement regarding Cisco DNA Center?
Show answer details
Correct answer: C
Cisco DNA Center provides network controller-level management features as a centralized network management and automation platform. It serves as the central management plane for software-defined networks, offering intent-based networking capabilities, policy management, and automated network provisioning. The other options are incorrect because DNA Center does not gather real-time user information (that would be analytics tools), does not provision server/storage resources (that would be compute management), and is not focused on data-center class networking scalability but rather on enterprise network management. Reference: https://www.cisco.com/c/en/us/products/cloud-systems-management/index.html
- 8
Refer to the command:
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet
Show answer details
Correct answer: D
Reference https://forums.docker.com/t/accessing-host-machine-from-within-docker- container/14248/4
