What is a characteristic of YANG?
What is a characteristic of YANG?
YANG is a data modeling language developed by the IETF, not Cisco proprietary. One of its key characteristics is that it allows model developers to create custom data types. This feature enhances the expressiveness and flexibility of YANG data models, accommodating various network configuration needs. Therefore, the correct characteristic of YANG is that it allows model developers to create custom data types.
As per the official study guide/practice exam for 350-401
At this point I dont even think Cisco understands what YANG does...
The YANG language includes a set of built-in data types. The language also allows, however, the ability for developers to define custom data types. Source: https://ultraconfig.com.au/blog/learn-yang-full-tutorial-for-beginners/
Seems that the key word is "object-oriented" ... YANG is NOT object-oriented
From RFC6020: "This document describes the syntax and semantics of the YANG language, how the data model defined in a YANG module is represented in the Extensible Markup Language (XML), and how NETCONF operations are used to manipulate the data."
object-oriented fashin != object-oriented. In YANG, data is modeled using modules, which are similar to classes in an object-oriented programming language.Modules contain various elements that define the data being modeled, including data types, data nodes, and operations. Data nodes in YANG are similar to objects in an object-oriented programming language, and they can have properties and methods.
YANG was developed by IETF so not a Cisco proprietary nor is it an OOP language. B is correct.
C is the answer
YANG is a data modeling language used to model configuration and state data of network elements, network services, and network protocols. It structures data in a hierarchical tree format similar to object-oriented programming, which promotes model reuse and flexibility.
From RFC 6020 - YANG: -YANG structures data models into modules and submodules. (not an object-oriented fashion.) -YANG defines a set of built-in types, and has a type mechanism through which additional types may be defined. So I go with B.
This is C
im going with C
Both options B and C are correct characteristics of YANG YANG allows model developers to define custom data types using typedef statements (B), and it structures data in a hierarchical and object-oriented fashion, promoting modularity and reuse through mechanisms such as grouping, import, and include statements (C).
- it defines data, not creates. - and it structures data, doesn't say it's OO
B is the answer
i think both B and C are correct but I will go with C
B. It allows model developers to create custom data types. This option is correct. YANG indeed allows model developers to define custom data types, enhancing the expressiveness and flexibility of YANG data models. C. It structures data in an object-oriented fashion to promote model reuse. This option is also correct. YANG is designed to structure data hierarchically and in an object-oriented manner, promoting model reuse through features like grouping, augmentation, and inheritance. Given that we need to choose only one option, the best choice would be: B. It allows model developers to create custom data types. This option succinctly captures one of the key features of YANG, which is the ability to define custom data types within data models.
The correct answer is: B. It allows model developers to create custom data types. Explanation: YANG (Yet Another Next Generation) is a data modeling language used to define the structure and semantics of data that is managed by network protocols such as NETCONF (Network Configuration Protocol) or RESTCONF (RESTful Network Configuration Protocol). YANG is not specific to Cisco; it is an industry-standard language used by various networking vendors. Option A is incorrect because YANG is not a Cisco proprietary language; it is an open standard used by multiple vendors. Option C is partially correct, as YANG does promote model reuse and modularity through its data structuring approach, but it does not necessarily follow an object-oriented fashion. Option D is incorrect because YANG does not provide loops and conditionals for controlling flow within models. It is primarily focused on describing the structure and attributes of data, rather than programming logic.
https://www.examtopics.com/exams/cisco/350-401/view/36/#
I choose B "The YANG language includes a set of built-in data types. The language also allows, however, the ability for developers to define custom data types." Reference: https://ultraconfig.com.au/blog/learn-yang-full-tutorial-for-beginners/