
CiscoCertified Network Associate Automation (CCNA Automation)
Domain 1Objective 5
5. Explain the Benefits of Organizing Code into Methods / Functions, Classes, and Modules 200-901 Practice Questions (Page 5)
Part of the 1.0 Software Development and Design domain, which accounts for 15% of the 200-901 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–2 from this objective — we provide 40 practice questions to prepare you well beyond it. (estimate)
40questions here
8free pages
4concepts
15%of the exam
Questions 21–25
- 21
A developer is writing a Python script to automate backup of device configurations. The script needs to perform the same backup procedure on 20 devices, but with different IP addresses and credentials. The developer wants to avoid writing the backup logic 20 times. What is the most efficient approach?
Select an answer first - 22
A team is building a Python application that includes functions for SNMP polling, SSH command execution, and data parsing. The functions are currently all in one large file, and multiple developers are working on different parts. They want to avoid merge conflicts and allow each developer to work independently. What is the best way to organize the code?
Select an answer first - 23
A network automation team maintains a Python application that uses a module named config_parser.py. This module is imported by several other modules. Recently, a developer added a new function to config_parser.py that has the same name as a function in another module, and the application started behaving unexpectedly. The team suspects a naming conflict. What is the best way to prevent this issue while preserving the ability to use both functions?
Select an answer first - 24
A network automation team is refactoring a legacy script into a maintainable codebase. The script currently uses global variables extensively, making it difficult to trace which function modifies a given variable. The team wants to improve debugging and reduce unexpected side effects. Which refactoring approach is most effective?
Select an answer first - 25
A developer creates a class named 'Router' to represent network devices. Which benefit does this class provide in terms of code organization?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “200-901” is a trademark of its owner, used for identification only.