Free EX407 Exam Braindumps
Red Hat Certified Specialist in Ansible Automation exam Questions 36–40 (page: 9)

Updated On: 9-Feb-2026

Presuming the inventory is not dynamic, Ansible inventories can be specified using what two file formats?

  1. XML and JSON
  2. JSON and JAML
  3. YAML and INI
  4. XML and INI

Answer(s): C

Explanation:

Ansible inventories may be provided in either YAML or INI format.



An Ansible inventory may contain which of the following? (Choose all that apply.)

  1. Variable declarations
  2. Groups
  3. Hosts
  4. Plays

Answer(s): A,B,C

Explanation:

Groups of hosts (and even groups of groups) may be defined within an inventory. The primary purpose of an Ansible inventory is to maintain a list of hosts with which Ansible may interact.



Which module returns Ansible facts?

  1. The facts module
  2. It is a side effect of the ping module
  3. Facts are gathered when you run any module in ad-hoc mode
  4. The setup module

Answer(s): B

Explanation:

The setup module gathers facts against target hosts and prints the facts to stdout.



What does the -a flag allow you to specify?

  1. Allows a user to specify arguments for a given module.
  2. Tells ansible to run in ad-hoc mode.
  3. The -a flag has no use in Ansible.
  4. Tells ansible to run against all hosts.

Answer(s): A



Which of the following is a good use case for an ad-hoc command? (Choose all that apply.)

  1. Experimenting with an Ansible Module
  2. Installing the netcat utility on application servers
  3. Checking the free memory on a particular group of hosts
  4. Upgrading a custom 3-tier application stack

Answer(s): A,B,C

Explanation:

Installing netcat is a single yum command that would be easily run across a group of common servers with an Ansible ad-hoc command. A single command run against several servers is a perfect use case for an ad-hoc command. Writing a playbook would be overkill.



Viewing page 9 of 22
Viewing questions 41 - 45 out of 101 questions


Post your Comments and Discuss RedHat EX407 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!