New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX294 Exam - Topic 4 Question 51 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 51
Topic #: 4
[All EX294 Questions]

Create a playbook called balance.yml as follows:

* The playbook contains a play that runs on hosts in balancers host group and uses

the balancer role.

--> This role configures a service to loadbalance webserver requests between hosts

in the webservers host group.curl

--> When implemented, browsing to hosts in the balancers host group (for example

http://node5.example.com) should produce the following output:

Welcome to node3.example.com on 192.168.10.z

--> Reloading the browser should return output from the alternate web server:

Welcome to node4.example.com on 192.168.10.a

* The playbook contains a play that runs on hosts in webservers host group and uses

the phphello role.

--> When implemented, browsing to hosts in the webservers host group with the URL /

hello.php should produce the following output:

Hello PHP World from FQDN

--> where FQDN is the fully qualified domain name of the host. For example,

browsing to http://node3.example.com/hello.php, should produce the following output:

Hello PHP World from node3.example.com

* Similarly, browsing to http://node4.example.com/hello.php, should produce the

following output:

Hello PHP World from node4.example.com

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Iluminada
3 months ago
I think the syntax looks good, but double-check the hostnames!
upvoted 0 times
...
Margart
3 months ago
Just a heads up, make sure the roles are correctly defined in your Ansible config.
upvoted 0 times
...
Mable
3 months ago
Wait, does it really switch between nodes like that? Sounds too good to be true.
upvoted 0 times
...
Trina
4 months ago
Totally agree, it's a solid setup for traffic management!
upvoted 0 times
...
Elbert
4 months ago
This playbook sets up load balancing between web servers.
upvoted 0 times
...
Lavonda
4 months ago
I remember we had to check the syntax with ansible-playbook before running it. I hope I don't forget that step during the exam!
upvoted 0 times
...
Lai
4 months ago
I'm a bit confused about the output requirements. Do we need to specify the exact IP addresses in the playbook, or will it automatically resolve them?
upvoted 0 times
...
Jamika
4 months ago
I practiced a similar question where we had to set up a load balancer, and I think we used a similar structure for the playbook. Just need to make sure the roles are correctly referenced.
upvoted 0 times
...
Alisha
5 months ago
I think I remember that we need to define the plays for both the balancer and webservers groups, but I'm not entirely sure about the syntax for including roles.
upvoted 0 times
...
Carma
5 months ago
This seems like a good opportunity to demonstrate my Ansible skills. I'll make sure to thoroughly test the playbook before submitting it, and double-check that the output matches the expected results for both the balancer and webserver hosts.
upvoted 0 times
...
Scarlet
5 months ago
Okay, I think I've got a good handle on this. The key is creating the balancer.yml file with the two plays - one for the balancers host group using the balancer role, and one for the webservers host group using the phphello role. I'll just need to make sure the roles are set up correctly and the playbook runs without any syntax errors.
upvoted 0 times
...
Felix
5 months ago
This looks like a pretty straightforward Ansible playbook question. I think I can handle this - I'll just need to create the balancer.yml file with the two plays as described, and make sure the roles are set up correctly.
upvoted 0 times
...
Audry
5 months ago
Hmm, I'm a little unsure about the specifics of the balancer role and how to configure the load balancing between the webservers. I'll need to review the details carefully and make sure I understand how to properly implement that functionality.
upvoted 0 times
...
Sherill
5 months ago
Hmm, I'm a little unsure about the differences between the options here. I'll need to carefully review the details of each approach to make sure I understand the implications before selecting an answer.
upvoted 0 times
...
Raylene
10 months ago
Haha, 'Welcome to node3.example.com on 192.168.10.z'? I hope the actual IP address is a little more specific than that!
upvoted 0 times
Flo
8 months ago
User 4: That's a good idea, we should update the playbook to show the exact IP.
upvoted 0 times
...
Tanesha
8 months ago
User 3: Maybe we can customize it to display the specific IP address.
upvoted 0 times
...
Raylene
9 months ago
User 2: I agree, it would be better if it showed the actual IP address.
upvoted 0 times
...
Svetlana
10 months ago
User 2
upvoted 0 times
...
Rebbecca
10 months ago
User 1: Yeah, that output seems a bit generic.
upvoted 0 times
...
Major
10 months ago
User 1
upvoted 0 times
...
...
Alishia
10 months ago
I like the way the playbook is structured, with separate plays for the balancers and webservers. It makes it easy to understand the different components being configured.
upvoted 0 times
...
Minna
10 months ago
The playbook looks good, but I'm not sure about the name 'balance.yml'. Shouldn't it be 'balancer.yml' to match the role name?
upvoted 0 times
...
Yuki
11 months ago
And we have to use the balancer role for load balancing webserver requests.
upvoted 0 times
...
Wei
11 months ago
Yes, we need to include plays for both balancers and webservers host groups.
upvoted 0 times
...
Yuki
11 months ago
I think the question is asking us to create a playbook called balance.yml.
upvoted 0 times
...

Save Cancel