Certification Practice Test | PDF Questions | Actual Questions | Test Engine | Pass4Sure
EX407 : Red Hat Certified Specialist in Ansible Automation Exam

Redhat EX407 Questions & Answers
Full Version: 101 Q&A
EX407 Dumps
EX407 Braindumps
EX407 Real Questions
EX407 Practice Test
EX407 dumps free
Redhat
EX407
Red Hat Certified Specialist in Ansible Automation
http://killexams.com/pass4sure/exam-detail/EX407
Question: 85
Which line instructs ansible to install httpd?
A. yum: name=httpd state=installed
B. tasks: install httpd
C. service: name=httpd state=installed
D. 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?
A. b
B. f
C. i
D. 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?
A. The shell module is for executing shell commands, and the command module is for Ansible internal
commands.
B. The shell module sets up a shell environment and the command module only runs the provided command.
C. The shell module sets a default shell whereas the command module executes a shell command.
D. 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?
A. ansible -i inventory Build.yml
B. ansible -i inventory -p Buildwww.yml
C. ansible-playbook -i inventory -p Buildwww.yml
D. 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?
A. become: yes – there is no attribute called become
B. yum: – yum should be proceeded with a hyphen
C. The file does not end with end-playbook.
D. 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.)
A. name
B. service
C. listen
D. 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?
A. ansible-playbook
B. ansible
C. ansible-p
D. playbook
Answer: A
Explanation:
This command will run a given playbook successfully.
Question: 94
What keyword stores a command’s output into a variable?
A. register
B. output
C. output is stored in a variable named results by default
D. 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?
A. Allow addition of lines anywhere in a file
B. Allows to grep for lines in a provided file
C. Allow additions of lines to the end of a file only
D. 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?
A. Ansible cannot use python scripts as inventories.
B. The ansible user must own the file.
C. The file is not executable.
D. 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?
A. Yes, you specify your inventory as a directory containing valid inventory files.
B. No.
C. Yes, you must provide extra parameters to the -i flag.
D. Yes, you must specify a reference inventory master file.
Answer: A
Question: 98
A dynamic inventory must return data in what format?
A. JSON
B. XML
C. YAML
D. 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.)
A. /home/user/ansible/dbservers
B. /home/user/ansible/host_vars/db1.example.com
C. /home/user/ansible/host_vars/db1
D. /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?
A. Only –list
B. –host [hostname] and –list
C. –host [hostname] and –inv-list
D. –list and –format [file format]
Answer: B
For More exams visit https://killexams.com/vendors-exam-list
Kill your exam at First Attempt....Guaranteed!
User: Sashya*****![]() ![]() ![]() ![]() ![]() I recently passed my RED HAT CERTIFIED SPECIALIST IN ANSIBLE AUTOMATION certification exam and believe that it is not receiving enough exposure and public relations. Despite being an accurate and high-level certification, it seems to be underrated nowadays. This lack of attention also means that there are not many free RED HAT CERTIFIED SPECIALIST IN ANSIBLE AUTOMATION practice tests available, which is why I had to purchase one from Killexams.com. Luckily, their bundle was just as good as I expected, and it provided me with exactly what I needed to understand the material. It was a great experience, and I want to give a high-five to the team of developers who created it. |
User: Marion*****![]() ![]() ![]() ![]() ![]() All the material available on killexams.com is authentic and fully reliable. After hearing good reviews about Killexams, I purchased their EX407 exam practice tests to prepare for my exam. The quality of their material was as good as promised, and the practice exams were smooth and easy to follow. I ended up scoring 96% on my EX407 exam, all thanks to Killexams. |
User: Tina*****![]() ![]() ![]() ![]() ![]() I recently passed the ex407 exam thanks to Killexams. The questions on the exam were all correct and accurate, and the study materials were beyond my expectations. I have already recommended Killexams to colleagues who have also passed the ex407 exam. If you are looking for reliable practice tests for any exam, Killexams is an excellent choice. |
User: Hugo*****![]() ![]() ![]() ![]() ![]() With the help of Killexams.com, I easily comprehended difficult topics such as delivery competence and content information effects. I scored 90% marks, and all credit goes to Killexams.com. I was looking for a reference guide that would assist me in preparing for the EX407 exam, but my busy schedule only allowed me a few hours of study time. However, after purchasing the Killexams.com questions and answers and exam simulator, I received it within a week and started making plans. |
User: Cyril*****![]() ![]() ![]() ![]() ![]() Overall, Killexams.com was an awesome resource that helped me prepare for the exam. Although some of the questions in the exam were 100% similar to what Killexams.com provided, I managed to pass with a great result. Over 70% of the questions were identical, and the rest were very similar, which may or may not be a good thing. However, keep in mind that despite using Killexams.com, you still need to study and use your brain. |
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 VersionAll Redhat Exams
Redhat ExamsCertification and Entry Test Exams
Complete exam list