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
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
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)- A3% (1)
- B5% (2)
- C8% (3)
- D85% (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
/configurationroot and erroneously repeatsinettwice. - B skips the
interfacesplural container, jumping straight tointerface- Junos XML always wraps individual elements in a plural parent. - C is missing both
/configurationand theinterfacescontainer, 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
Community Discussion
No community discussion yet for this question.

