Which keywords are valid? (Choose all that apply.)
A. never
B. rescue
C. always
D. block
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.
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
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
Consider the following playbook.
-hosts: local become: yes
tasks:
-name: create users user: name: "{{item}}" with_items:
-sam
-john
-bob How many times is the user module invoked?
A. 5
B. 3
C. 1
D. 0
What command is used to run a playbook?
A. ansible-playbook
B. ansible
C. ansible-p
D. playbook
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
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]
A dynamic inventory must return data in what format?
A. JSON
B. XML
C. YAML
D. INI
Which is the default inventory file used by Ansible?
A. ${PWD}/.inventory
B. /etc/hosts
C. /etc/ansible/inventory
D. /etc/ansible/hosts
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX407 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.