Red Hat Certified Specialist in Ansible Automation Practice Test
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 questionExam 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.
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.)
How do you change the loop variable name from `item` to `pkg`?
Which two keys identify the target hosts and the privilege escalation user for a play?
What is the difference between `import_role` and `include_role`?
Which value of `become_method` does Ansible default to on Linux?
Career Opportunities & Salary
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