Which RFC Defines YANG 1.1: RFC 7950 vs RFC 6020

300-435 By islever Editorial Last updated

Short answer

A RFC 7950 is the IETF specification that defines YANG 1.1, while RFC 6020 covers the earlier YANG 1.0 and RFC 8340/RFC 8525 address tree diagrams and YANG Library.

Question

Which RFC defines YANG 1.1?
  1. RFC 7950 Correct Answer
  2. RFC 6020
  3. RFC 8340
  4. RFC 8525

Key Takeaways

YANG 1.1 is the IETF data modeling language defined by RFC 7950, which supersedes the earlier YANG 1.0 specification in RFC 6020. RFC 7950 is therefore the correct choice when the target is the RFC that defines YANG 1.1. RFC 8340 and RFC 8525 are related YANG documents covering tree diagrams and the YANG Library, not the YANG 1.1 language specification.

Expert Analysis

Because the wording pins the target to YANG version 1.1 rather than to YANG tooling or YANG-adjacent module catalogs, the defining specification is RFC 7950, making option A the only match.

Version boundary: RFC 7950 supersedes RFC 6020 for YANG 1.1 semantics

The distinction that matters here is between the base YANG language specification and documents that operate around it. RFC 6020 is the original YANG 1.0 specification: it establishes the module and submodule grammar, built-in types, and data modeling constructs that YANG 1.0 devices and tools understand. RFC 7950 is not a supplement or a profile of that document; it is the YANG 1.1 specification and obsoletes RFC 6020. The shift from 1.0 to 1.1 is a language-version boundary, so an implementation that needs actions or other YANG 1.1 constructs must use modules that declare the matching YANG version and parsers that support RFC 7950. By contrast, RFC 8340 specifies a textual notation for rendering YANG module trees, and RFC 8525 specifies the YANG Library data model used to advertise which modules and revisions a server implements. Those documents are valuable because they help operators read and discover models, but neither defines the syntax or semantics of YANG 1.1. Conflating the language standard with tree-diagram conventions or module inventory is exactly the trap: the first pair answers what YANG 1.1 is, while the second pair answers how a model is displayed and which models are available.

Specific wording: YANG 1.1 fixes RFC 7950 as the defining specification

The decisive condition is the version token 1.1 attached to the name YANG. Four RFC numbers are offered, but only one is the standards-track document whose scope is the YANG 1.1 language. If the prompt had asked for the original YANG definition, RFC 6020 would be the candidate; if it had asked for the YANG tree-diagram convention, RFC 8340 would dominate; if it had asked for a server's module inventory model, RFC 8525 would be relevant. The wording does none of those things. It asks which RFC defines YANG 1.1, and RFC 7950 is titled The YANG 1.1 Data Modeling Language and is the normative source for the 1.1 grammar, built-in types, and extension rules. This is not a case where a later document's title merely sounds more modern; the version number itself selects the language generation. In exam terms, the concrete constraint is narrow and positive: identify the RFC that owns the 1.1 definition, not the RFC that owns every related YANG artifact. That is why the answer stays A even though the other RFCs are real and are cited in YANG workflows.

Alternative RFCs 6020, 8340 and 8525 miss the YANG 1.1 definition

Option A survives because RFC 7950 is the YANG 1.1 base specification. Option B costs the solver the version distinction: RFC 6020 is the earlier YANG 1.0 document and was obsoleted by RFC 7950, so selecting it answers a different, older question. Option C breaks on scope: RFC 8340 defines the YANG tree diagram format used to display a module's hierarchy, not the language definition, so it helps interpret a rendered tree but cannot define YANG 1.1. Option D misreads the YANG Library role: RFC 8525 describes how a server exposes its YANG module inventory and conformance information, which is discovery metadata rather than the syntax or semantics of the language. Each distractor is plausible because it sits in the same YANG neighborhood and appears in automation workflows, but none carries the specific normative assignment requested. The cost of choosing B is answering for YANG 1.0; the cost of choosing C is answering for documentation output; the cost of choosing D is answering for model discovery. Only A pays the exact debt: a standards reference that defines YANG 1.1 itself.

IETF standards lineage makes RFC 7950 the normative reference for YANG 1.1

The controlling fact is the IETF publication relationship: RFC 7950 is a Standards Track RFC that obsoletes RFC 6020, so within the IETF's own document lineage it is the current base definition of YANG. That relationship is not cosmetic. A module that wants YANG 1.1 features carries a yang-version statement with the value 1.1, and a tool that parses that module must apply RFC 7950 semantics; a module that omits the statement or declares 1 is processed under the older YANG 1.0 rules. The version declaration is therefore a machine-readable selector, not a comment. In a NETCONF or RESTCONF workflow, the server's YANG Library can advertise modules and revisions, but library metadata does not change which language RFC governs the module's own syntax. RFC 8340 tree output is likewise a view generated from a module; it can show the structure but cannot authorize constructs that the base language does not define. Standard exam reasoning follows the same hierarchy: identify the object being requested, then follow the IETF status and obsoletes chain. For YANG 1.1, that chain lands unambiguously on RFC 7950.

Official Reference

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

Exam Strategy

When a YANG item names a version number, map the version to its base RFC before considering any related RFC that appears in the options. Anchor the pair YANG 1.0 → RFC 6020 and YANG 1.1 → RFC 7950, then treat RFC 8340 and RFC 8525 as supporting documents for tree output and module inventory. This prevents distractor RFCs from pulling you toward a broader YANG topic when the wording asks for the language definition.

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