nerdexam
Cisco

300-435 · Question #65

Which statement is used to associate a submodule and a parent module in a YANG data model?

The correct answer is C. include. In YANG data modeling, the include statement associates a submodule with its parent module, making the submodule's definitions accessible.

Network Automation Foundation

Question

Which statement is used to associate a submodule and a parent module in a YANG data model?

Options

  • Aimport
  • Bnamespace
  • Cinclude
  • Dbelongs-to

How the community answered

(31 responses)
  • B
    3% (1)
  • C
    90% (28)
  • D
    6% (2)

Why each option

In YANG data modeling, the include statement associates a submodule with its parent module, making the submodule's definitions accessible.

Aimport

The import statement in YANG is used by a module to refer to definitions (e.g., types, groupings, data nodes) from other independent modules, not directly to associate a submodule with its parent.

Bnamespace

The namespace statement defines the XML namespace for the data model defined by the module, serving as a unique identifier, not for associating submodules with parent modules.

CincludeCorrect

In YANG data modeling, the include statement is used within a parent module to incorporate definitions from a submodule. This action makes all type definitions, groupings, and data nodes defined in the submodule available for use within the parent module, establishing the association.

Dbelongs-to

The belongs-to statement is used within a submodule to explicitly declare which top-level module it is a part of, rather than being the statement in the parent module that pulls in the submodule's definitions.

Concept tested: YANG data model submodule association

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

Topics

#YANG#Data Modeling#Modularity#Submodules

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice