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

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 31–35

  1. 31foundation · easy

    What does code coverage measure in the context of unit testing?

    Select an answer first
  2. 32application · medium

    A team has a large test suite organized into multiple test modules. They want to create a single test suite that includes only a subset of tests for a specific feature, so they can run just those tests quickly. Which approach should they use?

    Select an answer first
  3. 33application · easy

    A developer is writing a unit test for a function that validates an IP address. The function should return True for a valid IP and False for an invalid IP. The developer wants to verify that the function returns False for the invalid IP '999.1.1.1'. Which assertion should be used?

    Select an answer first
  4. 34application · medium

    A developer is writing tests for a function that reads a configuration file and returns its contents as a string. The tests should not depend on the actual file system. The developer wants to use a mock to replace the built-in 'open' function. Where should the mock be applied?

    Select an answer first
  5. 35expert · medium

    A developer is writing a unit test for a function that parses a syslog message and returns a dictionary with 'severity' and 'message' keys. The function should return None for invalid input. The developer wants to verify that the function returns None for an empty string. Which assertion should be used?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

No more pagesBack to 200-901

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.