Instant Download: Upon successful payment, Our systems will automatically send the product you have purchased to your mailbox by email. (If not received within 12 hours, please contact us. Note: don't forget to check your spam.)
Instant Download RedHat : EX407 Questions & Answers as PDF & Test Engine
- Exam Code: EX407
- Exam Name: Red Hat Certified Specialist in Ansible Automation Exam
- Updated: Nov 19, 2026
- No. of Questions: 42 Questions and Answers
- Download Limit: Unlimited
In 2026, the difference between preparing and hoping is a measurable tool. Lead2Passed provides it for the EX407 exam: 42 practice questions plus engines that record exactly how your readiness grows.
RedHat EX407 Exam Syllabus Topics:
| Section | Objectives |
|---|---|
| Configuration & Deployment | - Ad-hoc Automation
|
| Ansible Automation Core Skills | - Inventory Management
|
| Roles & Reusability | - Roles Development
|
| Automation Tasks Execution | - Running Playbooks
|
Frequently Asked Questions: RedHat Red Hat Certified Specialist in Ansible Automation Exam
Scoring and fees are published by RedHat and may change; verify the current figures on the official site.
RedHat recommends these training resources for the RedHat Red Hat Certified Specialist in Ansible Automation exam:
Follow the training with steady self-testing — the 42 practice questions from Lead2Passed help you apply theory and fill any gaps the training leaves.
The EX407 exam is a RedHat certification exam validating the RedHat Red Hat Certified Specialist in Ansible Automation syllabus shown above. It belongs to these credential paths: Red Hat Certified System Administrator (RHCSA), Red Hat Certified Engineer in Ansible (RHCE via EX294), Red Hat Certified Architect (RHCA). Candidates in 2026 prepare for it with Lead2Passed's 42 practice questions, available as a printable PDF, a Windows Desktop Test Engine, and an Online Test Engine — three versions of the same materials.
Lead2Passed issues a full refund if you take the RedHat Red Hat Certified Specialist in Ansible Automation exam within 60 days of purchase and do not pass. The policy does not apply if the exam is taken within 3 days of purchase, if the exam was never actually taken, or to free materials or expired orders, and the candidate name must match the payer name. Submit a scan of your enrollment slip and the official Score Report PDF within 2 days of the exam; claims are processed within 7 days. Alternatively, exchange for two free exam products of equal value and keep your original update service. Orders arrive by email within 1 minute — contact support if nothing arrives within 2 hours.
Onsite at a Red Hat Testing Center or Remote proctored practical exam (performance-based). :contentReference[oaicite:2]{index=2} Register for the RedHat Red Hat Certified Specialist in Ansible Automation exam through these official channels:
After booking, Lead2Passed delivers your practice questions within 1 minute — preparation starts the same day.
The official RedHat page publishes the current question count and duration; review it before your test date.
The official RedHat Red Hat Certified Specialist in Ansible Automation outline defines 4 domains. The leading three are Roles & Reusability, Configuration & Deployment, and Automation Tasks Execution. The full list is in the topics section above, and Lead2Passed's 42 practice questions cover each one.
Three versions of the same study materials: a printable, expert-prepared PDF with free demo download and instant access; a Desktop Test Engine for Windows that simulates the real exam with two practice modes and works offline; and an Online Test Engine for any browser on Windows, Mac, Android, and iOS with test history and performance review. All 42 practice questions are identical across versions. Every purchase includes 365 days of free updates — whenever a new version is compiled, it is sent to you automatically — plus a 50% renewal discount afterward and unlimited computer installations.
Red Hat recommends experience with Ansible Automation Platform and administration on Red Hat Enterprise Linux. RHCSA or equivalent experience is suggested but not required. Automation with Ansible (DO407) training is recommended. :contentReference[oaicite:1]{index=1} Since requirements change over time, confirm the latest on the official RedHat exam page before scheduling.
RedHat Red Hat Certified Specialist in Ansible Automation Sample Questions:
===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
- username:root, password:redhat
- username:admin, password:redhat
note1. don't change 'root' or 'admin' password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Create an Ansible vault to store user passwords as follows:
* The name of the vault is valut.yml
* The vault contains two variables as follows:
- dev_pass with value wakennym
- mgr_pass with value rocky
* The password to encrypt and decrypt the vault is atenorth
* The password is stored in the file /home/admin/ansible/password.txt
Correct Answer:
Solution as:
# pwd
/home/admin/ansible
# echo "atenorth" >password.txt
# chmod 0600 password.txt
# ansible-vault create vault.yml --vault-password-file=password.txt
---
- dev_pass: wakennym
- mgr_pass: rocky
:wq
# cat vault.yml
$ANSIBLE_VAULT;1.1;AES256
36383862376164316436353665343765643331393433373564613762666531313034336438353662
3464346331346461306337633632393563643531376139610a343531326130663266613533633562
38623439316631306463623761343939373263333134353264333834353264343934373765643737
3535303630626666370a643663366634383863393338616661666632353139306436316430616334
65386134393363643133363738656130636532346431376265613066326162643437643064313863
6633333537303334333437646163343666666132316639376531
# ansible-vault view vault.yml
password:******
---
- dev_pass: wakennym
- mgr_pass: rocky
Create a file called requirements.yml in /home/sandy/ansible/roles to install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in /home/sandy/ansible/roles.
Reveal Solution Discussion 0Correct Answer:
in /home/sandy/ansible/roles
vim requirements.yml
Run the requirements file from the roles directory:
ansible-galaxy install -r requirements.yml -p /home/sandy/ansible/roles
Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following: The playbook should replaee any existing content of/etc/motd in the following text. Use ansible facts to display the FQDN of each host
On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".
On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".
On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".
Correct Answer:
/home/sandy/ansible/apache.yml
/home/sandy/ansible/roles/sample-apache/tasks/main.yml
===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
- username:root, password:redhat
- username:admin, password:redhat
note1. don't change 'root' or 'admin' password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Modify file content.
------------------------
Create a playbook called /home/admin/ansible/modify.yml as follows:
* The playbook runs on all inventory hosts
* The playbook replaces the contents of /etc/issue with a single line of text as
follows:
--> On hosts in the dev host group, the line reads: "Development"
--> On hosts in the test host group, the line reads: "Test"
--> On hosts in the prod host group, the line reads: "Production"
Correct Answer:
Solution as:
# pwd
/home/admin/ansible
# vim modify.yml
---
- name:
hosts: all
tasks:
- name:
copy:
content: "Development"
dest: /etc/issue
when: inventory_hostname in groups['dev']
- name:
copy:
content: "Test"
dest: /etc/issue
when: inventory_hostname in groups['test']
- name:
copy:
content: "Production"
dest: /etc/issue
when: inventory_hostname in groups['prod']
:wq
# ansible-playbook modify.yml --syntax-check
# ansible-playbook modify.yml
===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
- username:root, password:redhat
- username:admin, password:redhat
note1. don't change 'root' or 'admin' password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Create a role called apache in "/home/admin/ansible/roles" with the following
requirements:
--> The httpd package is installed, enabled on boot, and started.
--> The firewall is enabled and running with a rule to allow access to the web server.
--> template file index.html.j2 is used to create the file /var/www/html/index.html
with the output:
Welcome to HOSTNAME on IPADDRESS
--> Where HOSTNAME is the fqdn of the managed node and IPADDRESS is the IP-Address of
the managed node.
note: you have to create index.html.j2 file.
--> Create a playbook called httpd.yml that uses this role and the playbook runs on
hosts in the webservers host group.
Correct Answer:
Solution as:
----------
# pwd
/home/admin/ansible/roles/
# ansible-galaxy init apache
# vim apache/vars/main.yml
---
# vars file for apache
http_pkg: httpd
firewall_pkg: firewalld
http_srv: httpd
firewall_srv: firewalld
rule: http
webpage: /var/www/html/index.html
template: index.html.j2
:wq!
# vim apache/tasks/package.yml
---
- name: Installing packages
yum:
name:
- "{{http_pkg}}"
- "{{firewall_pkg}}"
state: latest
:wq!
# vim apache/tasks/service.yml
---
- name: start and enable http service
service:
name: "{{http_srv}}"
enabled: true
state: started
- name: start and enable firewall service
service:
name: "{{firewall_srv}}"
enabled: true
state: started
:wq!
# vim apache/tasks/firewall.yml
---
- name: Adding http service to firewall
firewalld:
service: "{{rule}}"
state: enabled
permanent: true
immediate: true
:wq!
# vim apache/tasks/webpage.yml
---
- name: creating template file
template:
src: "{{template}}"
dest: "{{webpage}}"
notify: restart_httpd
!wq
# vim apache/tasks/main.yml
# tasks file for apache
- import_tasks: package.yml
- import_tasks: service.yml
- import_tasks: firewall.yml
- import_tasks: webpage.yml
:wq!
# vim apache/templates/index.html.j2
Welcome to {{ ansible_facts.fqdn }} on {{ ansible_facts.default_ipv4.address }}
# vim apache/handlers/main.yml
---
# handlers file for apache
- name: restart_httpd
service:
name: httpd
state: restarted
:wq!
# cd ..
# pwd
/home/admin/ansible/
# vim httpd.yml
---
- name: Including apache role
hosts: webservers
pre_tasks:
- name: pretask message
debug:
msg: 'Ensure webserver configuration'
roles:
- ./roles/apache
post_tasks:
- name: Check webserver
uri:
url: "http://{{ ansible_facts.default_ipv4.address }}"
return_content: yes
status_code: 200
:wq!
# ansible-playbook httpd.yml --syntax-check
# ansible-playbook httpd.yml
# curl http://serverx
Viewing page 1 out of 9 pages.
Viewing questions 1-5 out of 42 questions.
100% Money Back Guarantee
Lead2Passed has an unprecedented 99.6% first time pass rate among our customers.
We're so confident of our products that we provide no hassle product exchange.
- Best exam practice material
- Three formats are optional
- 10 years of excellence
- 365 Days Free Updates
- Learn anywhere, anytime
- 100% Safe shopping experience
Over 52369+ Satisfied Customers

1537 Customer ReviewsCustomers Feedback (* Some similar or old comments have been hidden.)
The EX407 exam questions and answers 2018 are available for download. Just click on the link shown and you will be guided on how to download them and you will pass the exam with them! I have passed mine the day before yesterday!
I passed EX407 exam this time and have scored high marks. Really thank you for help me.
I have passed EX407 with your study materials. Thank you for the great work.
I highly suggest the exam testing engine by Lead2Passed. It helped me pass my EX407 exam with marks. Great feature Lead2Passed, keep up the good work.
I got 97% marks in the EX407 certification exam. Thanks to the best pdf exam guide by Lead2Passed. Made my concepts about the exam very clear.
I was cheated by several fake websites, so when i found Lead2Passed which is a real and wonderful study materials website, i am so excited! And i passed my EX407 exam as well.
Hey guys, i wanna share with good news. Almost all the questions from EX407 exam dumps are in real exam. I passed the exam easily! Good luck!
Amazing good quality! Nothing can be better to find the best vendor in this career. I bought from Lead2Passed, and they gave me the right exam Q&A that I need.
I passed my certified EX407 exam today. Studied for a week with sample exam answers and got 95% marks. Thank you Lead2Passed for preparing me so well.
Just know I pass, happy happy happy. Recommendation!!! The EX407practice test is very useful for me. I fail once. This time I buy the SOFT file, I feel easy to pass. Wonderful!
Excellent EX407 training material I found as far.
I want the latest EX407 exam questions! And i found them on your website-Lead2Passed. These EX407 exam questions guided me to pass the exam. Thank you!
Highly appreciated to this wonderful set of EX407 exam questions! I passed the exam without difficulty. Every question worked well for me! Thanks a lot!
Guess what guys? I passed my EX407 exam and i am so over the moon with myself! Thanks Lead2Passed!
This study guide helped me get ready for my exam and it is worth the price, I would recommend this to anyone.
Your EX407 study materials helped me a lot in my EX407 exam. Couldn't believe I can pass it so easily. You did a good job! Thanks a million, Lead2Passed!
Hello, just passed EX407 exam.Hey Team, I got your Red Hat Certified Specialist
If you buy this dumps, you do not worry about the exam completely. Part of the dumps are same with real exam. exciting.
i finally sat for my EX407 exam and just as expected i passed highly! Thank you, and i love your exam dumps, they are just so valid!
When I prepared for EX407 exam a few months back, I tried many other exam products, but I found your products to be the best.
EX407 exam dump really worked and I got same real exam questions in the actual exam which I have been provided by Lead2Passed.
Just give a try to this product after I encounter their website, what made me really happy is that EX407 practice test helped me to pass the exam. Almost 90% valid EX407 exam material. Thank you!
Hello, gays! I have to say that no dumps can compared with the EX407 dumps, they are really helpful and i passed the EX407 exam smoothly! Thank you so much!
