Q19 — AWS SAA-C03 Ch.12
Question 19 of 100 | ← Chapter 12
Q819. An ecommerce company is running a seasonal online sale. The company hosts its website on Amazon EC2 instances spanning multiple Availability Zones. The company wants its website to manage sudden traffic increases during the sale.Which solution will meet these requirements MOST cost-effectively?
- A. Create an Auto Scaling group that is large enough to handle peak traffic load. Stop half of the Amazon EC2 instances. Configure the Auto Scaling group to use the stopped instances to scale out when traffic increases.
- B. Create an Auto Scaling group for the website. Set the minimum size of the Auto Scaling group so that it can handle high traffic volumes without the need to scale out.
- C. Use Amazon CloudFront and Amazon ElastiCache to cache dynamic content with an Auto Scaling group set as the origin. Configure the Auto Scaling group with the instances necessary to populate CloudFront and ElastiCache. Scale in after the cache is fully populated.
- D. Configure an Auto Scaling group to scale out as traffic increases. Create a launch template to start new instances from a preconfigured Amazon Machine Image (AMI). ✓
Correct Answer: D. Configure an Auto Scaling group to scale out as traffic increases. Create a launch template to start new instances from a preconfigured Amazon Machine Image (AMI).
Explanation
By configuring an Auto Scaling group to scale out as traffic increases, the company can dynamically add more EC2 instances to handle the sudden traffic spikes during the seasonal online sale. This ensures that the website can handle increased user demand without causing performance issues or downtime.Creating a launch template allows for easy and efficient provisioning of new instances. By using a preconfigured AMI, the instances can quickly be launched with the necessary configurations and software already in place, reducing the setup time and effort.This solution is cost-effective because it allows the company to scale its infrastructure only when necessary, in response to increased traffic. During periods of normal or low traffic, the Auto Scaling group can scale in, reducing the number of instances and corresponding costs.Options A and B do not provide dynamic scaling capabilities, which may result in either insufficient capacity or excessive and unnecessary capacity during different periods of the sale.Option C, using CloudFront and ElastiCache, can improve performance by caching content but may not be the most cost-effective solution for managing sudden traffic increases. It also introduces additional complexity and management overhead.Therefore, option D is the most cost-effective solution for managing sudden traffic increases during the seasonal online sale.