nerdexam
CiscoCisco

300-910 · Question #12

300-910 Question #12: Real Exam Question with Answer & Explanation

The correct answer is D: Add a pipeline step that captures and parses the show ip interface output so that the operational state can be referenced.. To validate that a router interface configured via an Ansible playbook is functioning correctly, an automated test should capture and parse the show ip interface output to reference its operational state.

CI/CD Pipelines

Question

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?

Options

  • AAdd 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.
  • BAutomated testing is already built-in because the playbook execution is successful only after Ansible validates that it applied the change.
  • CAdd a pipeline step that captures and parses the packet flow for the interface.
  • DAdd a pipeline step that captures and parses the show ip interface output so that the operational state can be referenced.

Explanation

To validate that a router interface configured via an Ansible playbook is functioning correctly, an automated test should capture and parse the show ip interface output to reference its operational state.

Common mistakes.

  • A. Running the playbook a second time only confirms idempotency (no changes on subsequent runs) but does not validate the operational functionality of the configured interface itself.
  • B. Ansible's successful execution only confirms the configuration was applied without errors, not that the interface is functionally operating as intended from a network perspective.
  • C. Capturing and parsing packet flow is complex and primarily validates data plane forwarding, not necessarily the correct Layer 3 operational state of the interface configuration itself.

Concept tested. Ansible network automation, interface operational validation

Reference. https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_command_module.html

Topics

#Network Automation#CI/CD Testing#Post-Configuration Validation#Operational State

Community Discussion

No community discussion yet for this question.

Full 300-910 PracticeBrowse All 300-910 Questions