200-901 exam dumps

200-901 practice question 144 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 144

Select 3

You are tasked with verifying the operational state of a network topology in a lab environment using pyATS. Which of the following steps are required to successfully execute and validate a test case using pyATS?

  1. A

    Create a testbed YAML file to define the network topology and device connections.

  2. B

    Write a test script in Python that uses pyATS libraries to interact with the devices.

  3. C

    Manually log into each device to verify the test results after script execution.

  4. D

    Run the test using the 'pyats run job' command along with your job file.

  5. E

    Configure the testbed file dynamically within the script using the pyATS Genie parser.

Show answer and explanation

Correct answers: A, B, D

Explanation

To validate a network topology using pyATS, you need to define the network topology and devices in a testbed YAML file, write a Python test script leveraging pyATS libraries, and execute the test using the 'pyats run job' command. These steps ensure the process is automated and aligned with best practices for network testing with pyATS.

  • A. Correct.

    Correct. A testbed YAML file is essential in pyATS to define the network topology and specify device details like IP addresses, credentials, and connection methods.

  • B. Correct.

    Correct. Writing a test script that uses pyATS libraries is necessary to automate interactions with the devices and execute test cases.

  • C. Incorrect.

    Incorrect. One of the key advantages of pyATS is automation, so manually logging into devices to verify results is not required.

  • D. Correct.

    Correct. The 'pyats run job' command is used to execute test jobs that include test scripts and testbed configurations.

  • E. Incorrect.

    Incorrect. While pyATS Genie parsers can be used to parse device outputs, the testbed file is typically created as a separate YAML file and not dynamically configured within the script.

Timed practice exam

Take a 200-901 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam