EX294 Practice Question: Create content collections and execution environments
An Ansible developer needs to use the `podman_container` module in a playbook. The module is part of the `containers.podman` collection. Which command must be run first to make the module available?
⚠ Common exam trap
A common mix-up: candidates confuse `ansible-galaxy install` (for roles) with `ansible-galaxy collection install` (for collections), or mistakenly think that searching for a collection makes it available for use.
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
✓
`ansible-galaxy collection install containers.podman`
The `podman_container` module is part of the `containers.podman` collection, which must be installed from Ansible Galaxy before it can be used in a playbook. The correct command is `ansible-galaxy collection install containers.podman`, which downloads and installs the collection into the local collections path, making all its modules and plugins available.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
`ansible-galaxy install containers.podman`
Why it's wrong here
Missing 'collection' keyword; installs roles by default.
- ✓
`ansible-galaxy collection install containers.podman`
Why this is correct
`ansible-galaxy collection install containers.podman` retrieves the collection from Galaxy and places it in the configured collections path, so the `podman_container` module resolves during playbook execution. This satisfies the stem's requirement to make the module available before use, since collections must be installed rather than bundled with ansible-core.
- ✗
`ansible-galaxy collection search containers.podman`
Why it's wrong here
`ansible-galaxy collection search` only queries Galaxy for matching collections and prints metadata; it downloads nothing, so the `podman_container` module remains unavailable. It is tempting because it confirms a collection exists and its version, which is useful before installation when verifying the exact name and available releases.
- ✗
`ansible-galaxy collection install containers.podman:1.0.0`
Why it's wrong here
Pinning `:1.0.0` installs that specific older release, which may lack the current `podman_container` parameters the playbook requires. It is tempting because version pinning gives reproducible builds. It would be correct when a playbook depends on behaviour from exactly that release and newer versions break compatibility.
Go deeper
Related to this question
About these practice questions
This EX294 question is part of Courseiva's 392-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 →
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.