exam questions

Exam 300-910 All Questions

View all questions & answers for the 300-910 exam

Exam 300-910 topic 1 question 35 discussion

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


Refer to the exhibit. The exhibit shows the output of an Ansible task that prints the contents of the show_ip_int_brief variable that was registered in a different task in the playbook.
Which expression is used to print the output of the command without its header row?

  • A. show_ip_int_brief["˜stdout_lines'][0]
  • B. show_ip_int_brief["˜stdout_lines'][1:]
  • C. show_ip_int_brief["˜stdout_lines'][0][1:]
  • D. show_ip_int_brief["˜stdout_lines']
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
dead_beef
Highly Voted 3 years, 6 months ago
"stdout_lines" is a list and there here is another list under that. So C makes more sense than B imo.
upvoted 11 times
...
flam3Td
Most Recent 2 years ago
Selected Answer: C
Yes C is correct.
upvoted 1 times
...
swoloc
3 years, 2 months ago
C. --- show_ip_int_brief["˜stdout_lines'][0][1:] --- stdout_lines - nested list, [0], first element of above nested list (extract of all header + interfaces, coma separated for individual elements), [1:] - 2nd, 3rd, 4th line of the above sub-list.
upvoted 4 times
...
szyszka
3 years, 4 months ago
Yes C is correct.
upvoted 2 times
...
szyszka
3 years, 4 months ago
Option C will include headers. B is correct.
upvoted 2 times
lancejack2021
10 months ago
No B is not correct as show_ip_int_brief['stdout_lines'] is a nested list.
upvoted 1 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 ...