EX294 Practice Question: Create content collections and execution environments
Which key in the galaxy.yml file defines the collection's namespace?
⚠ Common exam trap
Red Hat often tests the distinction between `namespace` and `name` in `galaxy.yml`, knowing candidates may confuse the two or think `namespace` is implied by the directory structure rather than explicitly defined in the file.
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
✓
namespace
The `namespace` key in the `galaxy.yml` file explicitly defines the collection's namespace, which is the first part of the fully qualified collection name (FQCN) and is used to organize collections under a specific publisher or organization on Ansible Galaxy. This is a required field in the `galaxy.yml` metadata file, as per the Ansible Collection structure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
collection
Why it's wrong here
The galaxy.yml schema uses 'namespace' to set the collection's namespace; 'collection' is not a recognised top-level key, so the build would fail or ignore it. It is tempting because the file describes a collection, but that metadata belongs under 'name' and 'namespace', not a 'collection' key.
- ✗
authors
Why it's wrong here
'authors' lists the collection's maintainers for metadata and Ansible Galaxy display; it carries no namespace information. It is tempting because it is a valid galaxy.yml key, but it would be the correct choice only when crediting contributors, not when defining the namespace that prefixes module names.
- ✗
name
Why it's wrong here
In galaxy.yml, name holds the collection's own name, not its namespace. It is tempting because the field sounds like the full identifier, but namespace is the separate key that defines the namespace portion. The correct key is namespace.
- ✓
namespace
Why this is correct
The namespace key in galaxy.yml declares the collection's namespace, which forms the first part of the fully qualified collection name used for installation and referencing. It must match the Automation Hub namespace the collection is published under.
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.