Exam Details

  • Exam Code
    :EX294
  • Exam Name
    :Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 Exam
  • Certification
    :Red Hat Certification
  • Vendor
    :RedHat
  • Total Questions
    :75 Q&As
  • Last Updated
    :May 16, 2024

RedHat Red Hat Certification EX294 Questions & Answers

  • Question 41:

    Configure a mail alias to your MTA, for example, send emails to harry but mary actually is receiving emails.

    A. Answer: See the for complete Solution below.

  • Question 42:

    Create a role called sample-apache in /home/sandy/ansible/roles that enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template called index.html.j2 which 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.yml and use the role to serve the index file on webserver hosts.

    A. Answer: See the for complete Solution below.

  • Question 43:

    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 of test then write "Test" If host is a member of prod then write "Production"

    A. Answer: See the for complete Solution below.

  • Question 44:

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

  • Question 45:

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

  • Question 46:

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

  • Question 47:

    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

    A. Answer: See the for complete Solution below.

  • Question 48:

    Create a file called requirements.yml in /home/sandy/ansible/roles to 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. Answer: See the for complete Solution below.

  • Question 49:

    Create an ansible vault password file called lock.yml with the password reallysafepw in the /home/sandy/ansible directory. In the lock.yml file define two variables. One is pw_dev and the password is 'dev' and the other is pw_mgr and the password is 'mgr' Create a regular file called secret.txt which contains the password for lock.yml.

    A. Answer: See the for complete Solution below.

  • Question 50:

    Create an empty encrypted file called myvault.yml in /home/sandy/ansible and set the password to notsafepw. Rekey the password to iwejfj2221.

    A. Answer: See the for complete Solution below.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only RedHat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX294 exam preparations and RedHat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.