Free EX407 Exam Braindumps
Red Hat Certified Specialist in Ansible Automation exam Questions 46–50 (page: 11)

Updated On: 9-Feb-2026

Consider the following file.

authors:
- joe
- john

editors:
-frank

managers:

editing: josh

authoring: sam

How many lists are defined in the provided file?

  1. 3
  2. 0
  3. 2
  4. 1

Answer(s): C

Explanation:

There are two lists in the file. Note use of the hyphens.



What Ansible variable allows access to internal Ansible data?

  1. Ansible Facts
  2. Magic Variables
  3. Dictionary Variables
  4. Environment Variables

Answer(s): B

Explanation:

Magic variables allow access to internal Ansible data such as host groups and inventory hosts.



Where are custom facts defined on a host?

  1. /etc/ansible/facts.d/<HOSTNAME>
  2. /etc/ansible/<HOST>/*.fact
  3. /etc/ansible/facts.d/*.fact
  4. /etc/ansible/facts.db

Answer(s): C

Explanation:

Custom facts are gathered from all files with the .fact extension in /etc/ansible/facts.d.



Consider the provided dictionary variable definition:

drives:
name: hd1
type: physical
size: 1G

Which of the following are valid ways to retrieve data from this dictionary? (Choose all that apply.)

  1. {{ drives[‘type’] }}
  2. {{ drives-name }}
  3. {{ drives }}
  4. {{ drives.size }}

Answer(s): A,C,D

Explanation:

{{ drives }}: This will return the whole dictionary.
{{ drives.size }}: This will return the size value for the drives dictionary.



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

  1. During playbook execution.
  2. Ansible agents push facts to the control node.
  3. The Ansible control node periodically polls the hosts in the inventory.
  4. The setup module.

Answer(s): A,D

Explanation:

The setup module collects facts.



Viewing page 11 of 22
Viewing questions 51 - 55 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!