Courseiva
hardMultiple SelectObjective-mapped

350-401 Practice Question: Which three statements about Ansible playbooks…

Which three statements about Ansible playbooks are true? (Choose three.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A playbook must contain at least one play, and each play must specify a 'hosts' key.

Playbooks are YAML files containing plays, each mapped to a host group. They support variables, conditionals, and loops. The 'hosts' key defines target groups, and 'tasks' lists modules to execute. Playbooks can include other playbooks or roles.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A playbook must contain at least one play, and each play must specify a 'hosts' key.

    Why this is correct

    Correct because a playbook is composed of one or more plays, and each play requires the 'hosts' directive to define the target group.

  • Playbooks are written in YAML format and can include variables, conditionals, and loops.

    Why this is correct

    Correct because playbooks use YAML syntax and support Jinja2 templating for variables, when conditionals, and loop constructs.

  • The 'tasks' section of a play can include both module calls and role inclusions.

    Why this is correct

    Correct because tasks can directly invoke modules or include roles using the 'include_role' or 'import_role' directives.

  • A playbook can only contain a single play.

    Why it's wrong here

    Incorrect because a playbook can contain multiple plays, each targeting different host groups.

  • Playbooks must be executed with the 'ansible' command, not 'ansible-playbook'.

    Why it's wrong here

    Incorrect because playbooks are executed using the 'ansible-playbook' command, while 'ansible' is used for ad-hoc commands.

About these practice questions

This 350-401 question is part of Courseiva's 1,175-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.