nerdexam
Cisco

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.

Submitted by fatima_kr· Mar 6, 2026Automation

Question

Refer to the exhibit. What is achieved by the XML code?

Exhibits

350-401 question #1072 exhibit 1
350-401 question #1072 exhibit 2

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)
  • A
    4% (2)
  • B
    8% (4)
  • C
    4% (2)
  • D
    84% (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.

AIt displays the access list sequence numbers from the output of the show ip access-list extended

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.

BIt displays the output of the show ip access-list extended flp command on the terminal screen

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.

CIt reads the access list sequence numbers from the output of the show ip access-list extended flp

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.

DIt reads the output of the show ip access-list extended flp command into a dictionary listCorrect

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

#XML parsing#Network automation#CLI data parsing#Data structures

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice