350-401 · Question #1072
Refer to the exhibit. What is achieved by the XML code?
The correct answer is D. It reads the output of the show ip access-list extended flp command into a dictionary list. The XML code defines an RPC request using a YANG data model to programmatically retrieve and structure the output of the show ip access-list extended flp command into a dictionary-like format.
Question
Refer to the exhibit. What is achieved by the XML code?
Exhibits
Options
- AIt displays the access list sequence numbers from the output of the show ip access-list extended
- BIt displays the output of the show ip access-list extended flp command on the terminal screen
- CIt reads the access list sequence numbers from the output of the show ip access-list extended flp
- DIt reads the output of the show ip access-list extended flp command into a dictionary list
How the community answered
(50 responses)- A4% (2)
- B8% (4)
- C4% (2)
- D84% (42)
Why each option
The XML code defines an RPC request using a YANG data model to programmatically retrieve and structure the output of the `show ip access-list extended flp` command into a dictionary-like format.
While the output contains access list sequence numbers, the XML's purpose is to retrieve the *entire* structured output of the command, not just sequence numbers, and present it for programmatic use.
This XML represents a request or a data model, not a command that directly displays output on a terminal screen; it's for machine-to-machine communication.
The XML is designed to structure the *entire* output of the command, not just 'read' sequence numbers, and it's intended for programmatic data retrieval and parsing, not simple reading.
The XML structure, identified by `rpc` and `get` operations within a RESTCONF context (`xmlns='urn:ietf:params:xml:ns:yang:ietf-restconf'`), indicates a request to retrieve operational data specified by the YANG model `ietf-ip-acl:show-ip-access-list-extended-flp`. This typically means the network device will return the command output in a structured format (e.g., XML or JSON) that can be easily parsed and mapped into a dictionary or similar data structure by a programmatic client.
Concept tested: YANG data models, RESTCONF, and programmatic data retrieval
Source: https://datatracker.ietf.org/doc/html/rfc8040
Topics
Community Discussion
No community discussion yet for this question.

