This page was exported from Exam for engine [ http://blog.test4engine.com ] Export date:Mon Nov 18 2:43:51 2024 / +0000 GMT ___________________________________________________ Title: 2022 100% Free EX294 Daily Practice Exam With 20 Questions [Q11-Q26] --------------------------------------------------- 2022 100% Free EX294 Daily Practice Exam With 20 Questions EX294 exam torrent RedHat study guide RedHat EX294 Exam Syllabus Topics: TopicDetailsTopic 1Create SSH keys and distribute them to managed nodes Create and use static invariants to define host groupsTopic 2Install and configure a compatible control unit Create a static host inventory file Create a configuration fileTopic 3Unable to create drama and playbook Install the required package Parallel managementTopic 4Create a simple script Configure error handling Working with roles Download and use roles from Ansible GalaxyTopic 5Create simple shell scripts that run custom Ansible commands Administrative work scenarioTopic 6To protect sensitive data, use Ansible Vault in the user guide Take advantage of additional enhancementsTopic 7Create managed managed nodes Configure privilege escalation on managed nodesTopic 8Understand and use basic tools System deployment, configuration and maintenanceTopic 9Create and configure file systems User and group management Security managementTopic 10Configure local storage Operating system Red Hat EX294 Exam Certification Details: Exam Price$400 USDSchedule ExamPEARSON VUEExam CodeEX294Number of Questions20Exam NameRed Hat Certified Engineer (RHCE)Duration240 minutes   NO.11 Install and configure ansibleUser 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.comnode2.example.comnode3.example.comnode4.example.comnode5.example.comConfigure 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.  In/home/sandy/ansible/ansible.cfg[defaults]inventory=/home/sandy/ansible/inventoryroles_path=/home/sandy/ansible/rolesremote_user= sandyhost_key_checking=false[privilegeescalation]become=truebecome_user=rootbecome_ask_pass=falseIn /home/sandy/ansible/inventory[dev]node 1 .example.com[test]node2.example.comnode4.example.comnode5 .example.com[webservers:children]prod  In/home/sandy/ansible/ansible.cfg[defaults]inventory=/home/sandy/ansible/inventoryroles_path=/home/sandy/ansible/rolesremote_user= sandyhost_key_checking=false[privilegeescalation]become=truebecome_user=rootbecome_method=sudobecome_ask_pass=falseIn /home/sandy/ansible/inventory[dev]node 1 .example.com[test]node2.example.com[proxy]node3 .example.com[prod]node4.example.comnode5 .example.com[webservers:children]prod NO.12 Create a playbook that changes the default target on all nodes to multi-user tarqet. Do this in playbook file called target.yml in /home/sandy/ansible  – name: change default targethosts: alltasks:– name: change targetfile:src: /usr/lib/systemd/system/multi-user.target dest: /etc/systemd/system/default.target state: link  – name: change default targethosts: all– name: change targetfile:src: /usr/lib/systemd/system/multi-user.target dest: /etc/systemd/system/default.target state: link NO.13 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”.  /home/sandy/ansible/apache.yml/home/sandy/ansible/roles/sample-apache/tasks/main.yml  /home/sandy/ansible/apache.yml/home/sandy/ansible/roles/sample-apache/tasks/main.yml NO.14 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’  Solution as:  Solution as: NO.15 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 the appropriate ansible facts.  Solution as:  Solution as: NO.16 Create a playbook called webdev.yml in ‘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 /Webdev to /var/www/html/webdev. Serve a file from Avebdev7index.html which displays the text “Development” Curl http://node1.example.com/webdev/index.html to test  Solution as:  Solution as: NO.17 Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new repository. The name of the repo will be ‘EPEL’ the description ‘RHEL8’ the baseurl is ‘https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.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.  chmod 0117 adhoc.shvim adhoc.sh#I/bin/bashansible all -m yum_repository -a ‘name=EPEL description=RHEL8baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp gpgcheck=no enabled=yes’  chmod 0777 adhoc.shvim adhoc.sh#I/bin/bashansible all -m yum_repository -a ‘name=EPEL description=RHEL8baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp gpgcheck=no enabled=yes’ NO.18 Create a file called packages.yml in /home/sandy/ansible to 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 to the latest.  Option** NOTE 1 a more acceptable answer is likely ‘present’ since it’s not asking to install the latest state: present** NOTE 2 need to update the development node– name: update all packages on development nodeyum:name: ‘*’state: latest  Option** NOTE 1 a more acceptable answer is likely ‘present’ since it’s not asking to install the latest state: present** NOTE 2 need to update the development node– name: update all packages on development nodeyum:name: ‘*’state: latest  Loading … Use Valid New EX294 Test Notes & EX294 Valid Exam Guide: https://www.test4engine.com/EX294_exam-latest-braindumps.html --------------------------------------------------- Images: https://blog.test4engine.com/wp-content/plugins/watu/loading.gif https://blog.test4engine.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-05-11 16:52:25 Post date GMT: 2022-05-11 16:52:25 Post modified date: 2022-05-11 16:52:25 Post modified date GMT: 2022-05-11 16:52:25