EX294 · topic practice

Manage task execution and roles practice questions

Practise Red Hat Certified Engineer EX294 Manage task execution and roles practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Manage task execution and roles

What the exam tests

What to know about Manage task execution and roles

Manage task execution and roles questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Manage task execution and roles exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Manage task execution and roles questions

20 questions · select your answer, then reveal the explanation

Question 1easymultiple choice
Read the full Ansible explanation →

A systems administrator needs to run a playbook that installs packages on a group of managed nodes. The playbook should run only on nodes that are part of the 'web_servers' group in the inventory. Which approach is best practice?

Question 2mediummultiple choice
Read the full Ansible explanation →

A team is writing an Ansible role to configure a web server. They want to include default variables that can be easily overridden by playbook variables. Which directory and file should they use to define these variables?

Question 3hardmultiple choice
Read the full Ansible explanation →

During a playbook execution, a task that uses the 'ansible.builtin.copy' module fails with 'Permission denied' on a remote host. The playbook runs as user 'ansible' which is a sudoer without password. Which of the following is the most likely cause and solution?

Question 4mediummulti select
Read the full Ansible explanation →

Which TWO statements about Ansible roles are true?

Question 5hardmulti select
Read the full Ansible explanation →

Which THREE are valid methods to control task execution in Ansible?

Question 6mediummultiple choice
Read the full Ansible explanation →

Refer to the exhibit. The playbook runs successfully. What will the debug task output?

Exhibit

Refer to the exhibit.

```yaml
---
- hosts: all
  tasks:
    - name: Create user
      ansible.builtin.user:
        name: jdoe
        state: present
      register: user_result

    - name: Show user info
      ansible.builtin.debug:
        var: user_result
```
Question 7hardmultiple choice
Read the full Ansible explanation →

Refer to the exhibit. The playbook uses the 'yum' module to install 'httpd' on a RHEL 8 system. Which of the following is the most likely cause of the failure?

Exhibit

Refer to the exhibit.

```
TASK [Gathering Facts] *********************************************************
ok: [server1.example.com]

TASK [role1 : Install package] *************************************************
fatal: [server1.example.com]: FAILED! => {"changed": false, "msg": "No package matching 'httpd' found available, tried all mirrors", "rc": 126, "results": []}
```
Question 8easymultiple choice
Read the full Ansible explanation →

An Ansible playbook needs to ensure a service is enabled and running on boot. Which combination of parameters should be used with the 'systemd' module?

Question 9easymultiple choice
Read the full Ansible explanation →

Which best practice should be followed when using Ansible to manage task execution across multiple hosts?

Question 10hardmultiple choice
Read the full Ansible explanation →

You are managing a fleet of 50 RHEL 8 servers that host a critical web application. Your Ansible control node runs RHEL 8 with Ansible 2.9. The application requires a specific package 'app-pkg' that is only available from a private YUM repository. The repository is configured on each server via a role 'repo_config'. Recently, after a security update, the repository GPG key was changed. Now, when you run the playbook to install 'app-pkg' on all servers, it fails on some servers with the error: "GPG check FAILED: key ID mismatch". On other servers, the installation succeeds. All servers have the same OS version and are configured identically via the same role. The playbook uses the 'yum' module with 'state: present'. You verify that the GPG key file on the control node is the correct new key and that the role copies it to the servers. What is the most likely cause and the best course of action?

Question 11mediummulti select
Read the full Ansible explanation →

Which TWO statements about Ansible roles are correct?

What is the most likely cause of the failure?

Exhibit

Refer to the exhibit.

```yaml
- name: Deploy web server
  hosts: webservers
  roles:
    - common
    - nginx
```

And the output of `ansible-playbook site.yml --check` shows:

```
PLAY [Deploy web server] *************************
TASK [common : include_vars] *********************
ok: [web1]
TASK [nginx : install nginx] *********************
fatal: [web1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'nginx_version' is undefined"}
```
Question 13easymultiple choice
Read the full Ansible explanation →

You are managing a web application deployment using Ansible. The application requires a specific version of a library (libapp) to be installed on all web servers. Your current playbook uses the role 'web' which includes a task to install libapp version 1.2. However, after a recent update, the role's defaults now specify libapp version 2.0, but you must keep version 1.2 for compatibility. You have defined a variable 'lib_version' in the playbook's vars section with value '1.2'. The role's task uses the variable 'libapp_version' (not 'lib_version'). The play fails because 'libapp_version' is undefined. What is the best way to resolve this issue without modifying the role?

Drag and drop the steps to configure a logical volume (LV) using LVM on a new disk in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Match each systemd unit type to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Background daemon or process

IPC or network socket

Time-based activation

Filesystem mount point

Group of units for synchronization

Question 16mediummultiple choice
Read the full Ansible explanation →

An Ansible playbook includes multiple roles. The administrator wants to ensure that a specific role's tasks are executed before any other roles, even if the roles are listed in a different order in the playbook. Which approach should be used?

A developer wants to reuse a set of tasks that conditionally include other task files based on variables defined per host. Which method should be used to ensure the included tasks are evaluated per host at runtime?

Question 18easymultiple choice
Read the full Ansible explanation →

In an Ansible playbook, the 'strategy' parameter is set to 'free'. What behavior does this strategy produce?

Question 19mediummultiple choice
Read the full Ansible explanation →

A playbook uses roles with default variables. The administrator needs to override a default variable for a specific role only when that role is used. Which method should be used?

Question 20hardmultiple choice
Read the full Ansible explanation →

An Ansible playbook fails intermittently due to a service not starting in time. The administrator wants to configure a task to retry until the service confirms it is running. Which Ansible feature should be used?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Manage task execution and roles sessions

Start a Manage task execution and roles only practice session

Every question in these sessions is drawn from the Manage task execution and roles domain — nothing else.

Related practice questions

Related EX294 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the EX294 exam test about Manage task execution and roles?
Manage task execution and roles questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Manage task execution and roles questions in a focused session?
Yes — the session launcher on this page draws every question from the Manage task execution and roles domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other EX294 topics?
Use the topic links above to move to related areas, or go back to the EX294 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the EX294 exam covers. They are not copied from any real exam or dump site.