nerdexam
Juniper

JN0-224 · Question #5

In the XML output shown in the exhibit. What is the full XPath for the IP address of the interface? A. B. C. D.

The correct answer is D. /configuration/interfaces/interface/unit/family/inet/address/name. Option D is correct because Juniper device XML configuration always begins with /configuration as the document root, followed by interfaces (the plural container element), then interface (a single instance), and the path continues down through unit/family/inet/address. Critically

NETCONF, RESTCONF, and gRPC

Question

In the XML output shown in the exhibit. What is the full XPath for the IP address of the interface? A. B. C. D.

Exhibits

JN0-224 question #5 exhibit 1
JN0-224 question #5 exhibit 2

Options

  • A/interfaces/interface/unit/family/inet/inet/address
  • B/configuration/interface/unit/family/inet/address
  • C/interface/unit/family/inet/address
  • D/configuration/interfaces/interface/unit/family/inet/address/name

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    8% (3)
  • D
    85% (33)

Explanation

Option D is correct because Juniper device XML configuration always begins with /configuration as the document root, followed by interfaces (the plural container element), then interface (a single instance), and the path continues down through unit/family/inet/address. Critically, in Juniper's XML schema, the actual IP address value is stored inside a <name> child element within <address>, making /name the required final node.

Why the distractors fail:

  • A is wrong on two counts: it omits the /configuration root and erroneously repeats inet twice.
  • B skips the interfaces plural container, jumping straight to interface - Junos XML always wraps individual elements in a plural parent.
  • C is missing both /configuration and the interfaces container, making it an incomplete relative path rather than a full XPath.

Memory tip: Remember the acronym C-I-I-U-F-I-A-N - Configuration, Interfaces, Interface, Unit, Family, Inet, Address, Name - and note that Juniper XML uses plural containers (interfaces, not interface) one level above the individual element, and the IP value lives in <name>, not as an attribute.

Topics

#XPath#XML navigation#interface configuration#NETCONF

Community Discussion

No community discussion yet for this question.

Full JN0-224 Practice