
CiscoCertified Network Associate Automation (CCNA Automation)
Domain 4Objective 5
5. Construct a Python Unit Test 200-901 Practice Questions (Page 5)
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 21–25
- 21
Which method in a unittest.TestCase class is responsible for releasing resources after each test method completes?
Select an answer first - 22
Which tool is commonly used to measure code coverage for Python unit tests?
Select an answer first - 23
A developer is writing a unit test for a function that converts a MAC address from 'aa:bb:cc:dd:ee:ff' to 'aabb.ccdd.eeff'. The test method is inside a TestCase class. Which method name is appropriate for the test method?
Select an answer first - 24
A function parse_config(config_text) is expected to raise a ValueError when the input is malformed. The test must verify that the exception is raised. Which assertion method should be used?
Select an answer first - 25
A coverage report shows that a function has 100% line coverage, but a bug still exists in the function. What is the most likely reason for this?
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.