Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

RedHat EX294 Dumps 2026 with Free Practice Questions and Answers

13 original Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 Exam practice questions with answers and explanations.

Covers Be Able To Perform All Tasks Expected Of A Red Hat Certified System Administrator, Create Ansible Plays And Playbooks, Use Ansible Modules For System Administration Tasks That Work With, Configure Ansible Managed Nodes and 6 more.

Question types: single answer, dropdown, multiple answers, drag and drop and order list. A new question is added every 15 days.

EX294 Practice Set Details

Vendor
RedHat
Exam Code
EX294
Questions On This Page
13
Exam Topics Covered
10 of 9
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
35
Certification
Red Hat Certified Engineer
13 questions

RedHat EX294 Exam Questions and Answers by Topic

Be Able to Perform All Tasks Expected of a Red Hat Certified System Administrator

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A production RHEL 8 server hosts a database on an XFS filesystem mounted at /var/lib/ledger. A new virtual disk, /dev/vdb, has been added, and the filesystem must grow online without interrupting the database. The existing filesystem is not on LVM, and the disk contains no data that must be preserved. The storage team requires the new capacity to be available after reboot. Which approach meets the requirements with the least disruption?

Correct answer: A

Because the existing filesystem is a non-LVM XFS filesystem, it cannot be extended to consume a separate disk. Creating a filesystem on the new disk and migrating the data allows the mount to be changed persistently, although the database must be stopped for a consistent copy and cutover. Creating a filesystem mounted over the active directory would hide the existing data. xfs_growfs cannot join an unrelated partition to the current filesystem. LVM cannot absorb the existing non-LVM filesystem into a logical volume.

Question 2

Added

Single Answer

A RHEL 8 server is being prepared for a maintenance window. A new 20 GiB disk, /dev/vdb, must provide a persistent XFS filesystem mounted at /srv/archive. The host uses UUID-based mount entries, and the disk is confirmed to contain no required data. The service must not start until the mount is available after reboot. Which sequence is the most reliable?

Correct answer: D

Creating the partition and filesystem, recording the filesystem UUID, and validating the fstab entry with mount -a provides a persistent and testable mount. Configuring the service to require the mount ensures it does not start before the storage is available. Referencing the changing device path conflicts with the UUID-based requirement. Enabling the service without a mount dependency does not guarantee ordering. Systemd does not infer the required service dependency merely because a filesystem is mounted at that path.

Understand Core Components of Ansible

1 practice question on this topicWhat this topic covers

Question 3

Added

Drag And Drop

An administrator is reviewing a project to determine which Ansible component should hold each responsibility. Match each requirement to the component that directly provides it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

List of managed host names and group membership
Reusable instruction set executed against selected hosts
Settings that control Ansible command behavior
Host-specific data gathered automatically during a play
Playbook
Inventory
Facts
Configuration file
Correct answer:
  • List of managed host names and group membership → Inventory
  • Reusable instruction set executed against selected hosts → Playbook
  • Host-specific data gathered automatically during a play → Facts
  • Settings that control Ansible command behavior → Configuration file

The inventory defines hosts and groups, while a playbook contains plays and the instructions to execute. Facts are variables gathered from managed hosts, such as operating system and network details. The Ansible configuration file controls behavior such as the default inventory and connection settings. Modules perform individual operations, but they are not the host list, gathered host data, or command-wide configuration.

Install and Configure an Ansible Control Node

1 practice question on this topicWhat this topic covers

Question 4

Added

Order List

A small team must configure a new RHEL 8 control node for a fixed set of web servers. The systems are reachable by SSH, and the team wants a predictable, project-local setup without changing the system-wide Ansible configuration. The inventory must identify a web group, and the team must verify connectivity using Ansible before writing a playbook. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Run an ad hoc ping command against the web group
  2. Create ansible.cfg pointing to the project inventory
  3. Install the required Ansible package on the control node
  4. Create the project directory and static inventory with a web group
Correct answer:
  1. Install the required Ansible package on the control node
  2. Create the project directory and static inventory with a web group
  3. Create ansible.cfg pointing to the project inventory
  4. Run an ad hoc ping command against the web group

The control node needs the Ansible tooling before it can execute commands. The inventory must exist before configuration can point to it, and the project-local ansible.cfg then establishes that inventory as the default for commands run from the project. Finally, an ad hoc ping checks SSH connectivity and Python-based module execution against the defined group. Running the check before establishing the inventory and its configuration would not verify the intended target group reliably.

Configure Ansible Managed Nodes

1 practice question on this topicWhat this topic covers

Question 5

Added

Multiple Answers

A company has added twelve RHEL 8 servers to an Ansible control node. Administrators must run playbooks as the automation account, then use privilege escalation for tasks requiring root. SSH access must use keys rather than passwords, and routine validation must not prompt interactively. Which two actions meet these requirements? (Choose two.)

Correct answer: A, D

Installing the public key for the remote automation account enables noninteractive SSH authentication, while specifying the matching private key lets Ansible authenticate. Configuring become and appropriate sudo authorization separates the login identity from the privileged execution identity. Storing the root password directly in inventory is poor secret handling and does not establish key-based access. The local connection runs tasks on the control node rather than connecting to managed hosts. Direct root SSH access is unnecessary and weakens the intended account and privilege boundary.

Script Administration Tasks

1 practice question on this topicWhat this topic covers

Question 6

Added

Dropdown

A nightly shell script must collect the uptime of every host in the inventory group named appservers. The output must be produced by an Ansible ad hoc command, and the script must stop if that command fails rather than report success. Complete the command and shell setting with the appropriate values.

Choose the correct value for each blank.

#!/bin/bash
set
ansible -m command -a 'uptime'
Correct answer:

#!/bin/bash
set -e
ansible appservers -m command -a 'uptime'

The shell's -e setting makes the script exit when the Ansible command returns a nonzero status, avoiding a misleading success result. Naming appservers as the ad hoc command's pattern restricts execution to that inventory group. The -u shell option does not provide this failure behavior, and -o is not the intended shell setting. Using all would run the command on every inventory host, while localhost would target the control node rather than the application servers.

Create Ansible Plays and Playbooks

2 practice questions on this topicWhat this topic covers

Question 7

Added

Single Answer

An operations playbook restarts a service only when a configuration file has changed. The service must not be restarted immediately after the template task, because a later validation command must run first; if validation fails, the service must remain untouched. The configuration is deployed to several hosts, and a validation failure on one host should not prevent successful hosts from completing their work. Which design best satisfies these requirements?

Correct answer: A

A handler defers the restart until a handler flush or the end of the play. Placing validation before an explicit flush ensures a failed validation prevents the restart on that host, while handler notification limits restarts to hosts whose template changed. Flushing before validation restarts too early. An immediate restart also violates the required ordering. Ignoring validation errors and notifying unconditionally can restart a service with invalid configuration and needlessly restart unchanged hosts.

Question 8

Added

Dropdown

A playbook must run a command that reports the available space on /var, retain the result, and create a warning file only when the reported available kilobytes are below 500000. The command's stdout begins with the available number as its first whitespace-separated field. Complete the task fields.

Choose the correct value for each blank.

- name: Check available space
ansible.builtin.command: df -Pk /var
register:
- name: Create low-space warning
ansible.builtin.file:
path: /var/tmp/low-space-warning
state: touch
when: .stdout.split()[10] | int < 500000
Correct answer:

- name: Check available space
ansible.builtin.command: df -Pk /var
register: space_result
- name: Create low-space warning
ansible.builtin.file:
path: /var/tmp/low-space-warning
state: touch
when: space_result.stdout.split()[10] | int < 500000

The register name makes the command result available to later tasks, including its stdout. With the standard df -Pk output, the available-space value is the eleventh whitespace-separated field, indexed at 10, because the first line is the column header. Registering as a fact is not what the register keyword does, and the alternative names would leave the condition referencing an undefined result. The condition converts the selected field to an integer before comparing it with the threshold.

Use Ansible Modules for System Administration Tasks That Work With

2 practice questions on this topicWhat this topic covers

Question 9

Added

Single Answer

A RHEL 8 operations team manages a fleet where some hosts use an internal RPM repository that is temporarily unavailable during a scheduled network change. A playbook must install the package `rsyslog` if it is absent, but it must not attempt repository metadata refreshes because cached metadata is known to be current. The run must remain repeatable, and administrators must avoid shell commands that could report a change on every execution. Which task configuration best meets these requirements?

Correct answer: C

The `dnf` module with `state: present` installs the package only when needed, making the task idempotent, while `update_cache: no` avoids refreshing repository metadata. The `yum` configuration explicitly requests a cache update, which conflicts with the constraint. Marking a `dnf install` command as unchanged hides real system changes and bypasses module idempotence. The shell pipeline also bypasses the package module and does not provide reliable Ansible change reporting.

Question 10

Added

Multiple Answers

A RHEL 8 application host must install the package httpd, enable and start the httpd service, and allow inbound HTTPS traffic through firewalld permanently. The automation must be idempotent and must apply the firewall change without requiring an operator to reload firewalld manually. Which two approaches meet the requirements? (Choose two.)

Correct answer: A, C

The dnf and service modules express the desired package and service states idempotently. The firewalld module can enable the https service permanently and apply it immediately, so the rule is active now and persists after reload or reboot. Repeated command execution is not a reliable idempotent method. Disabling port 443 blocks rather than permits HTTPS. Enabling the firewalld service does not create an HTTPS firewall rule.

Work with Roles

1 practice question on this topicWhat this topic covers

Question 11

Added

Single Answer

A platform team needs to deploy a community role from Ansible Galaxy to a project used by several administrators. The project must retain the exact tested role release so a later installation does not silently change behavior. The team has a requirements file in the project root and does not want roles installed into each user's home directory. Which command is the best fit?

Correct answer: B

The role install command reads a requirements file and the -p option directs downloaded roles to the project-local roles directory. The requirements file can pin a specific version or source revision for repeatable project setup. The collection command installs collections rather than roles. ansible-playbook executes a playbook and does not install its requirements. The role init command scaffolds a new role instead of downloading the specified community role.

Use Advanced Ansible Features

1 practice question on this topicWhat this topic covers

Question 12

Added

Single Answer

A compliance team requires a database password to be encrypted at rest in source control and made available to a play only when the play runs. The value must not appear as clear text in the repository, and administrators already manage a shared Ansible Vault password through an approved secure process. Which implementation best meets the requirement?

Correct answer: B

Ansible Vault encrypts the variable file at rest, and the play can load the decrypted variable during execution using the approved Vault password mechanism. no_log suppresses task output but does not encrypt a plaintext source file. Ansible configuration is not a mechanism for safely storing a committed plaintext secret. A template containing the password still exposes it in source control even if the generated file is later removed.

Create an Ansible Playbook

1 practice question on this topic

Question 13

Added

Single Answer

A team maintains a playbook that configures several independent application hosts. A temporary failure on one host currently prevents later plays from running for all other hosts. The team wants Ansible to continue managing unaffected hosts while still treating each failed host as failed; it must not suppress task failures or retry indefinitely. Which play-level setting best addresses this behavior?

Correct answer: C

With serial: 1, Ansible processes one host at a time, so a failure on one host does not prevent the play from proceeding to the next host in a later batch. The failed host remains failed rather than having its task errors hidden. ignore_errors suppresses task failures, contrary to the requirement. any_errors_fatal deliberately stops execution broadly after a fatal error. A zero max_fail_percentage threshold is not a way to continue unaffected hosts, and serial controls batch size rather than failure suppression.

More Practice Questions

Get the Full RedHat EX294 Dumps as PDF and Practice Test

13 questions are free on this page and the full set has 35. It comes as a PDF and an online practice test, with 90 days of free updates.