Courseiva

EX294 Practice Question: Create content collections and execution environments

Network Topology
$ ansible-builder buildfile execution-environment.ymltag my-ee:latestRefer to the exhibit.```

Based on the exhibit, which file is generated by `ansible-builder` to support the build?

⚠ Common exam trap

Red Hat often tests the distinction between the input definition file (`execution-environment.yml`) and the output build artifact (`Containerfile`), causing candidates to mistakenly select the input file as the generated output.

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

✓

Containerfile

The `ansible-builder` tool uses a definition file (typically `execution-environment.yml`) to construct a container image. During the build process, it generates a `Containerfile` (or `Dockerfile`) that contains the exact instructions for building the container image, such as base image selection, package installation, and collection inclusion. This generated file is the actual artifact that the container runtime (e.g., Podman or Docker) uses to create the execution environment image.

Answer analysis

Option-by-option breakdown

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

  • ✗

    requirements.yml

    Why it's wrong here

    requirements.yml lists Ansible Galaxy collections and roles to install; ansible-builder does not generate it as build output. It is tempting because it is a real Ansible file, and it would be correct when declaring collection dependencies for a project before building the execution environment.

  • ✗

    execution-environment.yml

    Why it's wrong here

    execution-environment.yml is the input definition file that ansible-builder reads, not a file it generates as build output. It is tempting because it is central to the build process, and it would be correct as the file an administrator authors to specify base images and dependencies.

  • ✓

    Containerfile

    Why this is correct

    `ansible-builder` generates a Containerfile (the Podman/Buildah equivalent of a Dockerfile) that defines the execution environment image build. It satisfies the stem's requirement by producing this build recipe from `execution-environment.yml`, which `ansible-builder build` then passes to Podman or Buildah to assemble the image.

  • ✗

    ansible.cfg

    Why it's wrong here

    ansible.cfg configures Ansible runtime behaviour such as inventory and connection settings; ansible-builder does not generate it during a build. It is tempting because it is a familiar Ansible file, and it would be correct when customising how ansible-playbook executes against managed hosts.

About these practice questions

One of 392 original EX294 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 →

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.