352-001 · Question #791
Which encoding format does cisco ios XE software support for NETCONF?
The correct answer is C. It supports XML encoding for NETCONF. NETCONF on Cisco IOS XE uses XML as its mandatory data encoding format, as defined in RFC 6241.
Question
Which encoding format does cisco ios XE software support for NETCONF?
Options
- AIt supports HTML encoding for NETCONF
- BIt supports YAML encoding for NETCONF
- CIt supports XML encoding for NETCONF
- DIt supports JSON encoding for NETCONF
How the community answered
(25 responses)- A4% (1)
- C92% (23)
- D4% (1)
Why each option
NETCONF on Cisco IOS XE uses XML as its mandatory data encoding format, as defined in RFC 6241.
HTML is a markup language for web pages and has no role in NETCONF data encoding.
YAML is used by automation tools such as Ansible playbooks but is not a supported encoding format for the NETCONF protocol.
XML is the only encoding format specified by NETCONF (RFC 6241), and Cisco IOS XE implements NETCONF over SSH using XML-encoded RPCs and YANG data models. All NETCONF operations such as get-config, edit-config, and notifications are carried in XML. No other encoding is natively supported by the NETCONF protocol itself on IOS XE.
JSON is the encoding format used by RESTCONF (RFC 8040), not NETCONF; the two are distinct programmatic interfaces.
Concept tested: NETCONF encoding format on Cisco IOS XE
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/xe/programmability-xe.html
Topics
Community Discussion
No community discussion yet for this question.