Skip to content
Learn Netverks

Lesson

Step 23/36 64% through track

load-balancers-preview

Load balancers preview

Last reviewed Jun 1, 2026 Content v20260601
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Load balancers preview: AWS concepts, console/CLI practice patterns, and how the service fits in a typical cloud architecture.

Teams apply Load balancers preview in every serious AWS rollout—skipping it leaves blind spots in reviews and incidents.

You will apply Load balancers preview in contexts like: Three-tier web apps, private subnets for databases, and hybrid connectivity.

Read the lesson, reproduce steps in your AWS Free Tier or sandbox (console and optional AWS CLI), diagram the architecture in notes, and complete MCQs—no in-browser cloud lab.

When you can explain the previous lesson's ideas in your own words.

Elastic Load Balancing distributes traffic across targets. Application Load Balancer (ALB) handles HTTP/HTTPS at Layer 7; Network Load Balancer (NLB) handles TCP/UDP at Layer 4 with extreme performance.

ALB features

  • Path-based routing (/api/* → one target group)
  • Host-based routing (api.example.com)
  • Health checks remove unhealthy EC2/tasks
  • SSL termination at the load balancer

Typical architecture

Internet → ALB (public subnets) → EC2/ECS tasks (private subnets) → RDS. Django behind Gunicorn registers as ALB target on port 8000.

List load balancers

aws elbv2 describe-load-balancers \
  --query 'LoadBalancers[].{Name:LoadBalancerName,Type:Type,DNS:DNSName}' \
  --output table

Practice: Create S3 buckets and VPC resources only in a sandbox account. Use unique bucket names globally; delete buckets and empty objects when finished.

Cost: ALB/NLB bill hourly plus LCU usage—delete sandbox load balancers when done.

Important interview questions and answers

  1. Q: ALB vs NLB?
    A: ALB for HTTP routing and host/path rules; NLB for low-latency TCP/UDP passthrough.
  2. Q: Health check purpose?
    A: Stop sending traffic to failed instances until they recover or are replaced.

Self-check

  1. What layer does an ALB operate at?
  2. Why terminate SSL at the load balancer?

Tip: Delete sandbox ALBs when done—they bill hourly even with no traffic.

Interview prep

ALB vs NLB?

ALB Layer 7 HTTP routing; NLB Layer 4 high-performance TCP/UDP.

Health check?

Removes unhealthy targets so users only hit working instances.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • ALB layer?
  • Health check role?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump