Exam 350-401 All QuestionsBrowse all questions from this exam
Question 348

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?

    Correct Answer: B

    To reduce the amount of data that the NETCONF server returns to the NETCONF client to only the interface's configuration, an XML filter should be created and passed to the get_config() method as an argument. This will ensure that only the relevant portion of the configuration is returned, minimizing the data transfer and processing required. Using libraries to parse the data after it has been received does not reduce the amount of data initially transferred from the server.

Discussion
winderOption: B

First of all, the return data is saved as .xml format; Then it asks to "reduce amount of data returned" means you need to do the filter before data is downloaded, not after. B

sanalainenOption: B

"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." https://yang-prog-lab.ciscolive.com/pod/0/ncclient/get_config

bogdOption: B

B due to the request to "reduce amount of data returned". Which means filtering at the source, on the network device.

Willy78Option: B

B is correct answer D - will not "reduces the amount of data that the NETCONF server returns to the NETCONF client". You will pars date but you will not reduce what server sent

danman32

Not to mention the data returned is in XML format.

Nasreddine26Option: A

I see that A is correct, because they specified in the question "After running the code", then next steps to reduce the amount of data is to use the xml library without thinking on sending another get.

WookerOption: B

B is the correct answer.

hyjakerOption: B

The answer should be B to "reduce amount of data returned".

d4doppelgangerOption: A

Given that the code snippet in the exhibit directly retrieves the running configuration without specifying a filter, the correct option would be: A. Use the lxml library to parse the data returned by the NETCONF server for the interface's configuration. After retrieving the entire running configuration, the `lxml` library can be used to parse the XML data and extract only the configuration related to the interface of interest. This step effectively reduces the amount of data to only the interface's configuration from the retrieved XML.

Rupal_rawalOption: B

https://developer.cisco.com/learning/labs/dnav3-intro-netconf/hands-on-walking-through-automating-your-network-with-netconf/

SeMo0o0oOption: B

B is correct