Download Red Hat Certified Specialist in Ansible Automation.VCEplus.EX407.2020-11-24.1e.101q.vcex

Download Exam

File Info

Exam Red Hat Certified Specialist in Ansible Automation
Number EX407
File Name Red Hat Certified Specialist in Ansible Automation.VCEplus.EX407.2020-11-24.1e.101q.vcex
Size 76 Kb
Posted November 24, 2020
Downloads 56

How to open VCEX & EXAM Files?

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

Purchase
Coupon: EXAM_HUB

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

  • 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



Question 2
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]



Question 3
A dynamic inventory must return data in what format?

  • A: JSON
  • B: XML
  • C: YAML
  • D: INI



Question 4
Which is the default inventory file used by Ansible?

  • A: ${PWD}/.inventory
  • B: /etc/hosts
  • C: /etc/ansible/inventory
  • D: /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?

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



Question 6
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.



Question 7
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



Question 8
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



Question 9
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:
  • B:
  • C: 1
  • D: 0



Question 10
What command is used to run a playbook?

  • A: ansible-playbook <playbook>
  • B: ansible <playbook>
  • C: ansible-p <playbook>
  • D: playbook <playbook>






CONNECT US


ProfExam
PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount..

Get Now!


HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen



HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset