Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 86
When static routes are added to a router in a network using a CI/CD pipeline, an Ansible playbook is used to make these changes. Which steps must be added to the pipeline to validate that the changes have the intended effect on the traffic flow?
Answer options
- A. Add a step to run the debug ip routing command before the change, and add a step after the change to issue the no debug ip routing command.
- B. Add a step to capture the routing table before the change, and add a step after the change to capture it again. Calculate the difference between the two for review.
- C. Add a step to ping a host on each of the static routes before the change, and a step after to repeat the same check. Calculate the difference between the two checks for review.
- D. Add a step to run the same playbook again with the debug option enabled and use grep on the log output to ensure that the commands are not applied again.
Correct answer: B
Explanation
The correct answer is B, as capturing the routing table before and after the changes effectively shows the modifications made by the static routes. This allows for a clear comparison and validation of the intended effects. The other options, while useful, do not provide a direct method to assess the overall impact on the routing table itself.