200-901 exam dumps

200-901 practice question 166 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 166

Single answer

You are analyzing a YANG model defined for configuring interfaces on a network device. The model includes the following snippet:

module interface-config {
  namespace "urn:example:interface-config";
  prefix intf;

  container interfaces {
    list interface {
      key "name";
      leaf name {
        type string;
      }
      leaf description {
        type string;
      }
      leaf enabled {
        type boolean;
      }
    }
  }
}

Which statement correctly interprets the purpose or structure of the YANG model?

  1. A

    The YANG model defines a container named 'interfaces' that holds a list of interfaces, each uniquely identified by the 'name' key.

  2. B

    The YANG model defines a leaf named 'interfaces' that allows configuration of multiple interface attributes, including 'name', 'description', and 'enabled'.

  3. C

    The YANG model defines a module named 'interface-config' with a namespace but does not include any data nodes.

  4. D

    The YANG model defines a list named 'description' that allows multiple interface descriptions to be configured within the 'interfaces' container.

Show answer and explanation

Correct answer: A

Explanation

The YANG model defines a container ('interfaces') that organizes a list ('interface') of network interfaces. Each interface is uniquely identified by its 'name' (the key), and additional attributes like 'description' and 'enabled' are modeled as leaf nodes. Understanding the structure and components of a YANG model is critical for interpreting its configuration and purpose.

  • A. Correct.

    Correct. The YANG model defines a container ('interfaces') that includes a list ('interface') where each entry is uniquely identified by the 'name' key. The list has other attributes like 'description' and 'enabled' defined as leaf nodes.

  • B. Incorrect.

    Incorrect. The 'interfaces' is not a leaf node but a container. Containers can hold lists and other data nodes, which is evident from the model.

  • C. Incorrect.

    Incorrect. The module does include data nodes (a container, list, and leaf nodes). Saying it does not include any data nodes is incorrect.

  • D. Incorrect.

    Incorrect. The 'description' is a leaf node, not a list. Leaf nodes cannot hold multiple values, so this interpretation is invalid.

Timed practice exam

Take a 200-901 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