Redhat EX407 Questions & Answers

Full Version: 101 Q&A


Latest EX407 Exam Questions and Practice Tests 2024 - Killexams.com

Latest EX407 Practice Tests with Actual Questions


Get Complete pool of questions with Premium PDF and Test Engine


Exam Code : EX407
Exam Name : Red Hat Certified Specialist in Ansible Automation
Vendor Name :
"Redhat"








EX407 Dumps EX407 Braindumps

EX407 Real Questions EX407 Practice Test EX407 Actual Questions


killexams.com Redhat EX407


Red Hat Certified Specialist in Ansible Automation


https://killexams.com/pass4sure/exam-detail/EX407


Question: 85


Which line instructs ansible to install httpd?

  1. yum: name=httpd state=installed

  2. tasks: install httpd

  3. service: name=httpd state=installed

  4. name: service=httpd state=installed




Answer: A



Explanation:

The yum module is an appropriate way to install software


Question: 86


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

  1. b

  2. f

  3. i

  4. B




Answer: A



Explanation:

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


Question: 87


Question: 88


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



Question: 89


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



Explanation:

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


Question: 90


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


Question: 91


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



Explanation:

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


Question: 92


Question: 93


What command is used to run a playbook?

  1. ansible-playbook <playbook>

  2. ansible <playbook>

  3. ansible-p <playbook>

  4. playbook <playbook>




Answer: A



Explanation:

This command will run a given playbook successfully.


Question: 94

What keyword stores a command’s output into a variable?

  1. register

  2. output

  3. output is stored in a variable named results by default

  4. debug




Answer: A



Explanation:

The register keyword will store output from the preceding command into a provided variable.


Question: 95


What does the lineinfile module do?

  1. Allow addition of lines anywhere in a file

  2. Allows to grep for lines in a provided file

  3. Allow additions of lines to the end of a file only

  4. Input data into a file from stdin




Answer: A



Explanation:

The purpose of the lineinfile module is to add lines anywhere in a file passed on a pattern.


Question: 96


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



Explanation:

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


Question: 97


Is it possible to specify multiple inventory files at once?

  1. Yes, you specify your inventory as a directory containing valid inventory files.

  2. No.

  3. Yes, you must provide extra parameters to the -i flag.

  4. Yes, you must specify a reference inventory master file.




Answer: A


Question: 98


A dynamic inventory must return data in what format?

  1. JSON

  2. XML

  3. YAML

  4. INI




Answer: A



Explanation:

Dynamic inventories must return JSON output.


Question: 99


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



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.


Question: 100


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


User: Gaspar*****

I owe my success in passing the ex407 exam to Killexams.com exam prep materials. I had failed the exam on my first attempt, but their questions were so similar to the real ones that I passed with ease the second time around. Their format is easy to understand, and the information you learn sticks with you even after the exam.
User: Louis*****

After consecutive failures in the EX407 exam, I was devastated and considered changing my subject, thinking that it was not my cup of tea. However, someone suggested I try one last time with Killexams.com, and I am glad I did. The last attempt was a success, and I passed the paper with Killexams.com help, which put in all the effort to make things work for me, allowing me to pursue my discipline.
User: Kolya*****

Killexams.com questions and answers helped me understand what was expected in the ex407 exam. I prepared well in just ten days and completed all the questions in 80 minutes. The topics were similar to the exam point of view, making it easy to memorize them accurately. The resource also taught me how to manage my time to finish the exam before time. In my opinion, it is the best method for exam preparation.
User: Tanis*****

I achieved a score of 44 out of 50 correct answers within the allotted time of 75 minutes while using the Killexams.com exam practice tests for EX407. The concise answers and relevant examples provided in the guidebook were very helpful.
User: Mishay*****

Can you smell the sweet fragrance of victory? I know I can, and it is a beautiful scent. You can smell it too if you use killexams.com to prepare for your EX407 exam. The facilities here are perfect, and once you are in, you will not be worried about failing at all. I did not fail and did quite well, and so can you. Try it now!

Features of iPass4sure EX407 Exam

  • Files: PDF / Test Engine
  • Premium Access
  • Online Test Engine
  • Instant download Access
  • Comprehensive Q&A
  • Success Rate
  • Real Questions
  • Updated Regularly
  • Portable Files
  • Unlimited Download
  • 100% Secured
  • Confidentiality: 100%
  • Success Guarantee: 100%
  • Any Hidden Cost: $0.00
  • Auto Recharge: No
  • Updates Intimation: by Email
  • Technical Support: Free
  • PDF Compatibility: Windows, Android, iOS, Linux
  • Test Engine Compatibility: Mac / Windows / Android / iOS / Linux

Premium PDF with 101 Q&A

Get Full Version

All Redhat Exams

Redhat Exams

Certification and Entry Test Exams

Complete exam list