Pass4itsure > Red Hat > Red Hat Certifications > EX447 > EX447 Online Practice Questions and Answers

EX447 Online Practice Questions and Answers

Questions 4

CORRECT TEXT

Create a file calledadhoc.shin/home/sandy/ansiblewhich will use adhoc commands to set up anew repository. The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is'https://dl.fedoraproject.org/pub/epel/epel-release-latest8.noarch.rmp'there is no gpgcheck, but you should enable the repo.

*

You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.

A.

See the for complete Solution below.

Buy Now
Questions 5

CORRECT TEXT

Create a file calledrequirements.ymlin/home/sandy/ansible/rolesto install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in /home/sandy/ansible/roles.

A. See the for complete Solution below.

Buy Now
Questions 6

CORRECT TEXT

Create a file calledpackages.yml in/home/sandy/ansibleto install some packages for the following hosts. On dev, prod and webservers install packages httpd, mod_ssl, and mariadb. On dev only install the development tools package. Also, on dev host update all the packages tothe latest.

A. See the for complete Solution below.

Buy Now
Questions 7

CORRECT TEXT

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

All users with the job of 'developer' should be created on thedevhosts, add them to the group devops, their password should be set using thepw_devvariable. Likewise create users with the job of 'manager' on theproxyhost and add the users to the group 'managers', their password should be set using thepw_mgrvariable.

A. See the for complete Solution below.

Buy Now
Questions 8

CORRECT TEXT

Create a role called sample-apache in/home/sandy/ansible/rolesthat enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template calledindex.html.j2which creates and serves a message from/

var/www/html/index.html Whenever the content of the file changes, restart the webserver service.

Welcome to [FQDN] on [IP]

Replace the FQDN with the fully qualified domain name and IP with the ip address of the node using ansible facts. Lastly, create a playbook in/home/sandy/ansible/called apache.ymland use the role to serve the index file on webserver hosts.

A. See the for complete Solution below.

Buy Now
Questions 9

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
Questions 10

CORRECT TEXT

Install and configure ansible

User sandy has been created on your control node with the appropriate permissions already, do not change or modify ssh keys. Install the necessary packages to run ansible on the control node. Configure ansible.cfg to be in folder /home/ sandy/ansible/ansible.cfg and configure to access remote machines via the sandy user. All roles should be in the path /home/sandy/ansible/roles. The inventory path should be in /home/sandy/ansible/invenlory.

You will have access to 5 nodes. node1.example.com

node2.example.com

node3.example.com

node4.example.com

node5.example.com

Configure these nodes to be in an inventory file where node I is a member of group dev. nodc2 is a member of group test, node3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

A. See the for complete Solution below.

Buy Now
Questions 11

CORRECT TEXT

Using the Simulation Program,perform the following tasks:

1.

Use an ansible ad-hoc command, check the connectivity of your servers.

2.

Use an ad-hoc ansible command, find the free space of your servers.

3.

Use an ad-hoc ansible command, find out the memory usage of your servers.

4.

Do an ls -l on the targets /var/log/messages file.

5.

Tail the contents of the targets /var/log/messages file.

A. See the for complete Solution below.

Buy Now
Questions 12

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
Questions 13

CORRECT TEXT

Create a playbook calledtimesvnc.yml in /home/sandy/ansible using rhel system role timesync. Set the time to use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.

A. See the for complete Solution below.

Buy Now
Exam Code: EX447
Exam Name: Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices
Last Update: May 29, 2026
Questions: 26
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99