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

    Consider the following playbook.

    -hosts: local become: yes

    tasks:

    -name: create users user: name: "{{item}}" with_items:

    -sam

    -john

    -bob How many times is the user module invoked?

    A. 5
    B. 3
    C. 1

  • Question 92:

    Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?

    A. a standard httpd server
    B. other servers that have Ansible installed
    C. community.ansible.com
    D. github repositories

  • Question 93:

    Create anansible vault password file called lock.yml with the password reallysafepw in the /home/sandy/ansible directory. In the lock.yml file define two variables. One is pw_dev and the password is 'dev' and the other is pw_mgr and the password is 'mgr' Create a regular file called secret.txt which contains the password for lock.yml.

    Correct Answer. Check the answer in explanation

  • Question 94:

    What is the defaults directory used for within a role?

    A. The defaults directory is for defining default values for variables if no other value is provided.
    B. The defaults directory is where you define which plays of a role will be used by default.
    C. The defaults directory is for defining variable values that override other variables used in a playbook using the role.
    D. The defaults directory stores configurations that override ansible.cfg.

  • Question 95:

    How is a role name set?

    A. The role name is defined by the directory containing the role.
    B. Ansible loads a role name using the role keyword in the roles tasks/main.yml file.
    C. Ansible loads a role name from the roles meta/main.yml file.
    D. All role names are defined in the file /etc/ansible/roles.

  • Question 96:

    In /home/sandy/ansible/create a playbook called logvol.yml. In the play create a logical volume called Iv0 and make it of size 1500MiB on volume group vgO If there is not enough space in the volume group print a message "Not enough space for logical volume" and then make a 800MiB Iv0 instead. If the volume group still doesn't exist, create a message "Volume group doesn't exist" Create an xfs filesystem on all Iv0 logical volumes. Don't mount the logical volume.

    Correct Answer. Check the answer in explanation

  • Question 97:

    What type of credential is used for accessing system accounts on your remote Linux hosts via SSH in Ansible Tower?

    A. System
    B. Machine
    C. Insights
    D. Ansible Tower

  • Question 98:

    State whether the following statement is true or false. A template has a maximum of 10 variables.

    A. True
    B. False

  • Question 99:

    SIMULATION

    Using the Simulation Program, perform the following tasks:

    Static Inventories Task:

    1.

    Add a new group to your default ansible host file. call the group [ec2]

    2.

    Add a new host to the new group you created.

    3.

    Add a variable to a new host entry in the /etc/ansible/hosts file. Add the following. localhost http_port=80 maxRequestsPerChild=808

    4.

    Check to see if maxRequestsPerChild is pulled out with an ad-hoc command.

    5.

    Create a local host file and put a target group and then a host into it. Then ping it with an ad-hoc command.

  • Question 100:

    What keyword stores a command's output into a variable?

    A. register
    B. output
    C. output is stored in a variable named results by default
    D. debug

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.