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

    Which of the following are valid default locations for Ansible configuration? (Choose all that apply.)

    A. etc/ansible/ansible.cfg
    B. ${HOME}/.ansible.cfg
    C. ${ANSIBLE_CONFIG}
    D. /etc/ansible/config

  • Question 112:

    Consider the following playbook:

    # playbook name: /home/ansible/web.yml

    -hosts: webservers become: yes

    tasks:

    -name: edit file 1

    lineinfile:

    path: /var/www/content.hml line: "{{ text }}" tags:

    -content

    -name: edit file 2

    lineinfile: path: /var/www/index.hml

    line: "{{ text }}"

    tags:

    -web

    -name: edit file 3 lineinfile: path: /var/www/etc.hml line: "{{ text }}" tags: - content - misc

    Which use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/www/index.html?

    A. ansible-playbook /home/ansible/web.yml
    B. ansible-playbook /home/ansible/web.yml --skip-tags web
    C. ansible-playbook /home/ansible/web.yml --skip-tags content
    D. ansible-playbook /home/ansible/web.yml --tags content

  • Question 113:

    Where is Ansible's inventory stored by default?

    A. .etc/ansible/hosts
    B. /home/ansible/inventory
    C. etc/ansible/inventory
    D. ${HOME}/inventory for the currently logged in user

  • Question 114:

    In what format are ansible playbooks written?

    A. JSON
    B. YAML
    C. XML
    D. Ansible Proprietary Format (APF)

  • Question 115:

    SIMULATION

    Using the Simulation Program, perform the following tasks:

    1.

    Use an ansible ad-hoc command, check the connectivity of your servers.

    2.

    Use an ad-hoc ansible command, find the free space of your servers.

    3.

    Use an ad-hoc ansible command, find out the memory usage of your servers.

    4.

    Do an ls -l on the targets /var/log/messages file.

    5.

    Tail the contents of the targets /var/log/messages file.

  • Question 116:

    State whether the following statement is true or false.

    You can change the no of forks ansible uses from the /etc/ansible/ansible.cfg file.

    A. True
    B. False

  • Question 117:

    Which of these are valid as the first thing in a playbook? (Choose all that apply.)

    A. --
    B. - tasks: name=
    C. --- # this is a comment
    D. - hosts: local

  • Question 118:

    Which of the following are valid flags for the ansible-playbook command? (Choose all that apply.)

    A. --include-tags
    B. --tags
    C. --skip-tags
    D. --tag

  • Question 119:

    Which of the following are sub commands of the ansible-galaxy command? (Choose all that apply.)

    A. find
    B. remove
    C. init
    D. create

  • Question 120:

    What does the -f flag in the ansible command allow you to specify?

    A. The playbook file used by ansible
    B. The inventory file used by ansible
    C. The configuration file used by ansible
    D. The forks used by ansible

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.