Question 172 of 528

EX294 ansible-navigator Practice Question

This EX294 practice question tests your understanding of create content collections and execution environments. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: ansible-navigator. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which command runs a playbook using an execution environment named 'my-ee'?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "which command"

    Why it matters: Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.

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-navigator run playbook.yml --execution-environment my-ee

Both Option A and Option D are correct because `ansible-navigator run` supports both the full flag `--execution-environment` and its shorthand `--ee` to specify an execution environment. Option A uses the full flag, while Option D uses the shorthand; both are valid. Options B and C are incorrect because `ansible-playbook` does not support execution environments directly, and `ansible-runner` is a different tool typically used in automation controller environments, not directly for running playbooks with execution environments in the same manner.

Key principle: ansible-navigator

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-navigator run playbook.yml --execution-environment my-ee

    Why this is correct

    Correct. This command uses the full flag `--execution-environment` to specify the execution environment 'my-ee'.

    Clue confirmation

    The clue word "which command" in the question point toward this answer.

    Related concept

    ansible-navigator

  • ansible-playbook -i inventory playbook.yml -e 'ansible_python_interpreter=/usr/bin/python3' --ee my-ee

    Why it's wrong here

    Incorrect. `ansible-playbook` does not support execution environments; it runs playbooks using the local Python interpreter and cannot accept an `--ee` flag.

  • ansible-runner run --ee my-ee playbook.yml

    Why it's wrong here

    Incorrect. `ansible-runner` is used in automation controller and does not directly accept an `--ee` flag for running playbooks; it is not the standard user-facing command.

  • ansible-navigator run playbook.yml --ee my-ee

    Why this is correct

    Correct. This command uses the shorthand flag `--ee`, which is a valid alias for `--execution-environment` in `ansible-navigator run`.

    Clue confirmation

    The clue word "which command" in the question point toward this answer.

    Related concept

    ansible-navigator

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates may mistakenly think that only `--execution-environment` is valid, but `--ee` is an accepted shorthand. Additionally, they may confuse the commands `ansible-navigator`, `ansible-playbook`, and `ansible-runner`.

Trap categories for this question

  • Command / output trap

    Incorrect. `ansible-runner` is used in automation controller and does not directly accept an `--ee` flag for running playbooks; it is not the standard user-facing command.

Detailed technical explanation

How to think about this question

Execution environments are container images that bundle Ansible, collections, and dependencies, ensuring consistent execution across environments. `ansible-navigator` uses `ansible-runner` under the hood to manage container lifecycle, and the `--execution-environment` flag sets the `container_image` field in the runner configuration. In real-world CI/CD pipelines, specifying a tagged execution environment image (e.g., `my-ee:latest`) ensures reproducible playbook runs, avoiding dependency drift.

KKey Concepts to Remember

  • ansible-navigator
  • execution environment
  • shorthand flags

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

ansible-navigator

Real-world example

How this comes up in practice

A practitioner preparing for the EX294 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. ansible-navigator Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Review ansible-navigator, then practise related EX294 questions on the same topic to reinforce the concept.

Related practice questions

Related EX294 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free EX294 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this EX294 question test?

Create content collections and execution environments — This question tests Create content collections and execution environments — ansible-navigator.

What is the correct answer to this question?

The correct answer is: ansible-navigator run playbook.yml --execution-environment my-ee — Both Option A and Option D are correct because `ansible-navigator run` supports both the full flag `--execution-environment` and its shorthand `--ee` to specify an execution environment. Option A uses the full flag, while Option D uses the shorthand; both are valid. Options B and C are incorrect because `ansible-playbook` does not support execution environments directly, and `ansible-runner` is a different tool typically used in automation controller environments, not directly for running playbooks with execution environments in the same manner.

What should I do if I get this EX294 question wrong?

Review ansible-navigator, then practise related EX294 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "which command". Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.

What is the key concept behind this question?

ansible-navigator

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More EX294 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.