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?
A.
Use the Ixml library to parse the data returned by the NETCONF server for the interface's configuration.
B.
Create an XML filter as a string and pass it to get_config() method as an argument.
C.
Create a JSON filter as a string and pass it to the get_config() method as an argument.
D.
Use the JSON library to parse the data returned by the NETCONF server for the interface's configuration.
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
"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
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.
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.
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
Not to mention the data returned is in XML format.
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
winder
Highly Voted 2 years, 10 months agosanalainen
Highly Voted 2 years, 9 months agoSummerSalty0
Most Recent 6 months, 3 weeks agoAbdullahMohammad251
8 months, 1 week agoRupal_rawal
10 months, 1 week ago[Removed]
11 months, 3 weeks agod4doppelganger
1 year, 2 months agoNasreddine26
1 year, 2 months agoWooker
2 years, 7 months agohyjaker
3 years agobogd
3 years, 2 months agoWilly78
3 years, 3 months agodanman32
1 year, 9 months ago