EX407 Exam Details

  • Exam Code
    :EX407
  • Exam Name
    :Red Hat Certified Specialist in Ansible Automation
  • Certification
    :Red Hat Certifications
  • Vendor
    :Red Hat
  • Total Questions
    :124 Q&As
  • Last Updated
    :Jul 09, 2026

Red Hat EX407 Online Questions & Answers

  • Question 11:

    Which line instructs ansible to install httpd?

    A. yum: name=httpd state=installed
    B. tasks: install httpd
    C. service: name=httpd state=installed
    D. name: service=httpd state=installed

  • Question 12:

    SIMULATION

    Using the Simulation Program, perform the following tasks:

    Ad-Hoc Ansible Commands (Number Two) Task:

    1.

    Use the ad-hoc command to make sure php is installed.

    2.

    Use the ad-hoc command to make sure that php is installed and is the latest version.

    3.

    Use the ad-hoc command to make sure that httpd is installed.

    4.

    Use the ad-hoc command to remove httpd from the servers.

  • Question 13:

    Where does ansible-galaxy install place roles by default?

    A. $PWD/roles
    B. /etc/ansible/roles
    C. /etc/roles
    D. /usr/share/ansible/roles

  • Question 14:

    Where can you find a list of all modules in the Ansible online documentation?

    A. Master Module List
    B. All modules are listed on the online documentation landing page.
    C. There is not a full list of all modules in the online documentation.
    D. Module Index

  • Question 15:

    What is a typical use case for an Ansible Template?

    A. Managing remote system configuration files
    B. Defining a host group
    C. Installing remote Ansible installations
    D. Running remote commands

  • Question 16:

    Where can you find documentation on Ansible modules? (Choose all that apply.)

    A. The Ansible-Module man page.
    B. The Ansible man page.
    C. Using the ansible-doc command.
    D. Ansible online documentation.

  • Question 17:

    Install and configure ansible

    User sandy has been created on your control node with the appropriate permissions already, do not change or modify ssh keys. Install the necessary packages to run ansible on the control node. Configure ansible.cfg to be in folder /home/ sandy/ansible/ansible.cfg and configure to access remote machines via the sandy user. All roles should be in the path /home/sandy/ansible/roles. The inventory path should be in /home/sandy/ansible/invenlory.

    You will have access to 5 nodes.

    1.

    node1.example.com

    2.

    node2.example.com

    3.

    node3.example.com

    4.

    node4.example.com

    5.

    node5.example.com

    Configure these nodes to be in an inventory file where node I is a member of group dev. nodc2 is a member of group test, node3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

    Correct Answer. Check the answer in explanation In/home/sandy/ansible/ansible.cfg [defaults]

  • Question 18:

    Create the users in the file usersjist.yml file provided. Do this in a playbook called users.yml located at /home/sandy/ansible. The passwords for these users should be set using the lock.yml file from TASK7. When running the playbook, the lock.yml file should be unlocked with secret.txt file from TASK 7.

    All users with the job of 'developer' should be created on the dev hosts, add them to the group devops, their password should be set using the pw_dev variable. Likewise create users with the job of 'manager' on the proxy host and add the users to the group 'managers', their password should be set using the pw_mgr variable.

    users_list.yml

    Correct Answer. Check the answer in explanation

  • Question 19:

    How is information on a given module displayed using the command ansible-doc andlt;moduleandgt;?

    A. The information is simply printed to STDOUT.
    B. The information is displayed in vim.
    C. The information is displayed in the ansible-doc tui.
    D. The information is displayed in a less-like program.

  • Question 20:

    Which of the following are Ansible modules? (Choose all that apply.)

    A. get_dnshostname
    B. setup
    C. yum
    D. ping

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX407 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.