CiscoCisco
350-401 · Question #413
350-401 Question #413: Real Exam Question with Answer & Explanation
The correct answer is A: connects to a Cisco device using SSH and exports the BGP table for the prefix. The Python code establishes an SSH connection to a Cisco device and executes commands to retrieve and export specific BGP routing table information for a given network prefix.
Submitted by emma.c· Mar 6, 2026Network Automation
Question
Refer to the exhibit. Which outcome is achieved with this Python code?
Options
- Aconnects to a Cisco device using SSH and exports the BGP table for the prefix
- Bdisplays the output of the show command in a formatted way
- Cconnects to a Cisco device using SSH and exports the routing table information
- Dconnects to a Cisco device using Telnet and exports the routing table information
Explanation
The Python code establishes an SSH connection to a Cisco device and executes commands to retrieve and export specific BGP routing table information for a given network prefix.
Common mistakes.
- B. While the output might be displayed, the primary outcome described in choice A is more specific and technically accurate for network automation tasks like extracting specific BGP data.
- C. The code specifically focuses on BGP table information for a prefix, not the entire general routing table which would typically involve a
show ip routecommand. - D. Modern network automation predominantly uses SSH for secure, encrypted communication with network devices, not Telnet, which transmits data in plaintext and is considered insecure.
Concept tested. Network device automation with Python (SSH, BGP commands)
Reference. https://netmiko.readthedocs.io/en/stable/
Topics
#Python scripting#Network automation#SSH#BGP routing
Community Discussion
No community discussion yet for this question.