
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 3)
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 11–15
- 11
A network automation team is reviewing a monolithic Python script that configures devices, collects logs, and sends email notifications. The script is hard to test because every run performs all actions. The team wants to write unit tests for the log-collection logic without triggering device configuration or email sends. Which refactoring approach best enables this?
Select an answer first - 12
A network automation engineer writes a Python script that performs the same device login and configuration sequence in multiple places. Which benefit of using a function is most directly realized by replacing those repeated blocks with a single function call?
Select an answer first - 13
How do modules help manage naming conflicts in a large Python codebase?
Select an answer first - 14
A developer is writing a Python script that needs to perform the same sequence of operations on multiple devices: connect, authenticate, retrieve config, and disconnect. The sequence is identical except for the device address and credentials. The developer wants to avoid repeating the sequence code for each device. What is the best way to implement this?
Select an answer first - 15
A developer is writing a Python script that processes network device logs. The script currently has a function that reads a log file, parses it, and returns a list of events. The developer wants to reuse this function in a different script that processes logs from a different source (e.g., a network stream instead of a file). What is the best way to modify the function to support both sources?
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.