Which two Ansible components are required to create a script that configures a VLAN on a switch? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: playbook, task.
Why this is the answer
Ansible uses playbooks to define automation workflows. A playbook is a YAML file that contains one or more plays, and each play consists of a list of tasks. A task is a single action that Ansible performs, such as configuring a VLAN. Therefore, both a playbook (to define the overall configuration) and tasks (to specify the individual VLAN configuration steps) are required. Recipes and cookbooks are terms used in Chef, another configuration management tool, not Ansible. A model is a general term and not a specific Ansible component for script creation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed