Download RedHat.EX407.ActualTests.2021-08-16.101q.tqb

Download Exam

File Info

Exam Red Hat Certified Specialist in Ansible Automation
Number EX407
File Name RedHat.EX407.ActualTests.2021-08-16.101q.tqb
Size 324 KB
Posted Aug 16, 2021
Download RedHat.EX407.ActualTests.2021-08-16.101q.tqb


How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

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


  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
Correct 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.      Reference: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#understanding-variable-precedence
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.    
  
Reference: 
https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#understanding-variable-precedence



Question 2

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]
Correct answer: B
Explanation:
Reference:https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#inventory-script-conventions
Reference:
https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#inventory-script-conventions



Question 3

A dynamic inventory must return data in what format?


  1. JSON
  2. XML
  3. YAML
  4. INI
Correct answer: A
Explanation:
Dynamic inventories must return JSON output.     Reference:https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#inventory-script-conventions
Dynamic inventories must return JSON output.   
  
Reference:
https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html#inventory-script-conventions









PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files