CloudGuild · Blog · Cheat sheets · Lessons · Certifications
ELB + Auto Scaling — Elastic Front Door: When to Use What (and How the Exam Tests It)
Explore the decision-making process for using ELB and Auto Scaling in AWS. Learn how to apply these concepts for the SAA-C03 exam.
Choosing the right architecture for your applications is crucial. In AWS, Elastic Load Balancing (ELB) and Auto Scaling are essential components. They help manage traffic and ensure availability. Let's explore when to use each service and how the exam tests this knowledge.
Understanding ELB and Auto Scaling
Elastic Load Balancing (ELB) distributes incoming application traffic across multiple targets, such as EC2 instances, in different Availability Zones (AZs). It also performs health checks to ensure that traffic only goes to healthy targets.
Auto Scaling groups (ASGs) maintain the desired number of instances based on demand. They automatically replace unhealthy instances, ensuring that your application remains available.
When to Use What
Choosing the right load balancer is critical. Here’s a breakdown:
| Load Balancer | Protocols | Features | Use Case |
|---|---|---|---|
| Application Load Balancer (ALB) | HTTP/HTTPS | Path/Host routing, Layer 7 | Web applications |
| Network Load Balancer (NLB) | TCP/UDP | Ultra-low latency, Static IPs, Layer 4 | High-performance applications |
| Gateway Load Balancer (GWLB) | N/A | Inline third-party virtual appliances | Security appliances |
Key Architectural Decisions
- Multi-AZ Deployment: Always deploy ASGs across multiple AZs. This ensures resilience and high availability.
- Scaling Policy: Use target tracking scaling to maintain a CPU utilization around 60%. This is the simplest and most effective method. Step scaling or scheduled scaling can be used for predictable workloads.
- Health Checks: Health checks are vital. They determine both the routing decisions of the load balancer and the replacement of instances in the ASG.
Gotchas & Exam Traps
Be aware of common traps in the exam:
- If you see a question about "automatically replacing failed instances and maintaining capacity," the answer is ASG.
- If a scenario mentions "routing by URL path," choose ALB; for "static IP or extreme performance," NLB is the right answer.
- Remember that statelessness is important. Offload session state management to services like ElastiCache or DynamoDB. This allows for safe scaling without issues.
How the Exam Tests This
The AWS Certified Solutions Architect - Associate exam often tests these concepts in specific patterns:
- Scenario-Based Questions: You may be presented with a real-world scenario that requires you to identify the appropriate load balancer or scaling strategy.
- Multiple-Choice Questions: Expect questions where you must choose between ALB, NLB, or ASG based on given requirements.
- True/False Statements: Some questions might present statements about load balancing or scaling that you need to validate based on your knowledge.
The Rule to Remember
Always deploy a multi-AZ Auto Scaling group with an Application Load Balancer for elastic web applications.
For more practice and to solidify your knowledge, Take the free SAA-C03 mock exam.