hardMultiple SelectObjective-mapped
CCNP Practice Question: Which three statements about Ansible playbooks…
Which three statements about Ansible playbooks and roles 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
✓
Roles in Ansible use a standardized directory structure that includes 'tasks', 'handlers', 'vars', 'defaults', and 'meta'.
Roles use a predefined directory structure with tasks, handlers, vars, defaults, and meta. The 'import_role' statically includes a role at playbook parse time, while 'include_role' dynamically includes it at runtime. Handlers are triggered by 'notify' and run once even if notified multiple times. The 'vars' directory holds high-precedence variables, while 'defaults' holds low-precedence defaults. The 'meta' directory contains role dependencies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Roles in Ansible use a standardized directory structure that includes 'tasks', 'handlers', 'vars', 'defaults', and 'meta'.
Why this is correct
Correct: This is the standard role directory layout used by Ansible.
- ✗
The 'import_role' module includes a role dynamically during play execution.
Why it's wrong here
Incorrect: 'import_role' is static (included at playbook parse time); 'include_role' is dynamic.
- ✓
Handlers are special tasks that run only when notified by other tasks, and they run only once even if notified multiple times.
Why this is correct
Correct: Handlers are triggered by 'notify' and execute once at the end of the play.
- ✗
Variables defined in the 'defaults' directory of a role have the highest precedence.
Why it's wrong here
Incorrect: 'defaults' has the lowest precedence; 'vars' directory has higher precedence.
- ✓
The 'meta' directory in a role is used to define role dependencies.
Why this is correct
Correct: The meta/main.yml file defines dependencies on other roles.
About these practice questions
One of 1,175 original 350-401 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.