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
    :Mar 03, 2025

Red Hat Red Hat Certifications EX407 Questions & Answers

  • Question 71:

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

    Which variable name is invalid?

    A. tomcat_inst8_port

    B. _tomcatdefaultport

    C. tomcat8port

    D. tomcat_port

  • Question 73:

    Which of the following are Ansible modules? (Choose all that apply.)

    A. get_dnshostname

    B. setup

    C. yum

    D. ping

  • Question 74:

    Consider the following playbook.

    -hosts: web1 become: yes

    tasks:

    -

    name: use yum yum: name=httpd

    state=latest

    -

    name: use service service: name=httpd state=started enabled=yes

    -hosts: media1 become: yes

    tasks:

    -name: use service service: name=mariadb state=started

    when:

    -ansible_hostname == "web1"

    -name: use service service: name=firewalld state=stopped

    What service is started on the host media1?

    A. mariadb

    B. httpd

    C. firewalld

    D. No service is started on media1.

  • Question 75:

    What module is used to deploy a template?

    A. File

    B. Copy

    C. Template

    D. Deploy

  • Question 76:

    What is a typical use case for an Ansible Template?

    A. Managing remote system configuration files

    B. Defining a host group

    C. Installing remote Ansible installations

    D. Running remote commands

  • Question 77:

    Which of the following are valid parameters of the template module? (Choose all that apply.)

    A. state

    B. dest

    C. validate

    D. .name

  • Question 78:

    Templates must be written in what language?

    A. XML

    B. Ruby

    C. Jinja2

    D. INI

  • 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 when keyword do?

    A. There is no when keyword

    B. Allows a task to be conditional

    C. Allows a play to be conditional

    D. Allows a play to be scheduled

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.