Challenge lab there Network Load Balancer will route traffic to EC2 Instances
Services Covered
EC2
Lab description
This hands-on lab challenge will test your practical ability to configure a solution in a production-like AWS environment. You will be presented with a task and set of requirements that you must fulfill to pass the challenge.
Learning Objectives
- Create Target Groups and register target instances
- Configure Listeners
- Enable access logs for NLB
- Enable stickiness
Lab date
07-11-2021
Prerequisites
- AWS account
Lab steps
- Create UDP target group for DNS servers. Create a target group for dns servers that satisfies the following: Contains dns in its name, Uses port 53, Uses the UDP protocol.
- Create TCP target group for web servers. Create a target group for web servers that satisfies the following: Contains web in its name, Uses port 80, Uses the TCP protocol.
- Register an Instance in the Dns Target Group. Register the dns-server instance in the dns target group using port 53. Register the instance named web-server in the web target group using port 80.
- Add Listener for DNS Targets. Add a listener to the network-load-balancer that sends traffic to your dns target group. The listener must use port 53 and the UDP protocol.
- Add Listener for Web Targets. Add a listener to the network-load-balancer that sends traffic to your web target group. The listener must use port 80 and the TCP protocol.
- Enable Stickiness for the Web Target Group. Enable stickiness for the web target group. Navigate to the web target group and then go to Edit attributes and check in Stickiness.
- Enable access logs for the network-load-balancer and store the logs in Amazon S3. Navigate to Load Balancers, and in Description tag go to Edit attributes.