
Answer-first summary for fast verification
Answer: Create an Application Load Balancer (ALB) in the production VPC. Create a target group Specify ip as the target type. Register the EC2 instances and the on-premises servers with the target group. Enable application-based session affinity (sticky sessions) on the ALB.
The question requires a load balancing solution that can handle HTTPS traffic, distribute it across both AWS and on-premises web servers, and ensure that HTTPS requests go to the same web server throughout the session. This requirement points towards the need for session affinity or sticky sessions. Among the options, Application Load Balancer (ALB) supports application-based session affinity (sticky sessions), which is necessary for maintaining session consistency. Network Load Balancer (NLB) does not support session affinity based on application cookies, which is required here. Therefore, options involving NLB (A and C) are incorrect. Between the ALB options (B and D), the correct choice is the one that specifies 'ip' as the target type because it allows for the registration of both EC2 instances and on-premises servers. Option D incorrectly specifies 'instance' as the target type, which is not suitable for on-premises servers. Hence, the correct answer is B.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company operates 10 web server Amazon EC2 instances in an Auto Scaling group within a production VPC and 10 additional web servers in an on-premises data center. They have a 10 Gbps AWS Direct Connect connection linking the on-premises data center to the production VPC. The company requires a load balancing solution to handle HTTPS traffic from thousands of external users, distributing it across both AWS and on-premises web servers. The solution must ensure that HTTPS requests are consistently routed to the same web server for the duration of each session, regardless of the server's location.
Which solution meets these requirements?
A
Create a Network Load Balancer (NLB) in the production VPC. Create a target group. Specify ip as the target type. Register the EC2 instances and the on-premises servers with the target group Enable connection draining on the NLB
B
Create an Application Load Balancer (ALB) in the production VPC. Create a target group Specify ip as the target type. Register the EC2 instances and the on-premises servers with the target group. Enable application-based session affinity (sticky sessions) on the ALB.
C
Create a Network Load Balancer (NLB) in the production VPCreate a target group. Specify instance as the target type. Register the EC2 instances and the on-premises servers with the target group. Enable session affinity (sticky sessions) on the NLB.
D
Create an Application Load Balancer (ALB) in the production VPC. Create a target group. Specify instance as the target type Register the EC2 instances and the on-premises servers with the target group Enable application-based session affinity (sticky sessions) on the ALB.
No comments yet.