Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

CiscoCertified Network Associate Automation (CCNA Automation)

Domain 4Objective 5

5. Construct a Python Unit Test 200-901 Practice Questions (Page 2)

Part of the 4.0 Application Deployment and Security 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–1 from this objective — we provide 35 practice questions to prepare you well beyond it. (estimate)

35questions here
7free pages
7concepts
15%of the exam

Questions 6–10

  1. 6expert · hard

    A developer is writing a unit test for a function that processes a list of device configurations. The function is expected to return a dictionary keyed by device name. The test must verify that the function returns the correct dictionary for a given input. The developer also wants to ensure that the test is isolated from any external dependencies. Which approach is best?

    Select an answer first
  2. 7application · medium

    A network automation script includes a function that parses a device's 'show version' output and returns a dictionary containing the 'hostname' and 'version' keys. A developer is writing a unit test to verify that the returned dictionary contains the expected keys. Which assertion should be used?

    Select an answer first
  3. 8application · medium

    After running a unit test suite, a developer sees a coverage report showing 85% line coverage. The developer wants to identify which specific lines of code were not executed during the tests. Which tool or command should the developer use to get this information?

    Select an answer first
  4. 9foundation · easy

    In a unittest.TestCase class, what is the purpose of the setUp method?

    Select an answer first
  5. 10expert · hard

    A developer is writing a unit test for a function that sends a configuration to a device via an API. The function first checks if the device is reachable, then sends the configuration. The test should verify that the function does NOT send the configuration when the device is unreachable. Which approach should be used?

    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.