EX294 Implement advanced Ansible automation Practice Question
Network Topology
Refer to the exhibit. The playbook fails because the httpd package is not found. Which is the most likely cause?
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
✓
The target host does not have the necessary repositories enabled.
The error indicates the package is not available. This is typically due to missing or incorrect repository configuration. The playbook itself and role syntax are valid.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The inventory does not define 'webservers' group.
Why it's wrong here
An undefined inventory group would cause the play to skip or report no matching hosts, not a package-not-found error during module execution. Inventory grouping matters when targeting hosts, but the failure here occurs after a host is reached and yum runs.
- ✗
The role path is incorrectly configured in ansible.cfg.
Why it's wrong here
An incorrect role path in ansible.cfg would prevent the role from being located at all, producing a role-not-found failure before any task runs. Role path configuration is relevant when Ansible cannot resolve a role's directory, not when a package lookup fails.
- ✓
The target host does not have the necessary repositories enabled.
Why this is correct
Missing or disabled repositories leave the package manager unable to resolve the httpd package name, so the task fails at dependency resolution rather than at installation. Enabling the correct RHEL subscription or custom repository on the managed host restores package availability, satisfying the stem's constraint that the package simply cannot be found.
- ✗
The 'yum' module should use 'name=httpd' instead of YAML syntax.
Why it's wrong here
The yum module accepts both key=value and YAML mapping syntax for name, so the syntax shown is valid. That syntax choice would matter only if the module rejected the parameters outright, which would produce an argument error rather than a missing-package result.
Go deeper
Related to this question
About these practice questions
Courseiva writes every EX294 question from scratch — 392 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This EX294 practice question is part of Courseiva's free Red Hat 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 EX294 exam.