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

    What does the -p flag do with the ansible-galaxy command?

    A. Allows the user to provide a role path other than the default to be used when installing a role.
    B. Instructs ansible-galaxy to install the role permanently to persist a reboot.
    C. Allows ansible-galaxy to pull a role down to the local server.
    D. Allows ansible-galaxy to push a role to a target.

  • Question 72:

    Create an empty encrypted file called myvault.yml in /home/sandy/ansible and set the password notsafepw. to Rekey the password iwejfj2221 to .

    Correct Answer. Check the answer in explanation

  • Question 73:

    Which of the following are shared between roles on the same system? (Choose all that apply.)

    A. Templates
    B. Tasks
    C. Variables
    D. Handlers

  • Question 74:

    Which variable name is invalid?

    A. tomcat_inst8_port
    B. _tomcatdefaultport
    C. tomcat8port
    D. tomcat_port

  • Question 75:

    What is wrong with the following command: ansible all -a "mkdir/tmp/testfile"

    A. There is not a module specified.
    B. There is not an inventory file specified.
    C. The command will execute without error.
    D. The -b flag is required.

  • Question 76:

    Create a playbook called timesvnc.yml in/home/sandy/ansible using rhel system role timesync. Set the time to use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.

    Correct Answer. Check the answer in explanation

  • Question 77:

    How are facts collected? (Choose all that apply.)

    A. During playbook execution.
    B. Ansible agents push facts to the control node.
    C. The Ansible control node periodically polls the hosts in the inventory.
    D. The setup module.

  • Question 78:

    Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'

    Correct Answer. Check the answer in explanation

  • Question 79:

    Templates have access to variables scoped at which of the following levels? (Choose all that apply.)

    A. Hostgroup targeted by current play
    B. Ansible Facts
    C. Variables defined within the current play
    D. Any host variables defined in inventory

  • Question 80:

    What does the -a flag allow you to specify?

    A. Allows a user to specify arguments for a given module.
    B. Tells ansible to run in ad-hoc mode.
    C. The -a flag has no use in Ansible.
    D. Tells ansible to run against all hosts.

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.