
CiscoCertified Network Associate Automation (CCNA Automation)
Domain 4Objective 5
5. Construct a Python Unit Test 200-901 Practice Questions (Page 4)
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 16–20
- 16
After running a test suite, a coverage report shows that a module has 80% line coverage. The engineer wants to identify which specific lines of code were not executed. Which tool or command provides this information?
Select an answer first - 17
A project has tests spread across multiple files in a directory named tests/. The engineer wants to run all tests from the project root without specifying each file individually. Which command accomplishes this?
Select an answer first - 18
Which unittest assertion method would you use to verify that a specific exception is raised when a function is called with invalid input?
Select an answer first - 19
A network automation team has a Python module with several functions. They have written unit tests for the most critical functions, but the coverage report shows only 60% overall coverage. The team wants to increase coverage to at least 80% before the next release, but they have limited time. Which approach is most effective?
Select an answer first - 20
A developer is writing a unit test for a function that sends a command to a network device and returns the output. The function uses a shared SSH client object that is expensive to create. The test must verify that the function correctly handles a timeout exception from the SSH client. The developer wants to avoid creating a real SSH connection. Which approach is best?
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.