RedHat Red Hat Certified Architect (RHCA)

RedHat EX407 Exam Dumps

Red Hat Certified Specialist in Ansible Automation exam

Exam code
EX407
Questions
41
Updated
25 Nov 2026
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Choose a format
Try free sample questions

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

EX407 sample questions

Check the style and quality of the material before you buy.

Question 1

Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new repository. The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp' there is no gpgcheck, but you should enable the repo.* You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.

  • A. chmod 0777 adhoc.shvim adhoc.sh#I/bin/bashansible all -m yum_repository -a 'name=EPEL description=RHEL8baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmpgpgcheck=no enabled=yes'
  • B. chmod 0711 adhoc.shvim adhoc.sh#I/bin/bashansible all -m yum_repository -a 'name=EPEL description=RHEL8baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmpgpgcheck=no enabled=yes'

Answer: A

Question 2

Install and configure ansibleUser bob has been created on your control node. Give him the appropriate permissions on the control node. Install the necessary packages to run ansible on the control node.Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:*The roles path should include /home/bob/ansible/roles, as well as any other path that may be required for the course of the sample exam.*The inventory file path is /home/bob/ansible/inventory.* Ansible should be able to manage 10 hosts at a single time.* Ansible should connect to all managed nodes using the bob user.Create an inventory file for the following five nodes:Configure these nodes to be in an inventory file where node1 is a member of group dev. nodc2 is a member of group test, nodc3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

  • A. In/home/sandy/ansible/ansible.cfg[defaults]inventory=/home/sandy/ansible/inventoryroles_path=/home/sandy/ansible/rolesremote_user= sandyhost_key_checking=false[privilegeescalation]become=truebecome_user=rootbecome_method=sudobecome_ask_pass=falseIn /home/sandy/ansible/inventory[dev]node 1 .example.com[test]node3 .example.com[prod]node4.example.comnode5 .example.com[webservers:children]prod
  • B. In/home/sandy/ansible/ansible.cfg[defaults]inventory=/home/sandy/ansible/inventoryroles_path=/home/sandy/ansible/rolesremote_user= sandyhost_key_checking=false[privilegeescalation]become=truebecome_user=rootbecome_method=sudobecome_ask_pass=falseIn /home/sandy/ansible/inventory[dev]node 1 .example.com[test]node2.example.com[proxy]node3 .example.com[prod]node4.example.comnode5 .example.com[webservers:children]prod

Answer: B

Why Dumpsforsure is the best choice for RedHat EX407 exam preparation

Secure your position in a competitive IT industry

The RedHat EX407 certification is a strong way to demonstrate your understanding and ability. Our EX407 questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our EX407 exam dumps up to date, with explanations. The questions and answers on Dumpsforsure are reviewed by people with professional experience of RedHat technologies.

One place to prepare

Dumpsforsure brings together the material you need for the RedHat EX407 exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other RedHat exams.

Updated EX407 questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free EX407 demo before you buy

You can view sample EX407 questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the EX407 exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

RedHat EX407 · 41 questions

Choose a format