It's either B or C, I would go for B: scripts establishes an SSH connection to the device and executes "show ip bgp 192.168.101.0 bestpath" to retrieve information about the BGP routing table.
I'm under the assumption that "exporting" the data requires it to be saved to an object or file, in which case B is wrong. the print( ) statement just displays it to the command line instead, so I think C is the better choice here.
B is correct. the output of print is just object and does not show anything. to show the inside of object it needs readlines method, like print(stdout.readlines()).
the routing table is exporting to the stdout object.
the output without readlines() is like this :
<paramiko.ChannelFile from <paramiko.Channel 0 (open) window=2097152 -> <paramiko.Transport at 0x8fbccb50 (cipher aes128-ctr,
128 bits) (active; 1 open channel(s))>>>
Choosing C going by this logic:
A: Obviously wrong because Telnet is not port 22
B: Although correct where it says it's using SSH, "exports" the routing table sounds wrong because the code just does a standard print(stdout) command. That just outputs to the command line. If the code was to export the file, there should be some file.open() and file.close() commands to actually pump the stdout data into a file, or at least to another object type
C: Correct answer going by this logic. The output is displayed with no formatting. If it was to be displayed in a formatted way, I'd expect to see something similar to a "for" loop where it can read each line of the stdout and write it accordingly, or at least some string formatting commands. There are none to hint at that in the code.
D: Wrong because there doesn't seem to be any formatting commands on the stdout before or while printing it to the command line.
it´s C
The script prints the raw stdout object, which means it simply prints the raw command output without any formatting to the output.
B is incorrect, because it dosen´t export the routing table information, it just retrieves and prints specific BGP information.
it's not exporting 'stdout' anywhere - it's just printing it.
I'm going to have to say it's C.
Now if Cisco wants to non-nonchalantly change what they mean by 'export', that might be the case - but I'm sticking with C.
same question but different answers here:
https://www.examtopics.com/discussions/cisco/view/52431-exam-350-401-topic-1-question-309-discussion/
Based on that question A and B are wrong.
It is either C or D
printing stdout will give smth like :
"<paramiko.ChannelFile from <paramiko.Channel 0 (open) window=8192 -> <paramiko.Transport at 0x3e51dd8 (cipher aes128-cbc, 128 bits) (active; 1 open channel(s))>>>"
need to read lines through "stdout.readlines()" then you can print in the terminal.
c/c : nothing is print to the screen and B seems to be the best option.
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.
slacker_at_work
Highly Voted 1 year, 1 month agoa197cbf
9 months, 2 weeks agozbeugene7
Most Recent 6 months, 1 week agochiacche
7 months, 1 week ago4121e3c
8 months, 2 weeks agoebulating
8 months, 3 weeks agoa197cbf
9 months, 2 weeks ago[Removed]
10 months, 2 weeks agods0321
10 months, 3 weeks ago[Removed]
11 months agoRickAO76
1 year agoClaudiu1
1 year, 1 month agoSwitchKiller
2 months, 1 week agogorillaenhanced
1 year, 2 months agoMizuchan
1 year, 3 months agoteems5uk
1 year, 3 months agociscoccie20
1 year, 3 months ago