Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Red Hat > Red Hat Certifications > EX407 > EX407 Online Practice Questions and Answers

EX407 Online Practice Questions and Answers

Questions 4

Create the users in the file usersjist.yml file provided. Do this in a playbook called users.yml located at /home/sandy/ansible. The passwords for these users should be set using the lock.yml file from TASK7. When running the playbook, the lock.yml file should be unlocked with secret.txt file from TASK 7.

All users with the job of 'developer' should be created on the dev hosts, add them to the group devops, their password should be set using the pw_dev variable. Likewise create users with the job of 'manager' on the proxy host and add the users to the group 'managers', their password should be set using the pw_mgr variable.

users_list.yml

Buy Now

Correct Answer:

See the for complete Solution below. ansible-playbook users.yml -vault-password-file=secret.txt

Questions 5

Consider the following playbook:

# playbook name: /home/ansible/web.yml

-hosts: webservers become: yes

tasks:

-name: edit file 1

lineinfile:

path: /var/www/content.hml line: "{{ text }}" tags:

-content

-name: edit file 2

lineinfile: path: /var/www/index.hml

line: "{{ text }}"

tags:

-web

-name: edit file 3 lineinfile: path: /var/www/etc.hml line: "{{ text }}" tags: - content - misc

Which use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/www/index.html?

A. ansible-playbook /home/ansible/web.yml

B. ansible-playbook /home/ansible/web.yml --skip-tags web

C. ansible-playbook /home/ansible/web.yml --skip-tags content

D. ansible-playbook /home/ansible/web.yml --tags content

Buy Now

Correct Answer: C

This command skips the two tasks editing other files and only allows the task that is editing /var/www/index.html to run.

Questions 6

What keyword sets a change condition for a given task?

A. flag_change

B. changed_when

C. register_change

D. change_set

Buy Now

Correct Answer: C

Questions 7

Which keywords are valid? (Choose all that apply.)

A. never

B. rescue

C. always

D. block

Buy Now

Correct Answer: BCD

Always is a valid keyword that is part of the block group error handling set of keywords. Block is a valid keyword that is part of the block group error handling set of keywords.

Questions 8

Consider the following play excerpt:

-name: deploy app config template: src: app.xml.j2 dest: /etc/app.xml notify:

-

restart memcached

-

restart apache

-name: deploy httpd config

template:

src: httpd.conf.j2

dest: /etc/httpd/conf/httpd.conf

notify:

-restart apache

-name: deploy httpd config

template:

src: site.conf.j2

dest: /etc/httpd/conf/site.conf

notify:

-restart apache

Presuming all of the listed tasks in the play change the files they act on and the handler is correctly defined in another file, how many times is the "restart apache" handler ran?

A. 3

B. 0

C. 2

D. 1

Buy Now

Correct Answer: D

As long as at least one change is made that calls the restart apache handler, it will be run once.

Questions 9

Which of the following are Ansible modules? (Choose all that apply.)

A. get_dnshostname

B. setup

C. yum

D. ping

Buy Now

Correct Answer: BCD

yum: this module was covered in the lesson and can be found in Ansible documentation.

Questions 10

What are the default number of forks in Ansible?

A. 1

B. 5

C. 50

D. 10

Buy Now

Correct Answer: B

Questions 11

If forks is set to 100 and Ansible is run against an inventory of 50 servers, how many forks will Ansible create?

A. 63

B. 5

C. 50

D. 100

Buy Now

Correct Answer: C

Ansible will only spin up the number of forks that is necessary as long as it is less than the maximum allowed. In this case, the max is 100 so Ansible will make 50 forks to match the number of hosts target.

Questions 12

How is Ansible Tower installed on your system?

A. It is installed with Ansible core.

B. Ansible Tower is provided through an rpm install.

C. Ansible Tower is provided in a tarball containing binaries, config files, and an installation script that must be ran.

D. A disk image may be downloaded and mounted containing the necessary Ansible Tower binaries.

Buy Now

Correct Answer: C

Ansible Tower may be obtained as a tarball which must be untared to configure and install.

Questions 13

State whether the following statement is true or false.

There is a 10 user trial available.

A. True

B. False

Buy Now

Correct Answer: A

Exam Code: EX407
Exam Name: Red Hat Certified Specialist in Ansible Automation
Last Update: Jul 07, 2025
Questions: 124

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.