300-435 · Question #102
Which two encodings are supported with RESTCONF rather than with NETCONF when using YANG? (Choose two.)
The correct answer is A. HTML D. JSON. RESTCONF supports HTML and JSON encodings when using YANG, distinguishing it from NETCONF which primarily uses XML.
Question
Exhibit
Options
- AHTML
- BXML
- CCCS
- DJSON
- ECES
How the community answered
(25 responses)- A92% (23)
- B4% (1)
- C4% (1)
Why each option
RESTCONF supports HTML and JSON encodings when using YANG, distinguishing it from NETCONF which primarily uses XML.
RESTCONF leverages HTTP, making it compatible with various web-centric data formats, including HTML. While less common for data exchange in automated systems, HTML can be used to represent information.
XML (Extensible Markup Language) is the primary encoding used by NETCONF for data exchange and is also supported by RESTCONF, but the question asks for encodings supported with RESTCONF "rather than with NETCONF", implying unique or preferred RESTCONF formats over NETCONF's primary XML.
CCS is not a standard data encoding format used with RESTCONF or NETCONF.
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is widely used in web services and is a primary encoding supported by RESTCONF for representing YANG-modeled data.
CES is not a standard data encoding format used with RESTCONF or NETCONF.
Concept tested: RESTCONF data encodings with YANG
Source: https://datatracker.ietf.org/doc/html/rfc8040
Topics
Community Discussion
No community discussion yet for this question.
