
CiscoCertified Network Associate Automation (CCNA Automation)
Domain 1Objective 3
3. Describe the Concepts of Test-Driven Development 200-901 Practice Questions (Page 9)
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 48 practice questions to prepare you well beyond it. (estimate)
48questions here
10free pages
8concepts
15%of the exam
Questions 41–45
- 41
In the red-green-refactor cycle of test-driven development, what is the immediate next step after writing a new test that fails?
Select an answer first - 42
A developer is writing a test for a function that parses a Cisco IOS 'show version' output to extract the IOS version string. The function should return 'Version 15.2(4)M7' for a given input. The developer writes the test and runs it, but it fails because the function returns 'Version 15.2(4)M7 ' with a trailing space. What is the most appropriate action?
Select an answer first - 43
A team is considering adopting TDD for a legacy network automation codebase that has no existing tests. They are concerned about the effort required to retrofit tests. What is the most effective strategy?
Select an answer first - 44
A developer is writing a unit test for a function that sends a configuration to a device via SSH and parses the output. The function uses a third-party SSH library. The developer wants to test the parsing logic without a real device. Which approach is most effective?
Select an answer first - 45
A developer has completed a TDD cycle for a new feature. The tests pass, but the code has a long method that mixes parsing and validation logic. The developer wants to improve maintainability. What is the best 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.