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

EX447 Online Practice Questions and Answers

Questions 4

CORRECT TEXT

Create an empty encrypted file calledmyvault.yml in /home/sandy/ansibleand set the passwordtonotsafepw. Rekey the passwordtoiwejfj2221.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

ansible-vault create myvault.yml Create new password: notsafepw Confirm password: notsafepwansible-vault rekey myvault.yml Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221

Questions 5

CORRECT TEXT

Create a playbook calledwebdev.ymlin'home/sandy/ansible. The playbook will create a directory Avcbdev on dev host. The permission of the directory are 2755 and owner is webdev. Create a symbolic link from/Webdevto /var/www/html/ webdev. Serve a file from Avebdev7index.html which displays the text "Development" Curlhttp://node1.example.com/webdev/index.htmlto test

A. See the for complete Solution below.

Buy Now

Correct Answer: A

Solution as:

Questions 6

CORRECT TEXT

Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn't matter. Then create a playbook in /home/sandy/ansiblecalledhosts.ymland install the template on dev node at /root/myhosts

A. See the for complete Solution below.

Buy Now

Correct Answer: A

Solution as:

Questions 7

CORRECT TEXT

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

A. See the for complete Solution below.

Buy Now

Correct Answer: A

ansible-vault create lock.yml New Vault Password: reallysafepw Confirm: reallysafepw

Questions 8

CORRECT TEXT

Create a file calledrequirements.ymlin/home/sandy/ansible/rolesa file calledrole.yml in /home/sandy/ansible/.Thehaproxy-roleshould be used on theproxyhost. And when you curlhttp://node3.example.comit should display "Welcome tonode4.example.com" and when you curl again "Welcome tonode5.example.com" Thephp-roleshould be used on theprod host.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

Solution as:

Check the proxy host by curlhttp://node3.example.com

Questions 9

CORRECT TEXT

Using the Simulation Program, perform the following tasks:

Ad-Hoc Ansible Commands (Number Two) Task:

1.Use the ad-hoc command to make sure php is installed.

2.

Use the ad-hoc command to make sure that php is installed and is the latest version.

3.

Use the ad-hoc command to make sure that httpd is installed.

4.

Use the ad-hoc command to remove httpd fromthe servers.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

1.

ansible all -b -m yum -a 'name=php state=present'

2.

ansible all -b -m yum -a 'name=php state=latest'

3.

ansible all -b -m yum -a 'name=httpd state=latest'

4.

ansibleall -b -m yum -a 'name=httpd state=absent'

Questions 10

CORRECT TEXT

Create a playbookthatchanges the default target onallnodes tomulti-usertarqet. Do this in playbook file called target.yml in /home/sandy/ansible

A. See the for complete Solution below.

Buy Now

Correct Answer: A

-

name: change default target

hosts: all

tasks:

-

name: change target

file:

src:/usr/lib/systemd/system/multi-user.target dest: /etc/systemd/system/default.target state:

link

Questions 11

CORRECT TEXT

Create a file in/home/sandy/ansible/calledreport.yml.Using this playbook, get a filecalled report.txt(make it look exactly as below). Copy this file over to all remote hosts at /root/report.txt.Then edit the lines in the file to provide the real informationofthehosts. Ifa disk does not exist then write NONE.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

Solution as:

Questions 12

CORRECT TEXT

In /home/sandy/ansible/create a playbook calledlogvol.yml. Inthe play create a logical volume calledIv0and make it of size 1500MiB on volume groupvgOIf there is not enough space in the volume groupprinta message"Not enough space for logical volume"and then make a 800MiBIv0instead. If the volume group still doesn't exist, create a message "Volume group doesn't exist"Create anxfsfilesystem on allIv0logical volumes. Don't mount the logical volume.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

Solution as:

Questions 13

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 newhost 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-hoccommand.

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.

A. See the for complete Solution below.

Buy Now

Correct Answer: A

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

Exam Code: EX447
Exam Name: Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices
Last Update: Jun 10, 2025
Questions: 26

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.