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 81:

    Which command will allow you to collect all facts for the specific host group 'labmachines'?

    A. ansible -c setup labmachines
    B. ansible-gather-facts labmachines
    C. ansible labmachines -m facts
    D. ansible labmachines -m setup

  • Question 82:

    Which module returns Ansible facts?

    A. The facts module
    B. It is a side effect of the ping module
    C. Facts are gathered when you run any module in ad-hoc mode
    D. The setup module

  • Question 83:

    Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following:

    1.

    The playbook should replaee any existing content of/etc/motd in the following text.

    2.

    Use ansible facts to display the FQDN of each host

    3.

    On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".

    4.

    On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".

    5.

    On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".

    Correct Answer. Check the answer in explanation

  • Question 84:

    Which keywords will cause a role to be applied in a playbook? (Choose all that apply.)

    A. use_role
    B. include_role
    C. load_role
    D. role

  • Question 85:

    Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:

    1.

    Uses the timesync RHEL system role.

    2.

    Sets the ntp server to 0.uk.pool.ntp.org

    3.

    Sets the timezone to UTC

    Correct Answer. Check the answer in explanation

  • Question 86:

    How is Ansible Tower installed on your system?

    A. It is installed with Ansible core.
    B. Ansible Tower is provided through an rpm install.
    C. Ansible Tower is provided in a tarball containing binaries, config files, and an installation script that must be ran.
    D. A disk image may be downloaded and mounted containing the necessary Ansible Tower binaries.

  • Question 87:

    Which of the following is a configuration file for Ansible Tower?

    A. /etc/ansible/tower.py
    B. /etc//tower/settings.ini
    C. /etc/ansible/tower.ini
    D. /etc//tower/settings.py

  • Question 88:

    Consider the following play excerpt:

    -name: deploy app config template: src: app.xml.j2 dest: /etc/app.xml notify:

    -

    restart memcached

    -

    restart apache

    -name: deploy httpd config

    template:

    src: httpd.conf.j2

    dest: /etc/httpd/conf/httpd.conf

    notify:

    -restart apache

    -name: deploy httpd config

    template:

    src: site.conf.j2

    dest: /etc/httpd/conf/site.conf

    notify:

    -restart apache

    Presuming all of the listed tasks in the play change the files they act on and the handler is correctly defined in another file, how many times is the "restart apache" handler ran?

    A. 3
    C. 2
    D. 1

  • Question 89:

    State whether the following statement is true or false.

    If you create your own ansible facts file, it can be executable.

    A. True
    B. False

  • Question 90:

    Which flags must be accepted as input for a dynamic inventory script?

    A. Only --list
    B. --host [hostname] and --list
    C. --host [hostname] and --inv-list
    D. --list and --format [file format]

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.