CLF-C02 Question 182
Select 3Your company has launched a new web application hosted on multiple Amazon EC2 instances across multiple Availability Zones. To ensure high availability and automatically distribute incoming traffic between these instances, which of the following are purposes of implementing a load balancer in this scenario?
- A
Distribute incoming traffic across multiple EC2 instances to improve application reliability.
- B
Automatically scale the EC2 instances up or down based on traffic demand.
- C
Maintain application availability by redirecting traffic to healthy EC2 instances only.
- D
Encrypt traffic between clients and the web application using HTTPS.
- E
Monitor the CPU utilization of individual EC2 instances for reporting purposes.
Show answer and explanation
Correct answers: A, C, D
Explanation
Load balancers are used to distribute traffic across multiple targets (e.g., EC2 instances) to improve reliability, ensure high availability by sending traffic to healthy instances, and provide HTTPS encryption. They do not handle scaling of instances or detailed monitoring tasks, which are handled by other AWS services like Auto Scaling and CloudWatch.
- A. Correct.
Correct: A load balancer ensures reliability by distributing traffic across multiple EC2 instances, reducing the risk of overloading any single instance.
- B. Incorrect.
Incorrect: Auto Scaling manages the scaling of EC2 instances, not the load balancer. While the load balancer works in conjunction with Auto Scaling, scaling itself is not a direct purpose of the load balancer.
- C. Correct.
Correct: A load balancer enhances availability by routing traffic only to healthy instances, preventing requests from being sent to unhealthy or failed instances.
- D. Correct.
Correct: Load balancers, such as Application Load Balancers, can handle HTTPS termination, encrypting traffic between clients and the application.
- E. Incorrect.
Incorrect: Monitoring CPU utilization is a function of Amazon CloudWatch, not the load balancer.