Free Red Hat Certified Engineer (RHCE)Practice Test
Test your knowledge with 20 free practice questions for the EX294 exam. Get instant feedback and see if you are ready for the real exam.
Test Overview
Free Practice Questions
Try these Red Hat Certified Engineer (RHCE) sample questions for free - no signup required
You need to configure Ansible to use a specific inventory file located at /home/ansible/inventory and disable host key checking for all playbook runs. Which configuration file setting is the most appropriate location for these settings?
When managing multiple environments (development, staging, production) with Ansible, what is the recommended approach for organizing inventory files?
What is the default module used by Ansible when no module is specified in an ad-hoc command?
You are setting up managed nodes for Ansible automation. Several RHEL 8 servers need to be configured to allow a non-root user 'ansible' to execute privileged tasks. What is the minimum configuration required on the managed nodes?
You need to configure SSH key-based authentication from the Ansible control node to 50 managed nodes. Which approach is most efficient and follows best practices?
On managed nodes, which Python version requirement must be met for Ansible to function properly on RHEL 8 systems?
You are troubleshooting connectivity issues between the Ansible control node and managed nodes. Which ad-hoc command should you use to verify basic connectivity and Python availability?
You need to configure privilege escalation for specific managed nodes that require different sudo passwords. Where should you configure the ansible_become_password variable?
You are writing a playbook to install and configure a web server. The playbook should install httpd, start the service, and deploy a configuration file only if the package installation changes. What is the correct approach?
Which loop construct should you use to iterate over a list of dictionaries where each dictionary contains package name and state information?
You need to run a playbook that only executes tasks on web servers located in the US datacenter. Your inventory has groups named 'webservers' and 'us_datacenter'. What is the correct pattern to target these hosts?
In a playbook, you need to capture the output of a command and use it in subsequent tasks only if the command succeeded. What is the correct approach?
You are writing a playbook that needs to fail if a specific condition is not met, but the task itself would normally succeed. Which task parameter should you use?
What is the correct directory structure for an Ansible role named 'webserver' that includes tasks, handlers, templates, and variables?
You need to use a role called 'apache' in your playbook and override its default variable 'apache_port' from 80 to 8080. What is the correct syntax?
When creating a role, you need to define role dependencies that should be executed before your role runs. Where should these dependencies be defined?
You have created a role and want to test it in isolation before integrating it into your playbooks. What is the recommended approach?
You need to create an encrypted file to store database passwords using Ansible Vault. What is the correct command to create this file with encryption?
Your playbook uses multiple vault-encrypted files, each encrypted with different vault passwords (vault IDs: dev, prod). How do you run the playbook with the appropriate vault passwords?
You need to install a role from Ansible Galaxy into a custom directory for your project rather than the default system location. What is the correct approach?
Want more practice?
Access the full practice exam with detailed explanations
Ready for More Practice?
Access our full practice exam with 500+ questions, detailed explanations, and performance tracking to ensure you pass the Red Hat Certified Engineer (RHCE) exam.