Review 100 EX407 practice questions with answer explanations and community insights.
Question 1
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.)
/home/user/ansible/dbservers
/home/user/ansible/host_vars/db1.example.com
/home/user/ansible/host_vars/db1
/home/user/ansible/group_vars/dbservers
Question 2
Which flags must be accepted as input for a dynamic inventory script?
Only --list
--host [hostname] and --list
--host [hostname] and --inv-list
--list and --format [file format]
Question 3
A dynamic inventory must return data in what format?
JSON
XML
YAML
INI
Question 4
Which is the default inventory file used by Ansible?
${PWD}/.inventory
/etc/hosts
/etc/ansible/inventory
/etc/ansible/hosts
Question 5
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?
Ansible cannot use python scripts as inventories.
The ansible user must own the file.
The file is not executable.
The ansible command will not fail using the noted file with the given details.
We are moving to a new platform
CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.