Bird
0
0

You need to design a system that handles millions of TCP connections with very low latency and also routes HTTP requests based on URL paths. What is the best load balancer setup?

hard📝 Best Practice Q15 of 15
AWS - Elastic Load Balancing
You need to design a system that handles millions of TCP connections with very low latency and also routes HTTP requests based on URL paths. What is the best load balancer setup?
AUse NLB for TCP connections and ALB for HTTP routing
BUse only an Application Load Balancer (ALB) for all traffic
CUse only a Network Load Balancer (NLB) for all traffic
DUse Classic Load Balancer for both TCP and HTTP traffic
Step-by-Step Solution
Solution:
  1. Step 1: Identify requirements for TCP and HTTP traffic

    Millions of TCP connections need low latency, best handled by NLB. HTTP routing by URL paths requires ALB.
  2. Step 2: Combine load balancers for best performance

    Use NLB for TCP traffic and ALB for HTTP traffic to meet both needs efficiently.
  3. Final Answer:

    Use NLB for TCP connections and ALB for HTTP routing -> Option A
  4. Quick Check:

    TCP low latency + HTTP routing = NLB + ALB [OK]
Quick Trick: Combine NLB for TCP and ALB for HTTP routing [OK]
Common Mistakes:
  • Using only ALB for TCP traffic causing latency
  • Using only NLB missing HTTP routing features
  • Choosing Classic Load Balancer for modern needs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes