nerdexam
CiscoCisco

350-901 · Question #41

350-901 Question #41: Real Exam Question with Answer & Explanation

The correct answer is A: when. To limit configuration actions in a YANG model based on specific conditions, the 'when' statement is used to define a constraint that must be true for a data node to be valid and configurable.

Network Automation

Question

You are developing a YANG-based policy model to encode the type of entity that is connected to a given interface, such as partner, supplier, customer, or distributor. Which YANG statement limits any configuration action?

Options

  • Awhen
  • Bcase
  • Cenumeration
  • Dcontains

Explanation

To limit configuration actions in a YANG model based on specific conditions, the 'when' statement is used to define a constraint that must be true for a data node to be valid and configurable.

Common mistakes.

  • B. The 'case' statement is used within a 'choice' statement to define mutually exclusive options, not to limit configuration based on arbitrary conditions.
  • C. The 'enumeration' statement defines a specific set of allowed string values for a leaf, which limits the data values but not the configuration action itself based on other data.
  • D. 'contains' is not a standard YANG keyword that limits configuration actions; it describes a conceptual relationship or part of module structure but not a constraint mechanism.

Concept tested. YANG conditional configuration and constraints

Reference. https://www.rfc-editor.org/rfc/rfc7950#section-7.16

Topics

#YANG#Data Modeling#Network Automation#Policy Modeling

Community Discussion

No community discussion yet for this question.

Full 350-901 PracticeBrowse All 350-901 Questions