Q44 — AWS SAA-C03 Ch.14

Question 44 of 100 | ← Chapter 14

Q1044. A company recently launched a new application for its customers. The application runs on multiple Amazon EC2 instances across two Availability Zones. End users use TCP to communicate with the application.The application must be highly available and must automatically scale as the number of users increases.Which combination of steps will meet these requirements MOST cost-effectively? (Choose two.)

Correct Answer: A. Add a Network Load Balancer in front of the EC2 instances., B. Configure an Auto Scaling group for the EC2 instances.

Explanation

To ensure the application is highly available and can automatically scale based on user demand, the best combination of steps is:A. Add a Network Load Balancer in front of the EC2 instances.B. Configure an Auto Scaling group for the EC2 instances.Explanation:\1. Add a Network Load Balancer (NLB): - A Network Load Balancer is designed for handling TCP traffic and is capable of scaling automatically to handle sudden spikes in traffic. It provides high availability by distributing incoming TCP connections to multiple EC2 instances across the two Availability Zones, ensuring that the application can remain available even if one instance or Availability Zone goes down.\2. Configure an Auto Scaling Group: - An Auto Scaling group enables automatic scaling of EC2 instances based on defined policies, such as CPU utilization or other CloudWatch metrics. This ensures that the application can respond to varying loads by automatically adding or removing EC2 instances as needed, promoting cost efficiency while maintaining performance.Evaluation of Other Options:C. Add an Application Load Balancer (ALB) in front of the EC2 instances: - While an ALB is suitable for HTTP/HTTPS traffic and provides advanced routing features, it is not optimized for pure TCP traffic. For applications that use TCP, the NLB is the better choice.D. Manually add more EC2 instances for the application: - Manual scaling is not efficient or cost-effective, as it does not respond dynamically to changes in traffic. This approach also increases the risk of human error and does not fulfill the requirement for automatic scaling.E. Add a Gateway Load Balancer in front of the EC2 instances: - Gateway Load Balancers are primarily used for integrating virtual appliances (like firewalls or intrusion detection systems) into a network. They are not directly relevant to the requirement of balancing TCP traffic for an application.Conclusion:The most cost-effective solution for achieving high availability and automatic scaling for the application is to add a Network Load Balancer and configure an Auto Scaling group for the EC2 instances.