Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

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 1)

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 1–5

  1. 1application · medium

    Two developers are working on the same Python project. One is developing a module that interacts with Cisco DNA Center APIs, and the other is developing a module that parses configuration files. Both modules define a function named 'load'. When the project is assembled, the 'load' function from one module overrides the other. What is the best way to avoid this naming conflict?

    Select an answer first
  2. 2application · medium

    A network automation engineer maintains a Python script that configures VLANs on multiple switches. The script currently repeats the same 20-line configuration block in three different places, each time with a different switch IP. After a firmware update, the configuration command syntax changed, and the engineer must update all three blocks. Which approach best reduces the maintenance burden and risk of missing a spot?

    Select an answer first
  3. 3expert · hard

    A network automation team is developing a Python application that uses a class to represent a network device. The class has methods like 'connect', 'disconnect', and 'get_config'. The team wants to add logging to every method call to track when devices are accessed. They want to avoid modifying each method individually. Which approach is most maintainable?

    Select an answer first
  4. 4application · medium

    A developer is creating a Python package for network automation. The package will be used by multiple projects, and some projects only need the device configuration functions, while others only need the reporting functions. What is the best way to organize the code to support selective reuse?

    Select an answer first
  5. 5application · medium

    An organization maintains several Python automation scripts that all need to parse Cisco IOS show commands. Currently, each script contains its own copy of the parsing logic. The team wants to reduce duplication and make updates easier. What is the most effective approach?

    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.