Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 26
An interface on a router as a Layer 3 link has been configured to another device by updating an Ansible playbook that is executed via a CI/CD pipeline. The
Ansible playbook was written to push the configuration change using the ios_config module. Which automated test validates that the interface is functioning as it should?
Answer options
- A. Add a pipeline step that runs the playbook a second type. If it does not modify the device on the second run, then the interface is correctly configured.
- B. Automated testing is already built in because the playbook execution is successful only after Ansible validates that it applied the change.
- C. Add a pipeline step that captures and parses the packet flow for the interface.
- D. Add a pipeline step that captures and parses the show ip interface output so that the operational state can be referenced.
Correct answer: B
Explanation
Option B is correct because Ansible's execution process ensures that the change is only considered successful after validation. Option A does not directly confirm functionality, while options C and D suggest additional tests that may not inherently validate the configuration's correctness.