300-435 exam dumps

300-435 practice question 51 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 51

Select 2

A network automation engineer is reviewing a YANG module tree generated per RFC8340 to understand the structure of a device's configuration model. The tree includes the following snippet:

module: example-module
  +--rw interfaces
     +--rw interface* [name]
        +--rw name        string
        +--rw enabled?    boolean
        +--rw description? string

Which statement accurately describes the generated YANG module tree?

  1. A

    The 'interfaces' node is a container that holds a list of interfaces.

  2. B

    The 'interface' node is a mandatory single instance within the 'interfaces' container.

  3. C

    The 'name' leaf is a key for the 'interface' list, and it must be unique.

  4. D

    The 'enabled' node is a required boolean leaf within the 'interface' list.

Show answer and explanation

Correct answers: A, C

Explanation

In a YANG module tree generated per RFC8340, the structure and syntax provide explicit information about the nodes. Containers group related data, lists allow multiple entries, and square brackets denote keys for lists. Optional nodes are marked with a question mark ('?'), while required ones are not. Understanding these conventions is critical for interpreting data models accurately.

  • A. Correct.

    Correct: The 'interfaces' node is a container, as indicated by the '+' prefix, which organizes related nodes. It holds the 'interface' list.

  • B. Incorrect.

    Incorrect: The 'interface' node is not a single instance; it is a list, as indicated by the '*' suffix, meaning multiple entries can exist.

  • C. Correct.

    Correct: The 'name' leaf is listed within square brackets, denoting it as a key for the list. Keys must be unique within a list.

  • D. Incorrect.

    Incorrect: The 'enabled' node is optional, as indicated by the '?' suffix, meaning it is not required in every instance of the 'interface' list.

Timed practice exam

Take a 300-435 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam