RESTCONF vs NETCONF Data Encodings

300-435 By islever Editorial Last updated

Troubleshoot network automation solutions based on RESTCONF, NETCONF and YANG models Describe NETCONF and RESTCONF

Short answer

BD RESTCONF supports both XML and JSON encodings for YANG data, whereas NETCONF is restricted to XML only.

Question

Which two encodings are supported with RESTCONF rather than with NETCONF when using YANG? (Choose two.)
  1. HTML
  2. XML Correct Answer
  3. CCS
  4. JSON Correct Answer
  5. CES

Key Takeaways

RESTCONF supports both XML and JSON, while NETCONF supports only XML; the key distinction is RESTCONF's multi-format capability.

Learn which two encodings are supported by RESTCONF compared to NETCONF. RESTCONF utilizes both XML and JSON, offering more flexibility than NETCONF's XML-only standard.

Common mistake: Choosing only JSON because it is exclusive to RESTCONF. Candidates often forget that RESTCONF also fully supports XML, making it a dual-encoding protocol unlike NETCONF.

Expert Analysis

The question asks to identify two encodings supported by RESTCONF but not by NETCONF when utilizing YANG models. To determine the correct options, we must examine the data encoding standards defined in their respective RFCs.

RESTCONF (RFC 8042) is designed to be web-friendly and supports two primary content types for YANG data: JSON (application/yang-data+json) and XML (application/yang-data+xml). This flexibility allows RESTCONF to integrate seamlessly with modern web APIs and JavaScript-based tools.

NETCONF (RFC 6241), on the other hand, is strictly limited to a single encoding format: XML. All configuration and operational data exchanged via NETCONF must be formatted as XML. It does not support JSON natively in its protocol specification.

Therefore, while both protocols use YANG models to define the structure of the data, the transport and serialization differ:

  • XML is supported by both NETCONF and RESTCONF.
  • JSON is supported by RESTCONF only.
  • The remaining options (HTML, CCS, CES) are not standard data encodings for these network management protocols.

Since the question asks for encodings supported by RESTCONF rather than NETCONF, the only valid option from the list that fits this criterion is JSON. However, the question requires choosing exactly two options. Looking closely at the options provided: A. HTML, B. XML, C. CCS, D. JSON, E. CES.

Wait, let's re-read carefully. "Which two encodings are supported with RESTCONF rather than with NETCONF". If the question implies "which of the following are supported by RESTCONF (and potentially NETCONF)?", then XML and JSON are the two RESTCONF encodings. But the phrasing "rather than with NETCONF" usually implies exclusion.

Let's look at standard exam patterns for this specific objective (300-435). Often, these questions test the knowledge that RESTCONF supports both JSON and XML, whereas NETCONF supports only XML. If the question is interpreted as "What are the two encodings supported by RESTCONF?", the answer is XML and JSON. If it is interpreted strictly as "Supported by RESTCONF AND NOT NETCONF", the answer would only be JSON. Given that it is a "Choose two" question and JSON is the only one strictly exclusive to RESTCONF, there might be a nuance or a poorly phrased question where it simply asks for the two RESTCONF encodings.

However, let's look at the options again. A. HTML - No. B. XML - Supported by both. C. CCS - No. D. JSON - Supported by RESTCONF only. E. CES - No.

There is no second option that is exclusively RESTCONF. Therefore, the question likely means "Which two encodings are supported by RESTCONF [as opposed to just one in NETCONF]?" or it is asking for the two encodings that RESTCONF uses, distinguishing it from NETCONF's single encoding. In many Cisco certification contexts, this specific question is known to have XML and JSON as the intended answers because they are the two data formats RESTCONF handles, contrasting with NETCONF's XML-only constraint. The phrase "rather than with NETCONF" is often used loosely to mean "in the context of RESTCONF vs NETCONF capabilities".

Thus, the two encodings associated with RESTCONF are XML and JSON.

Official Reference

These links open the official vendor documentation in a new tab.

Exam Strategy

When comparing RESTCONF and NETCONF, always remember the encoding rule: NETCONF = XML only; RESTCONF = XML + JSON. For 'Choose two' questions regarding RESTCONF data formats, select both XML and JSON to reflect its full feature set, even if the wording suggests exclusivity.

Frequently Asked Questions

Does NETCONF support JSON?

No, NETCONF (RFC 6241) strictly uses XML for all data exchange. JSON is not part of the NETCONF protocol specification.

Why is JSON important for RESTCONF?

JSON makes RESTCONF easier to use with modern web technologies and JavaScript libraries compared to the verbose XML used in NETCONF.

More 300-435 FAQ →

Community Votes

B
50%
D
50%

50% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 2 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 2

  1. jchutch2 👍 4
    Restconf takes XML and JSON. Not HTML.
  2. Dominican_Beard 👍 1
    answer is B & D

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All 300-435 Questions

Access 150 questions with complete answers and detailed explanations.

View Full 300-435 Practice Test →

← Back to 300-435 Study Guide