EX294 Sample Questions & Answers
Most of the questions target Ansible's core components tied with writing plays and playbooks, plus RHCSA foundation skills, automating standard tasks, running playbooks with ansible-navigator, Git integration through VS Code, and configuring managed nodes.
Launch the full EX294 simulator →Free EX294 Sample Questions with Answers
Real questions from the Red Hat Certified Engineer (RHCE) exam practice test — answers and explanations included. Showing 6 of 12 free samples.
- Question 1Intermediate
RHCSA Foundation Skills · Manage security
True or False: When using the
ansible.posix.firewalldmodule to open a port, specifyingpermanent: yescreates a persistent rule but does not immediately apply it to the running configuration unlessimmediate: yesis also specified.Show answer & explanation
Correct answer: A
This is true. The
permanent: yesoption modifies the on-disk configuration. To affect the runtime state without a reload,immediate: yesmust be used. - Question 2Beginner
RHCSA Foundation Skills · Manage users and groups
You need to create a user 'deployer' with a specific User ID (UID) of 2005 and ensure they are added to the 'wheel' group for administrative access. Which task definition achieves this?
Show answer & explanation
Correct answer: A
This task uses the correct
uidparameter and adds the user to the 'wheel' group.append: yesis best practice to avoid removing the user from other groups. - Question 3Beginner
Visual Studio Code and Git Integration · Create playbooks and push them to a GIT repository
You are using Visual Studio Code to develop Ansible playbooks. You have made changes to
site.ymland need to commit these changes to your local Git repository. Using the VS Code interface or terminal, what is the correct sequence of Git operations?Show answer & explanation
Correct answer: B
In Git, you must first stage the modified files (
git add), then commit them to the local history (git commit), and finally push them to the remote repository (git push). VS Code follows this same logical flow in its Source Control panel. - Question 4Intermediate
Visual Studio Code and Git Integration · Configure ansible-navigator
You are configuring the Ansible VS Code extension to run playbooks within a containerized environment. Which configuration file in your project root tells the extension and
ansible-navigatorwhich Execution Environment image to use?Show answer & explanation
Correct answer: B
ansible-navigator.ymlis the configuration file where you define theexecution-environmentsettings, including theimagename andpull-policy. VS Code's Ansible extension can utilize these settings. - Question 5Advanced
Visual Studio Code and Git Integration · Clone a GIT repository
Scenario: You are working on a shared project in VS Code. You attempt to push your committed changes to the remote repository, but the push fails with a message indicating that the remote contains work that you do not have locally. What is the correct workflow to resolve this in VS Code?
Show answer & explanation
Correct answer: C
This is the standard Git reconciliation workflow. You must integrate remote changes (Pull) before you can append your new commits (Push). VS Code provides a 'Sync Changes' button that handles this sequence.
- Question 6BeginnerSelect 2
Visual Studio Code and Git Integration · Run playbooks using an Ansible development container
Which of the following are benefits of using the official Red Hat Ansible extension in Visual Studio Code? (Select TWO)
Show answer & explanation
Correct answers: A, C
Syntax highlighting and real-time validation (linting) are core features.
The extension integrates with ansible-navigator to run playbooks from the command palette or context menu.
Ready for the real thing?
The full EX294 simulator has every exam-style question, timed mode, and instant scoring.