EX294 · topic practice

Implement advanced Ansible automation practice questions

Practise Red Hat Certified Engineer EX294 Implement advanced Ansible automation practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Implement advanced Ansible automation

What the exam tests

What to know about Implement advanced Ansible automation

Implement advanced Ansible automation questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Implement advanced Ansible automation exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Implement advanced Ansible automation questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full Ansible explanation →

An Ansible playbook fails intermittently when deploying web servers. The error message indicates that a required package is not available in the repository. Which approach would best ensure that the required packages are consistently available before the playbook runs?

Question 2easymultiple choice
Read the full Ansible explanation →

An administrator wants to reuse a set of tasks that configure a firewall across multiple playbooks. Which Ansible feature should be used to achieve this?

Question 3hardmultiple choice
Read the full Ansible explanation →

A playbook uses the 'include_tasks' module to dynamically include tasks based on a variable. The playbook runs successfully on some hosts but fails on others with a 'template error' message. What is the most likely cause?

Question 4easymultiple choice
Read the full Ansible explanation →

An Ansible playbook is designed to run on a group of database servers. The administrator wants to ensure that a task runs only on the primary database server, which is defined in the inventory with a variable 'primary: true'. Which conditional should be used?

Question 5mediummultiple choice
Read the full Ansible explanation →

A playbook uses the 'block' and 'rescue' keywords to handle errors. The block contains three tasks. The first task fails. What happens next?

Question 6hardmultiple choice
Read the full Ansible explanation →

An administrator needs to securely pass a database password to a playbook without exposing it in logs or the command line. Which approach is the most secure?

Question 7easymultiple choice
Read the full Ansible explanation →

A system administrator wants to run a playbook on all hosts in the 'webservers' group, but only if the host is currently online. Which approach should be used?

Question 8mediummultiple choice
Read the full Ansible explanation →

An Ansible playbook includes a role that defines default variables in 'defaults/main.yml' and role variables in 'vars/main.yml'. A playbook sets the same variable in the play's 'vars' section. Which variable value takes precedence?

Question 9mediummulti select
Read the full Ansible explanation →

Which TWO statements about Ansible collections are correct?

Question 10hardmulti select
Read the full Ansible explanation →

Which THREE of the following are valid uses of the 'ansible.builtin.include_role' module?

Question 11easymulti select
Read the full Ansible explanation →

Which TWO of the following are advantages of using 'ansible-pull' over 'ansible-playbook'?

Question 12hardmultiple choice
Read the full Ansible explanation →

You are managing a large infrastructure of 500 Linux servers. The servers are divided into groups: 'web', 'app', and 'db'. Each group has specific configuration requirements. You have developed a set of Ansible roles to manage these configurations. Recently, you noticed that when you run the playbook against all servers, the 'web' role is applied to 'app' servers due to a variable misconfiguration. The playbook uses include_role with a variable that determines which role to apply. The variable is defined in group_vars/all.yml as 'server_role: web'. However, each group should have its own role: 'web' for web servers, 'app' for app servers, 'db' for db servers. The playbook includes the role based on '{{ server_role }}'. What is the best course of action to fix this issue without modifying the playbook structure?

Question 13mediummultiple choice
Read the full Ansible explanation →

You have an Ansible playbook that uses the 'lineinfile' module to manage the /etc/ssh/sshd_config file. The playbook runs without errors, but after execution, the SSH service becomes unreachable on some hosts. Investigation reveals that the file contains duplicate lines for 'Port 22' and 'PermitRootLogin no'. The playbook uses the following task:

- name: Ensure SSH settings ansible.builtin.lineinfile: path: /etc/ssh/sshd_config regexp: "^{{ item.key }}" line: "{{ item.key }} {{ item.value }}" loop: - { key: 'Port', value: '22' } - { key: 'PermitRootLogin', value: 'no' }

The playbook is run multiple times. What is the most likely cause of the duplicate lines?

Question 14mediummultiple choice
Read the full Ansible explanation →

An Ansible automation team is designing a playbook to manage network devices. They need to ensure that the playbook can handle transient network failures by retrying failed tasks a specific number of times with a delay between retries. Which approach should they use?

Question 15hardmultiple choice
Read the full Ansible explanation →

An Ansible playbook that deploys a web application includes a task that uses the `uri` module to call an external API. The task occasionally fails due to API rate limiting. Which combination of keywords should be added to the task to automatically retry up to 5 times with a 30-second delay between attempts, and only fail if all retries are exhausted?

Question 16easymultiple choice
Read the full Ansible explanation →

A systems administrator needs to run a playbook that applies configuration changes to a set of servers. They want to ensure that if any task fails on a host, the playbook continues with the next host without aborting the entire play. Which play-level keyword should they use?

Question 17hardmultiple choice
Read the full Ansible explanation →

An Ansible automation engineer is developing a role that manages a microservice. The role needs to include conditional tasks based on whether a variable `microservice_version` is defined. If defined, it should use that version; otherwise, it should default to `latest`. Which of the following is the most efficient and idiomatic way to implement this default value within the role?

Question 18mediummulti select
Read the full Ansible explanation →

Which TWO statements about Ansible roles are correct? (Select exactly 2)

Question 19hardmultiple choice
Read the full Ansible explanation →

Your team is responsible for managing a fleet of 200 RHEL 8 servers using Ansible Tower. You have been asked to implement a secure automation workflow that meets the following requirements:

1. All playbooks must be stored in a private Git repository hosted on an internal GitLab server. 2. Credentials to access the Git repository must be stored securely in Ansible Tower. 3. The automation must run on a schedule every night at 2:00 AM. 4. If a playbook run fails, the team must be notified via email. 5. The playbooks require SSH private keys to connect to the managed hosts; these keys must be stored securely. 6. A development team needs to be able to launch the same job template manually, but they must not be able to modify the job template or view the credentials.

You have created a Machine Credential for SSH and a Source Control Credential for Git. You have also created a Job Template that references the project, inventory, and credentials. What is the correct sequence of steps to satisfy all requirements?

Question 20mediummultiple choice
Read the full Ansible explanation →

An engineer runs the playbook as shown. What is the expected result?

Network Topology
start-at-task 'configure firewall'stepRefer to the exhibit.PLAY [Production servers] *******************************TASK [Gathering Facts] *********************************************************ok: [prod01]TASK [configure firewall] ******************************************************Perform task? (y/n/c): ychanged: [prod01]TASK [enable service] **********************************************************Perform task? (y/n/c): nTASK [start service] ***********************************************************Perform task? (y/n/c): cPLAY RECAP *********************************************************************prod01ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Implement advanced Ansible automation sessions

Start a Implement advanced Ansible automation only practice session

Every question in these sessions is drawn from the Implement advanced Ansible automation domain — nothing else.

Related practice questions

Related EX294 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the EX294 exam test about Implement advanced Ansible automation?
Implement advanced Ansible automation questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Implement advanced Ansible automation questions in a focused session?
Yes — the session launcher on this page draws every question from the Implement advanced Ansible automation domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other EX294 topics?
Use the topic links above to move to related areas, or go back to the EX294 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the EX294 exam covers. They are not copied from any real exam or dump site.