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/
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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, 10 months agomgiuseppe86
1 year, 7 months agoeveriq
Most Recent 4 months agowengzaii96
9 months, 3 weeks agoAdalberto
11 months ago[Removed]
11 months, 1 week ago[Removed]
11 months, 2 weeks agoShri_Fcb10
11 months, 3 weeks agod4doppelganger
1 year, 2 months agoPureInertiaCopy
1 year, 8 months agoMJane
2 years agoasiansensation
2 years, 1 month agox3rox
2 years, 3 months agoRose66
2 years, 3 months agomrtattoo
2 years agoRose66
2 years, 3 months agoWINDSON
2 years, 4 months agoFadhelben
2 years, 4 months agomilovnik1
2 years, 4 months agobara_ken
3 years ago