0% found this document useful (0 votes)
534 views5 pages

Redhat: Question & Answers

This document provides questions and answers for the Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8. It includes three questions related to creating Ansible playbooks and roles to manage logical volumes, modify the /etc/motd file based on host groups, and configure HAProxy and PHP using Ansible roles. The explanations provide YAML code snippets for Ansible playbooks and roles to automate the tasks described in each question.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
534 views5 pages

Redhat: Question & Answers

This document provides questions and answers for the Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8. It includes three questions related to creating Ansible playbooks and roles to manage logical volumes, modify the /etc/motd file based on host groups, and configure HAProxy and PHP using Ansible roles. The explanations provide YAML code snippets for Ansible playbooks and roles to automate the tasks described in each question.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

RedHat

EX294
Red Hat Certified Engineer (RHCE) exam for Red Hat
Enterprise Linux 8
QUESTION & ANSWERS

https://www.prepare4exams.com/EX294-exam-questions.html
QUESTION 1

In /home/sandy/ansible/ create a playbook called logvol.yml. In the play create a logical volume called
Iv0 and make it of size 1500MiB on volume group vgO If there is not enough space in the volume
group print a message "Not enough space for logical volume" and then make a 800MiB Iv0 instead. If
the volume group still doesn't exist, create a message "Volume group doesn't exist" Create an xfs
filesystem on all Iv0 logical volumes. Don't mount the logical volume.

Correct Answer: see explanation below

Explanation/Reference:

Solution as:

https://www.prepare4exams.com/EX294-exam-questions.html
QUESTION 2

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

Correct Answer: see explanation below

https://www.prepare4exams.com/EX294-exam-questions.html
Explanation/Reference:

/home/sandy/ansible/apache.yml

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

QUESTION 3

Create a file called requirements.yml in /home/sandy/ansible/roles a file called role.yml in


/home/sandy/ansible/. The haproxy-role should be used on the proxy host. And when you curl
http://node3.example.com it should display "Welcome to node4.example.com" and when you curl
again "Welcome to node5.example.com" The php-role should be used on the prod host.

Correct Answer: see explanation below

Explanation/Reference:

Solution as:

https://www.prepare4exams.com/EX294-exam-questions.html
Check the proxy host by curl http://node3.example.com

https://www.prepare4exams.com/EX294-exam-questions.html

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy