EX294 Practice Questions
Prepare for EX294 with more than an answer.
- Exam fee
- $500 USD
- Time limit
- 240 minutes
- Passing score
- 210 out of 300 (70%) (scale 0-300)
- Level
- Professional
- Valid for
- 3 years
Domains covered on the exam 11
- Be able to perform all tasks expected of a Red Hat Certified System Administrator
- Understand core components of Ansible
- Configure Ansible
- Configure Ansible managed nodes
- Run playbooks
- Perform basic source control operations using Git
- Be familiar with Visual Studio Code (VS Code) and be able to perform the following tasks from within the editor:
- Create Ansible plays and playbooks
- Use roles and Ansible Content Collections
- Automate standard RHCSA tasks using Ansible modules that work with:
- Manage content
- 1
Review the inventory structure in the diagram below. If a variable
dns_serveris defined in theallgroup, and redefined with a different value in thewebserversgroup, which value will hostweb1use?graph TD all[all group] web[webservers group] db[dbservers group] web1[web1 host] web2[web2 host] all --> web all --> db web --> web1 web --> web2Show answer details
Correct answer: B
In Ansible variable precedence, more specific groups override parent groups. The
webserversgroup is a child ofall, so its variables override those inallfor its member hosts. - 2
In Ansible variable precedence, which of the following has the HIGHEST priority (will override all others)?
Show answer details
Correct answer: D
Extra variables (
-eor--extra-vars) always have the highest precedence and will override variables defined in inventory, playbooks, roles, or facts. - 3
You want to reference the IPv4 address of the default interface on a managed node using Ansible facts. The correct variable reference is:
{{ ansible_facts['_____']['ipv4']['address'] }}.Show answer details
Correct answer: D
The correct fact structure for the default IPv4 interface is
ansible_facts['default_ipv4']. So the blank should be filled withdefault_ipv4. - 4
A system administrator is writing a playbook to ensure a critical monitoring service, 'monitord', is not only started but also configured to launch automatically when the server reboots. The administrator uses the
ansible.builtin.servicemodule. Which combination of parameters ensures both requirements are met?Show answer details
Correct answer: C
The
state=startedparameter ensures the service is currently running. Theenabled=yes(orenabled=true) parameter ensures the service is enabled in systemd to start at boot time. 'persistent' is not a valid parameter, and 'running' is not the standard state value (though 'started' is preferred). - 5
You are automating the configuration of Logical Volume Management (LVM) on a new RHEL 9 server. You need to expand an existing volume group 'vg_data' by adding a new physical volume
/dev/sdb1. Which Ansible module is specifically designed to manage the properties and physical volumes of a volume group?Show answer details
Correct answer: B
The
community.general.lvgmodule is used to configure volume groups, including adding or removing physical volumes (pvs). Thelvolmodule is for logical volumes, andfilesystemis for formatting. - 6
A playbook copies a custom HTML file to
/var/www/html/index.htmlon a web server, but Apache returns a 403 Forbidden error when trying to access it. The file permissions are correct (644). What is the most likely cause and the appropriate Ansible module to fix it permanently?Show answer details
Correct answer: B
If permissions are correct but a 403 occurs on RHEL, it is often an SELinux context mismatch. The file likely has
admin_home_tordefault_tinstead ofhttpd_sys_content_t. Thesefcontextmodule updates the policy, and a restore trigger applies it.
