nerdexam
Cisco

200-301 · Question #402

Refer to the exhibit. After running the code in the exhibit, which step reduces the amount of data that the NETCONF server returns to the NETCONF client, to only the interface's configuration?

The correct answer is B. Create an XML filter as a string and pass it to get_config() method as an argument.. Using the Pythonic approach with ncclient and its get_config() method, has a filter argument where you simply specify the filter type, in this case subtree, along with the XML RPC that you want to get a configuration rpc-reply.

Submitted by emma.c· Mar 5, 2026Automation and Programmability

Question

Refer to the exhibit. After running the code in the exhibit, which step reduces the amount of data that the NETCONF server returns to the NETCONF client, to only the interface's configuration?

Exhibits

200-301 question #402 exhibit 1
200-301 question #402 exhibit 2

Options

  • AUse the Ixml library to parse the data returned by the NETCONF server for the interface's
  • BCreate an XML filter as a string and pass it to get_config() method as an argument.
  • CCreate a JSON filter as a string and pass it to the get_config() method as an argument.
  • DUse the JSON library to parse the data returned by the NETCONF server for the interface's

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    83% (24)
  • C
    3% (1)
  • D
    3% (1)

Explanation

Using the Pythonic approach with ncclient and its get_config() method, has a filter argument where you simply specify the filter type, in this case subtree, along with the XML RPC that you want to get a configuration rpc-reply.

Topics

#NETCONF#XML filters#Network configuration automation#Data retrieval optimization

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice