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

Viewing Page 3 of 22

Consider the following playbook.

- hosts: webservers
become: yes

- name: install httpd
yum:
name: httpd
state: latest

Which line includes a syntax error?

  1. become: yes – there is no attribute called become
  2. yum: – yum should be proceeded with a hyphen
  3. The file does not end with end-playbook.
  4. The playbook does not include the task directive.

Answer(s): D

Explanation:

The "task:" directive is required at the prior to providing the tasks of a playbook. Without it, Ansible will not throw an error.



Which of the following attributes specifies how a handler can be notified? (Choose all that apply.)

  1. name
  2. service
  3. listen
  4. handle

Answer(s): A,C

Explanation:

While using the handler's name attribute is not encouraged, it does work.



What is the primary difference between the shell and command module?

  1. The shell module is for executing shell commands, and the command module is for Ansible internal commands.
  2. The shell module sets up a shell environment and the command module only runs the provided command.
  3. The shell module sets a default shell whereas the command module executes a shell command.
  4. There is no difference.

Answer(s): B



Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file / home/ansible/inventory, assuming your present working directory is /home/ansible?

  1. ansible -i inventory Build.yml
  2. ansible -i inventory -p Buildwww.yml
  3. ansible-playbook -i inventory -p Buildwww.yml
  4. ansible-playbook -i inventory Buildwww.yml

Answer(s): D

Explanation:

This command is the correct way to run the playbook using the requested inventory



Which Ansible ad-hoc flag is analogous to the become directive?

  1. b
  2. f
  3. i
  4. B

Answer(s): A

Explanation:

The b flag actually stands for become! They both have Ansible escalate to the become_user.



Viewing Page 3 of 22



Share your comments for RedHat EX407 exam with other users:

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


Nagendra Pedipina 7/12/2023 9:10:00 AM

q:37 c is correct
INDIA


John 9/16/2023 9:37:00 PM

q6 exam topic: terramearth, c: correct answer: copy 1petabyte to encrypted usb device ???
GERMANY


SAM 12/4/2023 12:56:00 AM

explained answers
INDIA


Andy 12/26/2023 9:35:00 PM

plan to take theaws certified developer - associate dva-c02 in the next few weeks
SINGAPORE


siva 5/17/2023 12:32:00 AM

very helpfull
Anonymous


mouna 9/27/2023 8:53:00 AM

good questions
Anonymous


Bhavya 9/12/2023 7:18:00 AM

help to practice csa exam
Anonymous


Malik 9/28/2023 1:09:00 PM

nice tip and well documented
Anonymous


rodrigo 6/22/2023 7:55:00 AM

i need the exam
Anonymous


Dan 6/29/2023 1:53:00 PM

please upload
Anonymous


Ale M 11/22/2023 6:38:00 PM

prepping for fsc exam
AUSTRALIA


ahmad hassan 9/6/2023 3:26:00 AM

pd1 with great experience
Anonymous