200-901 Infrastructure and Automation Practice Question
A developer writes a Python script using Cisco's pyATS framework to test network reachability after a configuration change. What is a key advantage of using pyATS over a simple script that uses ping?
⚠ Common exam trap
Many candidates confuse pyATS's parallel execution capability (which is achievable with other tools) with its core value proposition of providing a structured, reusable test framework with built-in libraries for network-specific validation.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
pyATS allows writing reusable test scripts with built-in test libraries
PyATS is a test automation framework designed for network engineers, providing built-in test libraries (e.g., `pyats.aetest`) that enable writing reusable, modular test scripts. Unlike a simple ping script, pyATS supports structured test cases, data-driven testing, and integration with Cisco devices via libraries like `Genie`, allowing for comprehensive validation beyond basic reachability.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
pyATS requires less code than a ping script
Why it's wrong here
Code volume is not the advantage; a ping script can be equally short. pyATS wins because it parses device output into structured objects and validates state programmatically, which ping's raw text cannot. It is tempting because pyATS's abstraction layers can reduce boilerplate when building larger test suites.
- ✗
pyATS can test multiple devices in parallel
Why it's wrong here
Parallel execution across devices is a genuine pyATS capability, but the question asks for an advantage over ping for reachability testing after a configuration change, where structured parsing and validation of device state is the differentiator. It is tempting because parallel execution does reduce runtime when polling many devices.
- ✓
pyATS allows writing reusable test scripts with built-in test libraries
Why this is correct
pyATS provides reusable test scripts with built-in libraries such as Genie, offering structured parsing, assertions and reporting across devices. A plain ping script returns only reachability output, so pyATS satisfies the stem's need for maintainable, repeatable post-change verification rather than ad hoc checks.
- ✗
pyATS automatically generates test reports
Why it's wrong here
Report generation is a pyATS feature, yet it does not explain why pyATS outperforms ping for verifying reachability after a configuration change; the advantage lies in structured, programmatic validation of parsed device output. It is tempting because automated reporting genuinely saves manual documentation effort during test runs.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 200-901 question from scratch — 975 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.