EX447 Pre-Exam Practice Tests | (Updated 26 Questions) Valid EX447 Exam Q A PDF - One Year Free Update RedHat EX447 Exam Syllabus Topics: TopicDetailsTopic 1Create a source control credential Control privilege execution Manage inventory variablesTopic 2Implement loops using structures other than simple lists using lookup plugins and filters Add those modified files back into the Git repositoryTopic [...]

EX447 Pre-Exam Practice Tests (Updated 26 Questions) [Q12-Q27]

Share

EX447 Pre-Exam Practice Tests | (Updated 26 Questions)

Valid EX447 Exam Q&A PDF - One Year Free Update


RedHat EX447 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Create a source control credential
  • Control privilege execution
  • Manage inventory variables
Topic 2
  • Implement loops using structures other than simple lists using lookup plugins and filters
  • Add those modified files back into the Git repository
Topic 3
  • Use lookup and query functions to template data from external sources into playbooks and deployed template files
Topic 4
  • Inspect, validate, and manipulate variables containing networking information with filters
  • Update, modify and create files in a Git repository
Topic 5
  • Set up directories containing multiple host variable files for some of your managed hosts
  • Create machine credentials to access inventory hosts
Topic 6
  • Write an API scriptlet to launch a job
  • Manage inventories and credentials
  • Create a job workflow template
Topic 7
  • Run a task for a managed host on a different host, then control whether facts gathered by that task are delegated to the managed host or the other host
Topic 8
  • Override the name used in the inventory file with a different name or IP address
  • Create Ansible Tower users and teams and make associations of one to the other
Topic 9
  • Use special variables to override the host, port, or remote user Ansible uses for a specific host
  • Transform data with filters and plugins

 

NEW QUESTION 12
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.

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
in /home/sandy/ansible/roles
vim requirements.yml

Run the requirements file from the roles directory:
ansible-galaxy install -r requirements.yml -p /home/sandy/ansible/roles

 

NEW QUESTION 13
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 group nodc4 and node 5 are members of groupprod.Also,prodis a member of group webservers.

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
In/home/sandy/ansible/ansible.cfg
[defaults]
inventory=/home/sandy/ansible/inventory
roles_path=/home/sandy/ansible/roles
remote_user= sandy
host_key_checking=false
[privilegeescalation]
become=true
become_user=root
become_method=sudo
become_ask_pass=false
In /home/sandy/ansible/inventory
[dev]
node1 .example.com
[test]
node2.example.com
[proxy]
node3 .example.com
[prod]
node4.example.com
node5 .example.com
[webservers:children]
prod

 

NEW QUESTION 14
Create a role called sample-apache and store it in /home/bob/ansible/roles. The role should satisfy the following requirements:
*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template
*index.html.j2 and make sure this runs Create a template index.html.j2that displays "Welcome to the server HOSTNAME" In a play called apache.yml in /home/bob/ansible/ run the sample-apache role.

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
/home/sandy/ansible/apache.yml

/home/sandy/ansible/roles/sample-apache/tasks/main.yml

/home/sandy/ansible/roles/sample-apache/templates/index.html.j2

In /home/sandy/ansible/roles/sample-apache/handlers/main.yml

 

NEW QUESTION 15
Create a file in/home/sandy/ansible/calledreport.yml.Using this playbook, get a filecalledreport.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.

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
Solution as:

 

NEW QUESTION 16
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

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
ansible-vault create lock.yml
New Vault Password: reallysafepw
Confirm: reallysafepw

 

NEW QUESTION 17
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'

Answer:

Explanation:
See the Explanation forcomplete Solution below.
Explanation
Solution as:

 

NEW QUESTION 18
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.

Answer:

Explanation:
See the Explanation forcomplete Solution below.
Explanation
Solution as:

 

NEW QUESTION 19
Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member oftestthen write "Test" If host is a member ofprodthen write "Production"

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
Solution as:

 

NEW QUESTION 20
Create a file calledrequirements.ymlin/home/sandy/ansible/rolesa file calledrole.yml in
/home/sandy/ansible/.Thehaproxy-roleshould be used on the host. And when you curl
http://node3.example.comit should display "Welcome tonode4.example.com" and when you curl again
"Welcome tonode5.example.com" The

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
Solution as:

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

 

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

Answer:

Explanation:
See the Explanation for complete Solution below.
Explanation
- 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

 

NEW QUESTION 22
......

Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices Free Update Certification Sample Questions: https://www.realvalidexam.com/EX447-real-exam-dumps.html

Trend for RedHat EX447 pdf dumps before actual exam: https://drive.google.com/open?id=1mK_M-c1JHlW6iLNY2VEiApNz5EmH2RZ1