nerdexam
Cisco

300-435 · Question #37

Which YANG statement defines a block of other statements that can be easily referenced in other areas of a data model?

The correct answer is A. grouping. The YANG grouping statement allows developers to define a reusable block of data model definitions that can be easily referenced and instantiated in other parts of a data model, promoting modularity.

Network Automation Foundation

Question

Which YANG statement defines a block of other statements that can be easily referenced in other areas of a data model?

Options

  • Agrouping
  • Bcontainer
  • Csubmodule
  • Dmodule

How the community answered

(20 responses)
  • A
    95% (19)
  • B
    5% (1)

Why each option

The YANG `grouping` statement allows developers to define a reusable block of data model definitions that can be easily referenced and instantiated in other parts of a data model, promoting modularity.

AgroupingCorrect

The `grouping` statement in YANG is specifically designed to collect a set of data definitions into a reusable entity that can be instantiated multiple times using the `uses` statement elsewhere in the data model, thereby promoting modularity and reducing redundancy.

Bcontainer

A `container` in YANG is a non-leaf node used to organize data into a hierarchical structure, but it does not provide reusability for definitions in the same way a `grouping` does.

Csubmodule

A `submodule` in YANG is used to break down a larger `module` into smaller, more manageable files, rather than defining a reusable block of statements within the data model itself.

Dmodule

A `module` is the top-level organizational unit in YANG, defining a complete data model, but it is not a statement for defining reusable blocks within the data model.

Concept tested: YANG data modeling grouping statement

Source: https://www.rfc-editor.org/rfc/rfc7950#section-7.11

Topics

#YANG#Data Modeling#Grouping#Reusability

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice