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).
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.
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.
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/
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.
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."
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.
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/
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Jared28
Highly Voted 2 years, 6 months agomgiuseppe86
1 year, 4 months agoeveriq
Most Recent 2 weeks, 1 day agowengzaii96
6 months agoAdalberto
7 months, 2 weeks ago[Removed]
7 months, 3 weeks ago[Removed]
8 months agoShri_Fcb10
8 months, 1 week agod4doppelganger
10 months, 2 weeks agoPureInertiaCopy
1 year, 5 months agoMJane
1 year, 9 months agoasiansensation
1 year, 9 months agox3rox
1 year, 11 months agoRose66
2 years agomrtattoo
1 year, 8 months agoRose66
2 years agoWINDSON
2 years agoFadhelben
2 years, 1 month agomilovnik1
2 years, 1 month agobara_ken
2 years, 8 months ago