AWS Certified Cloud Practitioner (CLF-C02)Cloud Technology and ServicesEasy
A company runs a web application on multiple EC2 instances across two Availability Zones. It wants incoming traffic automatically distributed across the healthy instances to improve fault tolerance. Which AWS service should the company use?
- AAmazon SQS
- BElastic Load Balancing
- CAWS Global Accelerator
- DAmazon CloudFront
Show answer & explanationAnswer & explanation
Correct answer: B. Elastic Load Balancing
Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets, such as EC2 instances, in one or more Availability Zones, routing only to healthy instances.
Why the other options are wrong
- A. SQS is a message queuing service, not for distributing web traffic.
- C. Global Accelerator improves global network performance but is not the primary load balancing service for EC2 traffic distribution in this scenario.
- D. CloudFront is a content delivery network for caching content at edge locations.
Elastic Load Balancing (ELB)
A managed service that automatically distributes incoming traffic across multiple targets like EC2 instances to improve availability and fault tolerance.
- Supports Application, Network, and Gateway Load Balancer types
- Performs health checks to route traffic only to healthy targets
- Works across multiple Availability Zones
Memory trick: ELB is the traffic cop directing cars to open lanes.