exam questions

Exam 300-435 All Questions

View all questions & answers for the 300-435 exam

Exam 300-435 topic 1 question 36 discussion

Actual exam question from Cisco's 300-435
Question #: 36
Topic #: 1
[All 300-435 Questions]



Refer to the exhibits. An engineer creates a Python scripts using ncclient to display interface information. The code must be completed so that it can be tested.
Which expression completes the highlighted section in the format call?

  • A. intf_info
  • B. intf_config
  • C. intf_get
  • D. intf_config[0]
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
1234567J
Highly Voted 2 years, 10 months ago
answer is B
upvoted 19 times
...
[Removed]
Highly Voted 1 year, 4 months ago
Selected Answer: B
Voting B based on the script by Hank Preston, who participated in making the exam. https://github.com/CiscoDevNet/BRKDEV-1368/blob/master/netconf/example2.py
upvoted 6 times
...
dexilec82
Most Recent 2 months, 1 week ago
Selected Answer: B
The answer is B. If you look carefully at the result, the format is interfaces xmlns. If you use intf_info then the result should be with the format interfaces-state xmlns. I think both should work in getting the name of the interfaces but it is looking for the name of the interface under the interfaces yang container.
upvoted 1 times
dexilec82
2 months, 1 week ago
the m.get netconf command will get the configs not the operational state the netconf_filter = open('filter-ietf-interfaces.xml').read() netconf_reply = m.get(netconf_filter)
upvoted 1 times
...
...
cj_kuo
6 months, 2 weeks ago
Selected Answer: B
The answer was B. If you read the question carefully, the answer was on there.
upvoted 1 times
...
Lyndongarcia09
1 year, 9 months ago
Selected Answer: A
Answer is A although A and B will give you the correct answer, but it is asking interface information
upvoted 5 times
...
TechBrain
2 years, 5 months ago
The answer is intf_info (A) . I tired the code and both intf_info (intf_details["interfaces-state"]["interface"]) & intf_config (intf_details["interfaces"]["interface"]) work and give the interface name The filter has "interfaces" and "interfaces-state" which means "m.get(netconf_filter)" will get both the config and state The question says "display interface information" (int_info) not configuration.
upvoted 4 times
...
dooly
2 years, 5 months ago
answer is B https://github.com/CiscoDevNet/BRKDEV-1368/blob/master/netconf/example2.py
upvoted 4 times
...
lmh
2 years, 5 months ago
The correct answer is B
upvoted 2 times
...
cooliocool
2 years, 9 months ago
I think it's A because the <name> tag exists under <interface-state> then <interface> tags
upvoted 2 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago