Red Hat Certified Specialist in Ansible Automation Practice Test

224 questions available

Build your confidence for Red Hat Certified Specialist in Ansible Automation. Practice the concepts, understand the answers, and strengthen your knowledge one question at a time.

Try a sample question
Try 5 free questions
No account needed. A free account includes 20 questions for this exam.
224 Practice questions
3 hours 44 minutes Practice Time
Try 5 free questions
No account needed. A free account includes 20 questions for this exam.
The bank 224 Practice questions checked against the official objectives.
Red Hat224 practice questionsBank updated 2026-07-24

Exam overview and details

Red Hat Ansible certification covering playbook development, roles, variables, templates, inventory management, and automation with Ansible for system administration. Administered by Red Hat. Key domains include Automate Standard RHCSA Tasks with Ansible, Configure Ansible and Managed Nodes, Core Ansible Components and Create Ansible Plays and Playbooks.

Sample Questions

Choose an answer and explore the explanation to see how practice works.

Ansible Roles and Includes
Scenario

Web Server Hardening You are tasked with creating an Ansible role named `apache_hardening` to configure a secure Apache web server on RHEL 9 systems. The role must ensure the service runs under a dedicated user/group, uses a specific document root with strict permissions, and has a custom listening port defined by a variable. The role structure should follow Red Hat Ansible best practices for reusability and clarity.

Which of the following actions are essential when creating this role to adhere to Red Hat Ansible best practices for role structure and design? (Select TWO.)

Loops and Conditionals

How do you change the loop variable name from `item` to `pkg`?

Playbook Authoring

Which two keys identify the target hosts and the privilege escalation user for a play?

Roles and Collections

What is the difference between `import_role` and `include_role`?

Privilege Escalation

Which value of `become_method` does Ansible default to on Linux?

Career Opportunities & Salary

Median salary: $99,130– Network and Computer Systems Administrators

Source: BLS Occupational Employment and Wage Statistics, May 2025 -- Network and Computer Systems Administrators (SOC 15-1244), US national. Occupation median, not a certification salary. (2025)

Network and Computer Systems Administrators

Exam insights and study advice

In the real world, manual system configuration is error-prone, slow, and impossible to scale across modern hybrid cloud environments. This certification matters because it proves you can solve these operational challenges. The ability to codify infrastructure and application deployments translates directly into increased reliability, faster time-to-market, consistent compliance, and more efficient use of engineering resources. It moves you from performing repetitive tasks to designing and managing automated solutions, which is a critical skillset for any organization adopting DevOps practices or pursuing digital transformation.

What this exam covers

01Automate Standard RHCSA Tasks with Ansible

Topics

  • Software packages and repositories
  • Services and firewall rules
  • File systems and storage devices
  • Security, users, and groups

Learning objectives

  • Software packages and repositories
  • Services and firewall rules
  • File systems and storage devices
  • Security, users, and groups

02Configure Ansible and Managed Nodes

Topics

  • Create and modify ansible.cfg
  • Create static host inventory files and groups
  • Configure privilege escalation
  • Create and distribute SSH keys

Learning objectives

  • Create and modify ansible.cfg
  • Create static host inventory files and groups
  • Configure privilege escalation
  • Create and distribute SSH keys

03Core Ansible Components

Topics

  • Inventories, modules, variables, and facts
  • Loops, conditional tasks, and plays
  • Handling task failure
  • Playbooks, configuration files, and roles

Learning objectives

  • Inventories, modules, variables, and facts
  • Loops, conditional tasks, and plays
  • Handling task failure
  • Playbooks, configuration files, and roles

04Create Ansible Plays and Playbooks

Topics

  • Use commonly-used Ansible modules
  • Use variables to retrieve command results
  • Use conditionals to control execution
  • Configure error handling

Learning objectives

  • Use commonly-used Ansible modules
  • Use variables to retrieve command results
  • Use conditionals to control execution
  • Configure error handling

05Manage Content with Templates and Vault

Topics

  • Create and use templates for configuration files
  • Use Ansible Vault to protect sensitive data

Learning objectives

  • Create and use templates for configuration files
  • Use Ansible Vault to protect sensitive data

06RHCSA Prerequisite Tasks

Topics

  • Essential tools and running systems
  • Local storage and file system configuration
  • User and group management
  • Security management

Learning objectives

  • Essential tools and running systems
  • Local storage and file system configuration
  • User and group management
  • Security management

07Run Playbooks and Use Development Tools

Topics

  • Run playbooks with ansible-navigator and ansible-playbook
  • Find and use modules from Content Collections
  • Basic Git operations

Learning objectives

  • Run playbooks with ansible-navigator and ansible-playbook
  • Find and use modules from Content Collections
  • Basic Git operations

08Use Roles and Ansible Content Collections

Topics

  • Create and work with roles
  • Install roles and use them in playbooks
  • Install and use Content Collections

Learning objectives

  • Create and work with roles
  • Install roles and use them in playbooks
  • Install and use Content Collections

Exam Details RH-EX294

Exam Code RH-EX294
Vendor Red Hat

Frequently Asked Questions

Is prior programming experience required to pass this exam?

How is the exam administered, and what should I expect?

What is the single most important skill to focus on?

Can I use external documentation or the internet during the exam?

How does this certification differ from the Red Hat Certified Engineer (RHCE) exam?