Leads4pass > 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.

Buy Now
Questions 5

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.

Buy Now
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
Questions 7

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.

Buy Now
Questions 8

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

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.

Buy Now
Questions 10

CORRECT TEXT

Install and configure ansible

Userbobhas been created on your control node. Give him the appropriate permissions on the control node.Install the necessary packages to run ansible on the control node.

Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:

The roles path should include /home/bob/ansible/roles, as well as any other path that maybe required for the course of the sample exam.

The inventory file path is /home/bob/ansible/inventory.

Ansible should be able to manage 10 hosts at a single time.

Ansible should connect to all managed nodes using the bob user.

Create an inventory file for the following five nodes:

nodel.example.com

node2.example.com

node3.example.com

node4.example.com

node5.example.com

Configure these nodes to be in an inventory file where node1 is a member of groupdev. nodc2 is a member of group test, nodc3 is a member of groupproxy,nodc4 and node 5 are members of groupprod.Also,prodis a member of group

webservers.

A. See the for complete Solution below.

Buy Now
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
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: Dec 13, 2024
Questions: 26
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99