nerdexam
Cisco

350-401 · Question #1108

Refer to the exhibit. An engineer deploys a script to retrieve the running configuration from a NETCONF-capable Cisco IOS XE device that is configured with default settings. The script fails. Which co

The correct answer is B. port=830. To successfully establish a NETCONF session, the script must explicitly specify port 830, which is the standard TCP port for NETCONF over SSH.

Submitted by suresh_in· Mar 6, 2026Automation

Question

Refer to the exhibit. An engineer deploys a script to retrieve the running configuration from a NETCONF-capable Cisco IOS XE device that is configured with default settings. The script fails. Which configuration must be applied to retrieve the configuration using NETCONF?

Exhibits

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

Options

  • Aprint (netconf_host.get_config('show running'))
  • Bport=830
  • Cdevice_params=('name':'los-xe'})
  • Dhostkey_verify=True,

How the community answered

(64 responses)
  • A
    5% (3)
  • B
    84% (54)
  • C
    8% (5)
  • D
    3% (2)

Why each option

To successfully establish a NETCONF session, the script must explicitly specify port 830, which is the standard TCP port for NETCONF over SSH.

Aprint (netconf_host.get_config('show running'))

`print (netconf_host.get_config('show running'))` is a Python code snippet for retrieving configuration once a connection is established, not a configuration fix for an initial connection failure.

Bport=830Correct

NETCONF over SSH uses TCP port 830 as its standard default. If a script attempting to connect to a NETCONF-capable device does not explicitly specify this port, it will likely default to the standard SSH port (22), causing the NETCONF session establishment to fail.

Cdevice_params=('name':'los-xe'})

`device_params={'name':'ios-xe'}}` is used by some NETCONF libraries to inform the connection about the device type for proper XML handling, but it does not address a fundamental connection issue like an incorrect port.

Dhostkey_verify=True,

`hostkey_verify=True` is a security parameter for SSH host key verification; while important, it is not the primary reason a NETCONF connection would fail if the port itself is incorrect.

Concept tested: NETCONF default port and connection parameters

Source: https://datatracker.ietf.org/doc/html/rfc6242

Topics

#NETCONF#Network Automation#Cisco IOS XE#TCP Port 830

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice