Free RHCE Practice Test 2026
Master Ansible automation for the Red Hat Certified Engineer exam—150+ practice questions aligned with RHEL 9 and EX294
Quick Facts: RHCE Certification 2026
The Red Hat Certified Engineer (RHCE) is an advanced Linux certification focused on Ansible automation and enterprise system administration. According to PrepForCerts analysis, RHCE holders earn a median salary of $125,000 in 2026, with senior automation engineers exceeding $165,000. The exam is entirely performance-based—you automate real RHEL 9 systems using Ansible with no multiple-choice questions.
- Exam Code: EX294 (Red Hat Certified Engineer)
- Duration: 4 hours of hands-on automation tasks
- Prerequisite: Current RHCSA certification required
- Validity: 3 years with recertification options
Why Choose PrepForCerts for RHCE
Ansible-Focused Content
Practice questions centered on playbooks, roles, modules, and Ansible best practices.
RHEL 9 Updated
Content aligned with the latest Red Hat Enterprise Linux 9 and Ansible Core.
Performance-Based Training
Scenario-based questions that mirror the hands-on format of the actual exam.
Detailed Explanations
Smart Practice explanations with correct YAML syntax and module documentation references.
RHCE Exam Topics & Skills
The RHCE exam (EX294) tests your ability to automate RHEL systems using Ansible. Here's what you need to master:
Ansible Core Concepts
Understand Ansible architecture and basic operations:
- Installing and configuring Ansible on control nodes
- Managing inventory files (static and dynamic)
- Configuring ansible.cfg for custom settings
- Running ad-hoc commands for quick tasks
Key Commands:
# Install Ansible
dnf install ansible-core
# Run ad-hoc command
ansible webservers -m ping
ansible all -m command -a "uptime"
# Check inventory
ansible-inventory --list
Playbook Development
Create and manage Ansible playbooks for automation:
- Writing YAML playbooks with proper syntax
- Using variables, facts, and registered variables
- Implementing conditionals with
whenstatements - Looping with
loop,with_items, andwith_dict - Error handling with
block,rescue, andalways
Example Playbook:
---
- name: Configure web servers
hosts: webservers
become: yes
vars:
http_port: 80
tasks:
- name: Install Apache
ansible.builtin.dnf:
name: httpd
state: present
- name: Start and enable httpd
ansible.builtin.service:
name: httpd
state: started
enabled: yes
- name: Open firewall port
ansible.posix.firewalld:
port: "{{ http_port }}/tcp"
permanent: yes
state: enabled
immediate: yes
Ansible Roles
Structure automation code using roles:
- Creating role directory structures with
ansible-galaxy init - Using tasks, handlers, templates, files, and vars directories
- Managing role dependencies in meta/main.yml
- Downloading roles from Ansible Galaxy
Templates and Jinja2
Create dynamic configuration files:
- Writing Jinja2 templates (.j2 files)
- Using variables and filters in templates
- Conditional logic within templates
- Iterating over lists and dictionaries
Example Template:
# /etc/httpd/conf/httpd.conf
Listen {{ http_port }}
ServerName {{ ansible_fqdn }}
{% for vhost in virtual_hosts %}
<VirtualHost *:{{ http_port }}>
ServerName {{ vhost.name }}
DocumentRoot {{ vhost.docroot }}
</VirtualHost>
{% endfor %}
Ansible Vault
Manage secrets securely:
- Encrypting files with
ansible-vault create/encrypt - Using encrypted variables in playbooks
- Managing vault passwords with password files
- Rekeying vaults for password rotation
Key Commands:
# Create encrypted file
ansible-vault create secrets.yml
# Edit encrypted file
ansible-vault edit secrets.yml
# Run playbook with vault
ansible-playbook site.yml --ask-vault-pass
ansible-playbook site.yml --vault-password-file=.vault_pass
RHEL System Roles
Use Red Hat's supported roles for common tasks:
- rhel-system-roles.network - Network configuration
- rhel-system-roles.timesync - NTP/Chrony configuration
- rhel-system-roles.storage - Disk and LVM management
- rhel-system-roles.selinux - SELinux configuration
- rhel-system-roles.firewall - Firewall management
Sample RHCE Practice Question
Question: You need to create an Ansible playbook that ensures the /data directory exists on all database servers, owned by user dbadmin with permissions 0750. The playbook should only run if the host has more than 8GB of RAM. Which task structure is correct?
View Answer & Explanation
Correct Answer: C) Use the file module with when: ansible_memtotal_mb > 8192
Explanation: The ansible.builtin.file module is the correct module for managing files and directories. The ansible_memtotal_mb fact provides total system memory in megabytes and is gathered automatically. 8GB = 8192MB, so the condition checks for systems with more than 8GB RAM. There is no directory or mkdir module in Ansible. Option A's ansible_memory_mb.real.total path is also valid but C uses the simpler, more common fact.
Correct Task:
- name: Create /data directory
ansible.builtin.file:
path: /data
state: directory
owner: dbadmin
mode: '0750'
when: ansible_memtotal_mb > 8192
RHCE vs. Other Linux Certifications
| Certification | Focus | Exam Format | Difficulty |
|---|---|---|---|
| RHCE | Ansible Automation | 4-hour performance-based | Advanced |
| RHCSA | RHEL Administration | 3-hour performance-based | Intermediate |
| Linux+ | Vendor-Neutral Linux | 90-min multiple-choice | Intermediate |
| LFCS | Linux Sysadmin | 2-hour performance-based | Intermediate |
RHCE Career Opportunities 2026
According to PrepForCerts analysis, RHCE certification opens doors to high-paying automation and DevOps roles:
- Senior Linux Engineer: $120,000 - $160,000
- DevOps Engineer: $130,000 - $175,000
- Automation Architect: $145,000 - $190,000
- Site Reliability Engineer: $140,000 - $185,000
- Platform Engineer: $135,000 - $180,000
Organizations across finance, healthcare, tech, and government seek RHCE-certified professionals to automate infrastructure at scale. The shift to Infrastructure as Code (IaC) has made Ansible skills essential for modern IT operations.
RHCE Study Tips
- Build a Lab: Practice with multiple RHEL 9 VMs—a control node and 2-3 managed hosts
- Type, Don't Copy: Write playbooks from scratch to build muscle memory
- Use ansible-doc: Get comfortable with
ansible-doc -landansible-doc modulename - Time Yourself: Practice completing tasks within time limits
- Master System Roles: Install and practice with rhel-system-roles package
Frequently Asked Questions
What is the RHCE exam format?
The RHCE exam (EX294) is a 4-hour performance-based test where you automate real tasks on live RHEL 9 systems using Ansible. There are no multiple-choice questions—only hands-on automation tasks that are graded based on actual results. You'll work with a control node and multiple managed hosts, writing playbooks to complete specific objectives.
Do I need RHCSA before taking RHCE?
Yes, Red Hat requires a current RHCSA certification before attempting RHCE. The RHCE builds upon RHCSA knowledge and assumes strong Linux system administration skills including package management, services, storage, and SELinux. You must pass EX200 (RHCSA) before scheduling EX294 (RHCE).
What Ansible topics are covered on RHCE?
The RHCE exam covers Ansible playbooks, roles, variables, facts, handlers, templates (Jinja2), Ansible Vault for secrets management, inventory management (static and dynamic), and using RHEL System Roles for common tasks like network configuration, time synchronization, and storage management.
How long is RHCE certification valid?
RHCE certification is valid for 3 years. You can recertify by passing the current RHCE exam, earning any higher-level Red Hat certification (like RHCA), or by taking and passing any combination of 3 Red Hat exams before your certification expires.
What is the RHCE passing score?
The passing score for RHCE is 70% (210 out of 300 points). Since it's a performance-based exam, you earn points by successfully completing each automation task on the live systems. Partial credit is awarded for partially completed tasks—focus on getting core functionality working even if edge cases aren't perfect.