nerdexam
Cisco

350-401 · Question #1185

Refer to the exhibit. Which action results from executing the Python script?

The correct answer is A. display the output of a command that is entered on that device. The Python script connects to a network device to execute a command and subsequently displays the full output returned by that command.

Submitted by parkjh· Mar 6, 2026

Question

Refer to the exhibit. Which action results from executing the Python script?

Exhibits

350-401 question #1185 exhibit 1
350-401 question #1185 exhibit 2

Options

  • Adisplay the output of a command that is entered on that device
  • Bdisplay the output of a command that is entered on that device in a single line
  • CSSH to the IP address that is manually entered on that device
  • Ddisplay the unformatted output of a command that is entered on that device

How the community answered

(24 responses)
  • A
    79% (19)
  • B
    4% (1)
  • C
    13% (3)
  • D
    4% (1)

Why each option

The Python script connects to a network device to execute a command and subsequently displays the full output returned by that command.

Adisplay the output of a command that is entered on that deviceCorrect

Python scripts for network automation commonly utilize libraries like Netmiko or Paramiko to establish an SSH connection to a remote device, send specific commands, and then capture and present the standard output of those commands directly to the user or console. This provides a way to interact with network devices programmatically and view the results of executed commands.

Bdisplay the output of a command that is entered on that device in a single line

Displaying output 'in a single line' implies a specific formatting constraint that is not the default or sole outcome of executing and displaying command output, which often spans multiple lines.

CSSH to the IP address that is manually entered on that device

While the script likely uses SSH, merely establishing an SSH connection to a manually entered IP address is an intermediate step, not the primary final action or result of a script designed to process commands.

Ddisplay the unformatted output of a command that is entered on that device

Describing the output as 'unformatted' is a specific characteristic about how the output is presented; scripts might display raw output, but they can also parse or format it for readability, making this an overly specific and not universally applicable description.

Concept tested: Network automation: remote command execution and output display

Source: https://developer.cisco.com/docs/network-automation/#!intro-to-network-automation/intro-to-network-automation-basics

Topics

#Python scripting#Network automation#CLI interaction

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice