nerdexam
Cisco

300-435 · Question #86

Refer to the exhibit. A RESTCONF GET request is sent to a Cisco IOS XE device. The base URL of the request and the response in XML format are shown in the exhibit. What are the two YANG data nodes…

The correct answer is B. the ethernetCsmacd type is imported from the iana-if-type module. The RESTCONF XML response explicitly indicates that the 'ethernetCsmacd' type for interfaces is imported from the 'iana-if-type' YANG module through its XML namespace prefix.

Network Automation Foundation

Question

Refer to the exhibit. A RESTCONF GET request is sent to a Cisco IOS XE device. The base URL of the request and the response in XML format are shown in the exhibit. What are the two YANG data nodes and modules referenced in the response? (Choose two.)

Exhibit

300-435 question #86 exhibit

Options

  • Adescription is a key field defined in the interface list
  • Bthe ethernetCsmacd type is imported from the iana-if-type module
  • Caddress is a container defined in the ietf-interfaces module
  • Dipv4 is a container defined in the ietf-ip module
  • Einterface has the YANG data node type of container

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    81% (34)
  • D
    2% (1)
  • E
    12% (5)

Why each option

The RESTCONF XML response explicitly indicates that the 'ethernetCsmacd' type for interfaces is imported from the 'iana-if-type' YANG module through its XML namespace prefix.

Adescription is a key field defined in the interface list

'description' is typically a leaf within an interface configuration, providing textual information, and is not defined as a key field for identifying entries in the 'interface' list.

Bthe ethernetCsmacd type is imported from the iana-if-type moduleCorrect

The XML response for the interface type likely uses an XML namespace prefix (e.g., `ianaift`) to qualify the `ethernetCsmacd` type, explicitly linking it to the `iana-if-type` module namespace. This indicates that the definition of `ethernetCsmacd` as an interface type is imported from the `iana-if-type` YANG module.

Caddress is a container defined in the ietf-interfaces module

The 'address' data node is typically a list (of IP addresses) defined within the `ipv4` or `ipv6` container of the `ietf-ip` module, not a container itself within the `ietf-interfaces` module.

Dipv4 is a container defined in the ietf-ip module

While `ipv4` is generally a container defined in the `ietf-ip` module, the exhibit and the provided correct answer for this 'choose two' question imply that it is not one of the two intended specific references from the XML response or is not explicitly shown in the given context.

Einterface has the YANG data node type of container

The `interface` data node itself in `ietf-interfaces` is a list, not a container, as it holds multiple instances of interfaces, each of which is structured like a container.

Concept tested: YANG module and data node identification in RESTCONF XML

Source: https://datatracker.ietf.org/doc/html/rfc7950

Topics

#YANG#RESTCONF#Data Models#ietf-interfaces

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice