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

    Consider the provided dictionary variable definition:

    drives: name: hd1 type: physical size: 1G

    Which of the following are valid ways to retrieve data from this dictionary? (Choose all that apply.)

    A. {{ drives[`type'] }}
    B. {{ drives-name }}
    C. {{ drives }}
    D. {{ drives.size }}

  • Question 52:

    State whether the following statement is true or false.

    Will this command use servers in a local inventory called invent.local?

    ansible all -m ping -i invent.local

    A. True
    B. False

  • Question 53:

    You are taking over for someone while they are away on leave. You need to run a playbook against over 600 servers. When you run the playbook you notice that only 10 servers are worked on at any one time. How would you fix this so that you can have 50 servers worked on at the same time?

    A. Edit the /etc/ansible/ansible.cfg file and adjust the 'poll_interval' parameter.
    B. Edit the /etc/ansible/hosts file and adjust the 'forks' parameter.
    C. Edit the /etc/ansible/servers file and adjust the 'servers' parameter.
    D. Edit the /etc/ansible/ansible.cfg file and adjust the 'forks' parameter.

  • Question 54:

    Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member of test then write "Test" If host is a member of prod then write "Production"

    Correct Answer. Check the answer in explanation

  • Question 55:

    What switch needs to be added to prevent the following command from failing: ansible all -m user -a "name=jsmith state=present"

    A. -b
    B. -f
    C. -x
    D. -v

  • Question 56:

    Observe the details of the following dynamic inventory file. $ ls -l dynamic.py -rw-rw-r--. 1 user user 1928 Mar 30 08:21 dynamic.py Why will this inventory file cause the ansible command to fail?

    A. Ansible cannot use python scripts as inventories.
    B. The ansible user must own the file.
    C. The file is not executable.
    D. The ansible command will not fail using the noted file with the given details.

  • Question 57:

    Install and configure ansible

    User bob has been created on your control node. Give him the appropriate permissions on thecontrol 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:

    1.

    The roles path should include /home/bob/ansible/roles, as well as any otherpath that may be required for the course of the sample exam.

    2.

    The inventory file path is /home/bob/ansible/inventory.

    3.

    Ansible should be able to manage 10 hosts at a single time.

    4.

    Ansible should connect to all managed nodes using the bobuser. Create an inventory file for the following five 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 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.

    Correct Answer. Check the answer in explanation

  • Question 58:

    Which keywords are valid? (Choose all that apply.)

    A. never
    B. rescue
    C. always
    D. block

  • Question 59:

    What is the url for the official Ansible online documentation?

    A. docs.ansible.com
    B. help.ansible.com
    C. google.com
    D. ansiblehelp.com

  • Question 60:

    Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.com Which of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)

    A. /home/user/ansible/dbservers
    B. /home/user/ansible/host_vars/db1.example.com
    C. /home/user/ansible/host_vars/db1
    D. /home/user/ansible/group_vars/dbservers

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.