Certbus > RedHat > Red Hat Certified Architect (RHCA) > EX447 > EX447 Online Practice Questions and Answers

EX447 Online Practice Questions and Answers

Questions 4

CORRECT TEXT

Create a file called specs.empty in home/bob/ansible on the local machine as follows:

HOST=

MEMORY=

BIOS=

VDA_DISK_SIZE=

VDB_DISK_SIZE=

Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path /root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect theappropriate ansible facts.

A. See the for complete Solution below.

Browse 26 Q&As
Questions 5

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.

Browse 26 Q&As
Questions 6

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.

Browse 26 Q&As
Questions 7

CORRECT TEXT

Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following: The playbook should replaee any existing content of/etc/motd in the following text. Use ansible facts to display the FQDN of each host

On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".

On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".

On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".

A. See the for complete Solution below.

Browse 26 Q&As
Questions 8

CORRECT TEXT Create an ansible vault password file calledlock.ymlwith the passwordreallysafepwin the /home/sandy/ansibledirectory. In the lock.yml file define two variables. One ispw_devand the password is 'dev' and the other ispw_mgrand the password is 'mgr' Create a regular file calledsecret.txtwhich contains the password for lock.yml.

A. See the for complete Solution below.

Browse 26 Q&As
Questions 9

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.

Browse 26 Q&As
Questions 10

CORRECT TEXT

Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:

Uses thetimesync RHEL system role. Sets the ntp server to 0.uk.pool.ntp.org Sets the timezone to UTC

A. See the for complete Solution below.

Browse 26 Q&As
Questions 11

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.

Browse 26 Q&As
Questions 12

CORRECT TEXT

Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'

A. See the for complete Solution below.

Browse 26 Q&As
Questions 13

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.

Browse 26 Q&As
Questions 14

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.

Browse 26 Q&As
Questions 15

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.

Browse 26 Q&As
Questions 16

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.

Browse 26 Q&As
Questions 17

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.

Browse 26 Q&As
Questions 18

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.

Browse 26 Q&As
Exam Code: EX447
Exam Name: Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices
Last Update: Apr 22, 2024
Questions: 26 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99