Enabling NETCONF on IOS XE with netconf-yang
Short answer
A Issue netconf-yang under configure terminal on IOS XE to start the YANG-modelled NETCONF service over SSH.
Question
Key Takeaways
Enabling NETCONF on Cisco IOS XE means configuring the YANG-modelled netconf-yang feature under global configuration mode. Option A is correct because NETCONF on this platform is a native-YANG service carried over the SSH transport, so commands like netconf enable or ssh netconf do not exist and never start the subsystem. Verifying the result requires an SSH session to port 830 and a check of the advertised NETCONF capabilities.
Expert Analysis
Only the NETCONF server configuration subcommand enables the YANG-modelled NETCONF service on IOS XE, so option A holds because NETCONF on this platform is a YANG service bound to a listening SSH transport rather than a standalone protocol switch.
NETCONF enablement versus SSH transport on IOS XE
The distinction that decides this item is between the YANG-based NETCONF service and the SSH daemon that carries it. On IOS XE, NETCONF is modelled in the Cisco-IOS-XE-native YANG module as the netconf-yang container, configured inside conf t; NETCONF sessions then arrive over the SSH transport, because the NETCONF 1.0 RFC 6241 transport is SSH and NETCONF 1.1 can also ride an in-band TLS endpoint. Enabling the server therefore means configuring the YANG feature, not touching SSH itself. Choosing netconf enable or ssh netconf conflates the transport with the service: an SSH session alone gives you a CLI shell, not a NETCONF channel, and the NETCONF server will still refuse <hello> capability negotiation until the YANG feature is configured. The yang config wording has no counterpart in IOS XE at all; YANG is the modelling language, not a switch you type.
Why netconf-yang under config-t is the enabling action here
The decisive condition in this scenario is that the target platform is IOS XE, where NETCONF is provisioned as a YANG-modelled native feature under global configuration mode, so netconf-yang under configure terminal is the only option that both exists in the CLI and actually starts the NETCONF subsystem. Once entered, the device advertises the urn:ietf:params:netconf:base:1.0 capability in its <hello> message, exposes the native and OpenConfig subtrees for <get-config> and <edit-config>, and begins accepting SSH connections on port 830 when the transport profile is set. This is also what makes downstream automation work: ncclient, Ansible ios_config with netconf connection, and RESTCONF clients all depend on that server being up. The option letters and the shipped rationale agree on this letter, and nothing in the question's own wording undermines it.
Cost of each rejected option on an IOS XE target
A costs nothing here and is the answer; every other letter breaks the goal in a specific way. B, netconf enable, is a plausible-sounding but nonexistent IOS XE command, so it produces an invalid-input error and leaves the service down. C, ssh netconf, likewise has no such syntax; SSH is already the transport and configuring it differently does not instantiate the NETCONF subsystem or its YANG datastore. D, yang config, is not a command at all — YANG models describe configuration, they are not enabled by a yang keyword, and a typist guessing here wastes a CLI attempt on a parser rejection. Beyond the syntax failures, B and D share the deeper error of treating NETCONF as a switch rather than as a YANG-defined service, which is the exact conflation this item tests.
IOS XE native-model behaviour that makes A mandatory
The documented vendor behaviour is that netconf-yang is the native-YANG feature knob on IOS XE, and it is implemented through the Cisco-IOS-XE-native module, which is why pyang and YANG Suite show a netconf-yang container in the configuration tree rather than an enable leaf. The practical mechanism worth carrying forward: after issuing netconf-yang, you still need a transport (SSH on 830 by default once configured, or TLS), and the feature must be present in the image — NETCONF over SSH is available from IOS XE 16.6 onward, with 16.9+ recommended for full YANG/RESTCONF coverage. Verify success by opening an SSH connection to port 830 and checking the <hello> capabilities list; if no capabilities appear, the YANG feature, not the transport, is the missing piece. This is the same test an ncclient Manager(host=..., port=830,...) connection performs implicitly, so it doubles as a troubleshooting step for automation failures.
Exam Strategy
When an IOS XE automation question offers several 'enable' phrasings, ask which one is a real YANG-modelled feature rather than a plausible-sounding switch. Cross-check mentally against the Cisco-IOS-XE-native tree: a leaf that appears there (netconf-yang) is the intended answer, while invented verbs (enable, config) are distractors. Then confirm the transport question separately — knowing SSH on port 830 carries NETCONF helps you reject options that confuse the channel with the service.
Related Analysis
Practice All 300-435 Questions
Access 150 questions with complete answers and detailed explanations.
View Full 300-435 Practice Test →