Courseiva

EX294 Practice Question: Create content collections and execution environments

An administrator needs to create a custom execution environment that includes a specific Ansible collection and a Python package. Which two steps are required to build and use the execution environment? (Choose two.)

⚠ Common exam trap

Many candidates confuse the manual Dockerfile approach (Option A) with the correct `ansible-builder` workflow, or they think pushing to a registry (Option D) is mandatory when the question only asks for steps to build and use the execution environment locally.

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

✓

Build the execution environment using ansible-builder.

`ansible-builder` is the official tool for building Ansible execution environments, which are container images that bundle Ansible, collections, and dependencies. It uses a definition file (execution-environment.yml) to specify collections and Python packages, then builds the container image. Option E is correct because a `requirements.yml` file is the standard way to list Ansible collections for inclusion in an execution environment, and `ansible-builder` reads this file during the build process.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Create a Dockerfile that installs the collection and package.

    Why it's wrong here

    Incorrect: ansible-builder automates this; manual Dockerfile is not required.

  • ✗

    Define the execution environment in ansible.cfg.

    Why it's wrong here

    Incorrect: execution environment settings are in ansible-navigator.yml, not ansible.cfg.

  • ✓

    Build the execution environment using ansible-builder.

    Why this is correct

    Correct: ansible-builder builds a container image from the execution environment definition.

  • ✗

    Push the execution environment to a private container registry.

    Why it's wrong here

    Incorrect: pushing is optional; the image can be used locally without a registry.

  • ✓

    Create a requirements.yml file listing the collection.

    Why this is correct

    Correct: requirements.yml specifies Ansible content to include in the execution environment.

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 →

How Courseiva writes practice questions · Editorial policy

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.