CCNA 200-301 · Automation and Programmability · easy

A network automation engineer is comparing Ansible and Puppet/Chef for automating VLAN and OSPF configurations across 250 Cisco Catalyst switches that cannot install third-party Linux agents on their IOS XE firmware. Which two characteristics accurately describe how Ansible operates in this environment? (Select two.)

Published · Last updated · checked before publication — how we verify questions

Options

  • AOperates agentlessly by connecting to switches over SSH or NETCONFCorrect answer
  • BRequires installing a persistent Ruby daemon inside every switch's flash memory
  • CCommunicates exclusively via unencrypted UDP port 69 TFTP broadcasts
  • DDefines automation tasks and device state using human-readable YAML PlaybooksCorrect answer

Answers: A. Operates agentlessly by connecting to switches over SSH or NETCONF; D. Defines automation tasks and device state using human-readable YAML Playbooks

Ansible is an agentless automation tool. It runs from a control node and pushes configuration to managed devices over transports those devices already support, such as SSH (CLI-based modules like ios_config) or NETCONF (TCP 830), so nothing needs to be installed on the Catalyst switches. This is why it fits an environment where third-party Linux agents cannot be installed on IOS XE. Ansible also describes automation in Playbooks, which are written in YAML. Playbooks are human-readable, declarative lists of plays and tasks that state the desired result, for example which VLANs or OSPF settings should exist. The common trap is mixing up the tools. Puppet and Chef are agent-based in their traditional models and use a pull approach with a Ruby-based DSL, while Ansible is push-based and uses YAML. Also remember that Ansible uses secure, standard management transports, not file-transfer protocols.

Why the other options are wrong

  • B. Requires installing a persistent Ruby daemon inside every switch's flash memory — A persistent Ruby daemon describes the agent model used by Puppet and Chef, which are Ruby-based. Ansible needs no on-box daemon, and the scenario says agents cannot be installed on these switches in any case.
  • C. Communicates exclusively via unencrypted UDP port 69 TFTP broadcasts — TFTP uses UDP port 69 and only transfers files, and it is not a broadcast-based, encrypted automation protocol. Ansible manages devices over encrypted SSH on TCP 22 or NETCONF on TCP 830, so this does not describe how it operates.

All Automation and Programmability questions and the topic overview →

Cisco and CCNA are trademarks of Cisco Systems, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.