RHCE practice.
Build confidence.
Build your Linux automation knowledge with focused practice. Review each explanation, revisit weak spots, and prepare with purpose.
Published by PrepForCerts · Editorial responsibility and sources
Free RHCE Practice Test 2026
Master Ansible automation for the Red Hat Certified Engineer exam—practice questions to support hands-on EX294 preparation
RHCE: plan your preparation
Master advanced Red Hat Enterprise Linux skills with RHCE practice questions covering Ansible automation, system configuration, and enterprise management.
The Red Hat Certified Engineer (RHCE) certification demonstrates advanced Linux system administration and automation skills using Ansible. RHCE builds upon RHCSA knowledge and focuses on automating Linux system administration tasks, managing system configurations at scale, and implementing infrastructure as code practices. This professional-level certification validates your ability to use Ansible for configuration management, deployment automation, and orchestration across multiple Red Hat Enterprise Linux systems. RHCE professionals are skilled in creating Ansible playbooks, managing inventories, using Ansible modules, and implementing automation best practices. Our practice questions cover Ansible fundamentals, playbook development, system configuration automation, and troubleshooting automated deployments in enterprise environments.
Exam version and format
Red Hat now lists EX294 as the Advanced System Administrator in Ansible exam. Combined with RHCSA, it counts toward RHCE in Ansible. Check the offered product version when booking. The knowledge questions below supplement hands-on playbook practice.
Checked September 8, 2026. Read the official RHCE exam guidance before booking.
Quick Facts: RHCE Certification 2026
The Red Hat Certified Engineer (RHCE) is an advanced Linux certification focused on Ansible automation and enterprise system administration. The exam is entirely performance-based—you automate real RHEL systems matching your booked exam version 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.
Ansible Practice
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
Career paths to explore: RHCE skills can support preparation for automation and DevOps roles:
- Senior Linux Engineer: varies by role, location, and experience
- DevOps Engineer: varies by role, location, and experience
- Automation Architect: varies by role, location, and experience
- Site Reliability Engineer: varies by role, location, and experience
- Platform Engineer: varies by role, location, and experience
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 VMs matching your booked exam version—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
Who should study RHCE?
- RHCSA-certified administrators ready to advance into automation and configuration management roles
- DevOps engineers and SREs who use Ansible for infrastructure automation and want formal certification
- Linux system administrators managing multiple RHEL servers who need to implement automation at scale
- Infrastructure engineers transitioning to Infrastructure as Code practices using Ansible
- IT professionals seeking Red Hat's professional-level certification as a stepping stone to RHCA (Red Hat Certified Architect)
Build your RHCE study plan
- Master Ansible playbook syntax — practice writing playbooks from scratch without copying from examples until the YAML structure becomes natural.
- Build a multi-VM lab environment (3-4 VMs minimum) to practice managing multiple hosts, inventory groups, and role-based automation.
- Learn to create custom Ansible roles with proper directory structure (tasks, handlers, templates, vars, defaults, files) — roles are heavily tested.
- Practice writing Jinja2 templates for configuration files — templates with variables, loops, and conditionals are commonly required exam tasks.
- Time yourself during practice sessions — the RHCE exam is 4 hours and you need to complete multiple complex automation tasks efficiently.
Skills to review
- Perform Basic System Administration
- Complete RHCSA-level tasks as a foundation for advanced topics including system configuration and management.
- Ansible Automation Fundamentals
- Install and configure Ansible, manage inventories, use ad-hoc commands, and understand Ansible architecture.
- Create Ansible Plays and Playbooks
- Write playbooks with multiple plays, use variables, loops, conditionals, handlers, and error handling.
- Ansible Roles and Ansible Galaxy
- Create and use roles, install roles from Ansible Galaxy, and structure automation projects with role-based architecture.
- Manage Systems with Ansible
- Manage users, schedule tasks, configure services, manage storage, and implement security using Ansible modules.
Try these RHCE knowledge questions
Choose your answer, then review the explanation. These are independent learning examples, not official exam questions or a replacement for hands-on labs.
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 systems matching your booked exam version 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?
RHCSA is required to earn RHCE in Ansible. EX294 currently awards the Advanced System Administrator in Ansible credential and counts toward RHCE in Ansible. Distinguish earning the RHCE credential from the prerequisites for booking an individual exam. Build the underlying RHCSA skills in package management, services, storage, and SELinux before moving into automation.
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?
Red Hat certifications generally remain current for 3 years. Check the current Certification Program Guide for renewal routes that apply to your credential; do not assume any combination of three exams is sufficient.
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. Verify each task against the requested end state and the current exam instructions. Do not assume that a partly working configuration will earn credit.
What's the career progression after RHCE?
After RHCE, you can pursue specialized certifications like Red Hat Certified Architect (RHCA), OpenShift certifications, or other advanced Red Hat technologies based on your career goals and interests.
Do I need an account to use these samples?
You can read these examples without an account. Create an account to save progress in Smart Practice. The Free plan includes 15 questions per day; see Pricing for current plan features.
Can I study RHCE on my phone?
This page works on a phone, tablet, or computer. Review the examples between longer study sessions. Use a suitable lab environment for hands-on configuration and troubleshooting.
How much Ansible experience helps before EX294?
Practice writing playbooks, using modules, and troubleshooting automation on multiple hosts. Red Hat’s RH294 course is a preparation option. Comparable hands-on Ansible experience can also prepare you; check the current course and exam objectives before booking.