exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 188 discussion

Actual exam question from Cisco's 350-901
Question #: 188
Topic #: 1
[All 350-901 Questions]


Refer to the exhibit. An engineer is configuring Ansible to run playbooks against Cisco IOS XE Software.
What should be configured in ansible.cfg as the connection type?

  • A. network_cli
  • B. ssh
  • C. shell
  • D. command
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
anon1
Highly Voted 1 year, 8 months ago
I think A should be the correct answer. https://developer.cisco.com/docs/ios-xe/#!ansible-quick-start-guide/hosts-file
upvoted 16 times
...
Teringzooi
Most Recent 7 months, 3 weeks ago
Selected Answer: A
Correct answer: A [ios-xe:vars] ansible_network_os=ios ansible_connection=network_cli https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html https://developer.cisco.com/docs/ios-xe/#!ansible-quick-start-guide/hosts-file
upvoted 2 times
...
designated
8 months, 2 weeks ago
Selected Answer: A
The correct answer is A. cat /etc/ansible/hosts [ios-xe:vars] ansible_network_os=ios ansible_connection=network_cli https://developer.cisco.com/docs/ios-xe/#!ansible-quick-start-guide/authentication
upvoted 2 times
...
QuiShong
11 months, 1 week ago
Selected Answer: A
Definitely network_cli (A)
upvoted 2 times
...
ferock
1 year ago
Selected Answer: A
The following variables are common for all platforms in the inventory, though they can be overwritten for a particular inventory group or host. ansible_connection Ansible uses the ansible-connection setting to determine how to connect to a remote device. When working with Ansible Networking, set this to an appropriate network connection option, such as``ansible.netcommon.network_cli``, so Ansible treats the remote node as a network device with a limited execution environment. Without this setting, Ansible would attempt to use ssh to connect to the remote and execute the Python script on the network device, which would fail because Python generally isn’t available on network devices. https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html
upvoted 3 times
...
dexilec82
1 year, 3 months ago
A answer
upvoted 2 times
...
udo2020
1 year, 4 months ago
It is A. The only possible solution!
upvoted 1 times
...
cj_kuo
1 year, 5 months ago
Selected Answer: A
Regarding the following, I will select A as the correct answer. https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html#connections-available
upvoted 1 times
...
m0nking
1 year, 5 months ago
Selected Answer: A
network_cli is the correct option in ansible
upvoted 4 times
...
digix
1 year, 5 months ago
I think is A, network_cli is the only correct option for the ansible_connection variable. https://docs.ansible.com/ansible/latest/network/getting_starte/network_differences.html
upvoted 1 times
...
tommiy
1 year, 8 months ago
network_cli is used for secure connectivity to network devices. SSH is intended to connect to servers. https://yetiops.net/posts/ansible-for-networking-part-3-cisco-ios/
upvoted 2 times
...
lente_kriebels
1 year, 8 months ago
A is only used in test environment never in production as it poses a threat. Therefore it is common to use SSH
upvoted 1 times
lente_kriebels
1 year, 8 months ago
Your right with A. Ansible uses the ansible-connection setting to determine how to connect to a remote device. When working with Ansible Networking, set this to an appropriate network connection option, such as``ansible.netcommon.network_cli``, so Ansible treats the remote node as a network device with a limited execution environment. Without this setting, Ansible would attempt to use ssh to connect to the remote and execute the Python script on the network device, which would fail because Python generally isn’t available on network devices.
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 ...