Use Real EX407 - 100% Cover Real Exam Questions [Oct-2021]
Dumps Brief Outline Of The EX407 Exam - Exams4sures
NEW QUESTION 69
What are the default number of forks in Ansible?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION 70
What switch needs to be added to prevent the following command from failing:
ansible all -m user -a "name=jsmith state=present"
- A. -b
- B. -v
- C. -x
- D. -f
Answer: A
NEW QUESTION 71
An Ansible inventory may contain which of the following? (Choose all that apply.)
- A. Groups
- B. Hosts
- C. Variable declarations
- D. Plays
Answer: A,B,C
Explanation:
Groups of hosts (and even groups of groups) may be defined within an inventory. The primary purpose of an Ansible inventory is to maintain a list of hosts with which Ansible may interact.
NEW QUESTION 72
What is the defaults directory used for within a role?
- A. The defaults directory is for defining variable values that override other variables used in a playbook using the role.
- B. The defaults directory is where you define which plays of a role will be used by default.
- C. The defaults directory stores configurations that override ansible.cfg.
- D. The defaults directory is for defining default values for variables if no other value is provided.
Answer: D
Explanation:
Variables defined within defaults are given the lowest precedence and are only used when no other value is provided.
NEW QUESTION 73
Create anansible vault password file called reallysafepwin the/home/sandy/ansible directory. In the lock.yml file define two variables. One is and the password is 'dev' and the other is pw_mgrand the password is 'mgr' Create a regular file called which contains the password for lock.yml.
Answer:
Explanation:
See the Explanation for complete Solution below.
Explanation
ansible-vault create lock.yml
New Vault Password: reallysafepw
Confirm: reallysafepw
NEW QUESTION 74
CORRECT TEXT
Using the Simulation Program, perform the following tasks:
Static Inventories Task:
1. Add a new group to your default ansible host file. call the group [ec2]
2. Add a new host to the new group you created.
3. Add a variable to a new host entry in the /etc/ansible/hosts file. Add the following. localhost
http_port=80 maxRequestsPerChild=808
4. Check to see if maxRequestsPerChild is pulled out with an ad-hoc command.
5. Create a local host file and put a target group and then a host into it. Then ping it with an ad-hoc command.
Answer:
Explanation:
See explanation below.
Explanation:
1. Edit the /etc/ansible/hosts file. Add a group.
2. Edit the /etc/ansible/hosts file. Add a user under the group you created.
3. Edit the /etc/ansible/hosts file. Find a host. if we add a variable called maxRequestsPerChild to the host it would look like this. host1 maxRequestsPerChild=808
4. ansible ec2 -m shell -a "echo {{ maxRequestsPerChild }}"
5. Edit a local file. It could be called anything. Lets call it myhosts. Inside the file it would have a host like the following. [mygroup] myusername1.mylabserver.com
NEW QUESTION 75
Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?
- A. github repositories
- B. community.ansible.com
- C. a standard httpd server
- D. other servers that have Ansible installed
Answer: A
Explanation:
ansible-galaxy may be used to pull roles from a github repo.
NEW QUESTION 76
By default, how many times can a role be applied during a play?
- A. Once, presuming it is only applied with a single set of parameters.
- B. As many times as necessary, presuming the 'single_run' attribute is set to false.
- C. Once, no matter the parameters provided.
- D. As many times as necessary, no matter the parameters.
Answer: A
Explanation:
A role given only a single set of parameters will only be applied by Ansible one time in a play.
NEW QUESTION 77
Which of the following are valid flags for the ansible-playbook command? (Choose all that apply.)
- A. --tags
- B. --include-tags
- C. --tag
- D. --skip-tags
Answer: A,D
Explanation:
The --skip-tags flag allows specification of tags to identify specific plays for Ansible to skip.
NEW QUESTION 78
State whether the following statement is true or false.
Ansible tower can be used to manage your ansible systems.
- A. True
- B. False
Answer: A
NEW QUESTION 79
Create a file called requirements.yml in /home/sandy/ansible/roles a file called role.yml in
/home/sandy/ansible/. The haproxy-role should be used on the proxy host. And when you curl
http://node3.example.com it should display "Welcome to node4.example.com" and when you curl again
"Welcome to node5.example.com" The php-role should be used on the prod host.
Answer:
Explanation:
See the Explanation for complete Solution below.
Explanation
Solution as:
Check the proxy host by curl http://node3.example.com
NEW QUESTION 80
Which of the following are valid default locations for Ansible configuration? (Choose all that apply.)
- A. ${HOME}/.ansible.cfg
- B. etc/ansible/ansible.cfg
- C. /etc/ansible/config
- D. ${ANSIBLE_CONFIG}
Answer: A,B,D
Explanation:
etc/ansible/ansible.cfg:This is where Ansible configuration is stored by default.
${HOME}/.ansible.cfg: Ansible will check this file for configuration.
NEW QUESTION 81
Create a file called mysecret.yml on the control host using ansible vault in home/bob/ansible. Set the password to 'notasafepass' and inside the file create a variable called dev_pass with the value of devops. Save the file.
Then go back in the file and change dev_pass value to devops123. Then change the vault password of mysecret.yml to verysafepass
Answer:
Explanation:
See the Explanation for complete Solution below.
Explanation
ansible-vault create lock.yml
New Vault Password: reallysafepw
Confirm: reallysafepw
NEW QUESTION 82
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-playbook -i inventory Buildwww.yml
- C. ansible -i inventory -p Buildwww.yml
- D. ansible-playbook -i inventory -p Buildwww.yml
Answer: B
Explanation:
This command is the correct way to run the playbook using the requested inventory
NEW QUESTION 83
Which of the following are sub commands of the ansible-galaxy command? (Choose all that apply.)
- A. create
- B. init
- C. find
- D. remove
Answer: D
Explanation:
The command ansible-galaxy remove <role> deletes a role installed on the system. The command `ansible-galaxy init <role> creates a shell for a new role in $PWD.
NEW QUESTION 84
What special character is used to designate that you are passing a variable file to a play using the -e flag?
- A. The at symbol: "@"
- B. The plugs sign: "+"
- C. There is no special character required.
- D. The pipe: "|"
Answer: A
Explanation:
The @ symbol will instruct Ansible to find the provided file and parse the file as a variable file.
NEW QUESTION 85
......
Certification Training for EX407 Exam Dumps Test Engine: https://www.exams4sures.com/RedHat/EX407-practice-exam-dumps.html
EX407 Training & Certification Get Latest Red Hat Certified Specialist : https://drive.google.com/open?id=1xsPOmbJl_bkyzwn4Vb1L-sO4uNsP9U9-