
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 7)
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 31–35
- 31
A team is developing a Python application that manages network devices. They have a class 'Device' with attributes like 'hostname' and 'ip'. They also have a class 'DeviceManager' that performs operations on devices. The team wants to ensure that the 'Device' class does not directly depend on the 'DeviceManager' class, so that changes to the manager do not affect the device model. Which design principle is being applied?
Select an answer first - 32
A network automation team is refactoring a large script that has grown to over 2,000 lines. The script contains device connection logic, data parsing, and report generation all mixed together. The team wants to improve collaboration so that multiple developers can work on different parts without merge conflicts. Which refactoring strategy is most effective?
Select an answer first - 33
A network automation team is working on a large Python project. The project has multiple modules, and each module contains several functions. The team wants to improve code review efficiency by making it easier to identify which part of the code is responsible for a specific behavior. Which practice is most effective?
Select an answer first - 34
A team is developing a Python application that manages different types of network devices: routers, switches, and firewalls. Each device type has common attributes (hostname, IP) and some unique methods (e.g., routers have a method to configure OSPF, firewalls have a method to update security policies). The team wants to avoid duplicating common code while allowing each type to have its own behavior. Which design pattern is most appropriate?
Select an answer first - 35
A developer is designing a Python class to represent a network switch. The class should hide the details of how configuration is applied and expose a simple method called apply_config(config_string). Other parts of the code should not need to know whether the switch uses SSH or NETCONF. Which benefit of classes does this design primarily illustrate?
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.