Exam Details

  • Exam Code
    :EX294
  • Exam Name
    :Red Hat Certified Engineer (RHCE)
  • Certification
    :Red Hat Certifications
  • Vendor
    :Red Hat
  • Total Questions
    :75 Q&As
  • Last Updated
    :Mar 03, 2025

Red Hat Red Hat Certifications EX294 Questions & Answers

  • Question 61:

    Create a role called apache in "/home/admin/ansible/roles" with the following

    requirements:

    --> The httpd package is installed, enabled on boot, and started.

    --> The firewall is enabled and running with a rule to allow access to the web server.

    --> template file index.html.j2 is used to create the file /var/www/html/index.html

    with the output:

    Welcome to HOSTNAME on IPADDRESS

    --> Where HOSTNAME is the fqdn of the managed node and IPADDRESS is the IP- Address of

    the managed node.

    note: you have to create index.html.j2 file.

    --> Create a playbook called httpd.yml that uses this role and the playbook runs on

    hosts in the webservers host group.

    A. Answer: See the for complete Solution below.

  • Question 62:

    Generate a hosts file:

    * Download an initial template file hosts.j2 from http://classroom.example.com/

    hosts.j2 to

    /home/admin/ansible/ Complete the template so that it can be used to generate a file

    with a line for each inventory host in the same format as /etc/hosts:

    172.25.250.9 workstation.lab.example.com workstation

    *

    Create a playbook called gen_hosts.yml that uses this template to generate the file

    /etc/myhosts on hosts in the dev host group.

    *

    When completed, the file /etc/myhosts on hosts in the dev host group should have a

    line for

    each managed host:

    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    172.25.250.10 serevra.lab.example.com servera

    172.25.250.11 serevrb.lab.example.com serverb

    172.25.250.12 serevrc.lab.example.com serverc

    172.25.250.13 serevrd.lab.example.com serverd

    while practising you to create these file hear. But in exam have to download as per

    questation.

    hosts.j2 file consists.

    localhost localhost.localdomain localhost4 localhost4.localdomain4

    ::1

    localhost localhost.localdomain localhost6 localhost6.localdomain6

    A. Answer: See the for complete Solution below.

  • Question 63:

    Install and configure Ansible on the control-node control.realmX.example.com as

    follows:

    --> Install the required packages

    --> Create a static inventory file called /home/admin/ansible/inventory as follows:

    node1.realmX.example.com is a member of the dev host group

    node2.realmX.example.com is a member of the test host group

    node3.realmX.example.com and node4.realmX.example.com are members of the prod

    host group

    node5.realmX.example.com is a member of the balancers host group.

    prod group is a member of the webservers host group

    --> Create a configuration file called ansible.cfg as follows:

    --> The host inventory file /home/admin/ansible/inventory is defined

    --> The location of roles used in playbooks is defined as /home/admin/ansible/ roles

    A. Answer: See the for complete Solution below.

  • Question 64:

    Create an Ansible vault to store user passwords as follows:

    *

    The name of the vault is valut.yml

    *

    The vault contains two variables as follows:

    -dev_pass with value wakennym

    -mgr_pass with value rocky

    *

    The password to encrypt and decrypt the vault is atenorth

    *

    The password is stored in the file /home/admin/ansible/password.txt

    A.

    Answer: See the for complete Solution below.

  • Question 65:

    Create a playbook called hwreport.yml that produces an output file called /root/

    hwreport.txt on all managed nodes with the following information:

    --> Inventory host name

    --> Total memory in MB

    --> BIOS version

    --> Size of disk device vda

    --> Size of disk device vdb

    Each line of the output file contains a single key-value pair.

    * Your playbook should:

    --> Download the file hwreport.empty from the URL http://classroom.example.com/

    hwreport.empty and

    save it as /root/hwreport.txt --> Modify with the correct values.

    note: If a hardware item does not exist, the associated value should be set to NONE

    while practising you to create these file hear. But in exam have to download as per

    questation.

    hwreport.txt file consists.

    my_sys=hostname

    my_BIOS=biosversion

    my_MEMORY=memory

    my_vda=vdasize

    my_vdb=vdbsize

    A. Answer: See the for complete Solution below.

  • Question 66:

    Modify file content.

    Create a playbook called /home/admin/ansible/modify.yml as follows:

    *

    The playbook runs on all inventory hosts

    *

    The playbook replaces the contents of /etc/issue with a single line of text as

    follows:

    --> On hosts in the dev host group, the line reads: "Development"

    --> On hosts in the test host group, the line reads: "Test"

    --> On hosts in the prod host group, the line reads: "Production"

    A. Answer: See the for complete Solution below.

  • Question 67:

    Create a playbook called packages.yml that:

    --> Installs the php and mariadb packages on hosts in the dev, test, and prod host groups.

    --> Installs the Development Tools package group on hosts in the dev host group.

    --> Updates all packages to the latest version on hosts in the dev host group.

    A. Answer: See the for complete Solution below.

  • Question 68:

    Create and run an Ansible ad-hoc command.

    --> As a system administrator, you will need to install software on the managed

    nodes.

    --> Create a shell script called yum-pack.sh that runs an Ansible ad-hoc command to

    create yum-repository on each of the managed nodes as follows:

    --> repository1

    1.

    The name of the repository is EX407

    2.

    The description is "Ex407 Description"

    3.

    The base URL is http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/

    4.

    GPG signature checking is enabled

    5.

    The GPG key URL is http://content.example.com/rhel8.0/x86_64/dvd/RPM-GPG- KEYredhat

    release

    6.

    The repository is enabled

    --> repository2

    1.

    The name of the repository is EXX407

    2.

    The description is "Exx407 Description"

    3.

    The base URL is http://content.example.com/rhel8.0/x86_64/dvd/AppStream/

    4.

    GPG signature checking is enabled

    5.

    The GPG key URL is http://content.example.com/rhel8.0/x86_64/dvd/ RPM-GPG- KEYredhat

    release

    6.

    The repository is enabled

    A. Answer: See the for complete Solution below.

  • Question 69:

    Use Ansible Galaxy with a requirements file called /home/admin/ansible/roles/

    install.yml to download and install roles to /home/admin/ansible/roles from the

    following URLs:

    http:// classroom.example.com /role1.tar.gz The name of this role should be balancer

    http:// classroom.example.com /role2.tar.gz The name of this role should be phphello

    A. Answer: See the for complete Solution below.

  • Question 70:

    Install the RHEL system roles package and create a playbook called timesync.yml that: --> Runs over all managed hosts.

    --> Uses the timesync role.

    --> Configures the role to use the time server 192.168.10.254 ( Hear in redhat lab

    use "classroom.example.com" )

    --> Configures the role to set the iburst parameter as enabled.

    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 Red Hat 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 Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.