RedHat EX407 Exam (page: 1)
RedHat Red Hat Certified Specialist in Ansible Automation exam
Updated on: 28-Sep-2025

Viewing Page 1 of 22

Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.com

Which of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)

  1. /home/user/ansible/dbservers
  2. /home/user/ansible/host_vars/db1.example.com
  3. /home/user/ansible/host_vars/db1
  4. /home/user/ansible/group_vars/dbservers

Answer(s): B,D

Explanation:

Ansible will check in /home/user/ansible/host_vars to find files named after hosts defined in the inventory. Ansible will check this file because there is a group defined in the inventory as dbservers.



Which flags must be accepted as input for a dynamic inventory script?

  1. Only --list
  2. --host [hostname] and --list
  3. --host [hostname] and --inv-list
  4. --list and --format [file format]

Answer(s): B



A dynamic inventory must return data in what format?

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

Answer(s): A

Explanation:

Dynamic inventories must return JSON output.



Which is the default inventory file used by Ansible?

  1. ${PWD}/.inventory
  2. /etc/hosts
  3. /etc/ansible/inventory
  4. /etc/ansible/hosts

Answer(s): D

Explanation:

Ansbile refers to /etc/ansible/hosts as the default inventory.



Observe the details of the following dynamic inventory file.

$ ls -l dynamic.py -rw-rw-r--. 1 user user 1928 Mar 30 08:21 dynamic.py

Why will this inventory file cause the ansible command to fail?

  1. Ansible cannot use python scripts as inventories.
  2. The ansible user must own the file.
  3. The file is not executable.
  4. The ansible command will not fail using the noted file with the given details.

Answer(s): C

Explanation:

Without being executable. Ansible will attempt to parse the script as a static inventory and fail.



Viewing Page 1 of 22



Share your comments for RedHat EX407 exam with other users:

KJ 11/17/2023 3:50:00 PM

good practice exam
Anonymous


sowm 10/29/2023 2:44:00 PM

impressivre qustion
Anonymous


CW 7/6/2023 7:06:00 PM

questions seem helpful
Anonymous


luke 9/26/2023 10:52:00 AM

good content
Anonymous


zazza 6/16/2023 9:08:00 AM

question 21 answer is alerts
ITALY


Abwoch Peter 7/4/2023 3:08:00 AM

am preparing for exam
Anonymous


mohamed 9/12/2023 5:26:00 AM

good one thanks
EGYPT


Mfc 10/23/2023 3:35:00 PM

only got thru 5 questions, need more to evaluate
Anonymous


Whizzle 7/24/2023 6:19:00 AM

q26 should be b
Anonymous


sarra 1/17/2024 3:44:00 AM

the aaa triad in information security is authentication, accounting and authorisation so the answer should be d 1, 3 and 5.
UNITED KINGDOM


DBS 5/14/2023 12:56:00 PM

need to attend this
UNITED STATES


Da_costa 8/1/2023 5:28:00 PM

these are free brain dumps i understand, how can one get free pdf
Anonymous


vikas 10/28/2023 6:57:00 AM

provide access
EUROPEAN UNION


Abdullah 9/29/2023 2:06:00 AM

good morning
Anonymous


Raj 6/26/2023 3:12:00 PM

please upload the ncp-mci 6.5 dumps, really need to practice this one. thanks guys
Anonymous


Miguel 10/5/2023 12:21:00 PM

question 16: https://help.salesforce.com/s/articleview?id=sf.care_console_overview.htm&type=5
SPAIN


Hiren Ladva 7/8/2023 10:34:00 PM

yes i m prepared exam
Anonymous


oliverjames 10/24/2023 5:37:00 AM

my experience was great with this site as i studied for the ms-900 from here and got 900/1000 on the test. my main focus was on the tutorials which were provided and practice questions. thanks!
GERMANY


Bhuddhiman 7/20/2023 11:52:00 AM

great course
UNITED STATES


Anuj 1/14/2024 4:07:00 PM

very good question
Anonymous


Saravana Kumar TS 12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.
INDIA


Lue 3/30/2023 11:43:00 PM

highly recommend just passed my exam.
CANADA


DC 1/7/2024 10:17:00 AM

great practice! thanks
UNITED STATES


Anonymus 11/9/2023 5:41:00 AM

anyone who wrote this exam recently?
SOUTH AFRICA


Khalid Javid 11/17/2023 3:46:00 PM

kindly share the dump
Anonymous


Na 8/9/2023 8:39:00 AM

could you please upload cfe fraud prevention and deterrence questions? it will be very much helpful.
Anonymous


shime 10/23/2023 10:03:00 AM

this is really very very helpful for mcd level 1
ETHIOPIA


Vnu 6/3/2023 2:39:00 AM

very helpful!
Anonymous


Steve 8/17/2023 2:19:00 PM

question #18s answer should be a, not d. this should be corrected. it should be minvalidityperiod
CANADA


RITEISH 12/24/2023 4:33:00 AM

thanks for the exact solution
Anonymous


SB 10/15/2023 7:58:00 AM

need to refer the questions and have to give the exam
INDIA


Mike Derfalem 7/16/2023 7:59:00 PM

i need it right now if it was possible please
Anonymous


Isak 7/6/2023 3:21:00 AM

i need it very much please share it in the fastest time.
Anonymous


Maria 6/23/2023 11:40:00 AM

correct answer is d for student.java program
IRELAND