SAP-C02 Question 73
Select 3A company is running an e-commerce application that experiences unpredictable traffic spikes. The application is hosted on EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). Recently, during a marketing campaign, the application experienced a high volume of traffic, causing delays and some requests to fail. The company wants to design a reliable and resilient architecture to handle such traffic spikes in the future. What should you do to address this requirement?
- A
Enable Auto Scaling predictive scaling policies to automatically adjust capacity based on anticipated traffic patterns.
- B
Configure an Amazon CloudFront distribution in front of the ALB to cache static assets and reduce load on the backend.
- C
Increase the instance size of the EC2 instances in the Auto Scaling group to ensure more compute power during peak traffic.
- D
Use AWS Global Accelerator to improve the application’s availability and performance by routing requests to the nearest healthy endpoint.
- E
Enable ALB health checks to ensure traffic is only sent to healthy instances.
Show answer and explanation
Correct answers: A, B, E
Explanation
To design a reliable and resilient architecture for the e-commerce application, it is important to address both traffic predictability and resource optimization. Enabling predictive scaling ensures sufficient capacity during traffic spikes, while CloudFront reduces backend load by caching static content. Additionally, ALB health checks ensure that traffic is only directed to healthy instances. These measures together improve the application’s reliability and resilience while optimizing costs and performance.
- A. Correct.
Enabling predictive scaling policies helps the Auto Scaling group proactively adjust capacity based on patterns, ensuring it can handle traffic spikes effectively. This directly contributes to a reliable and resilient architecture.
- B. Correct.
Using Amazon CloudFront reduces the load on backend resources by caching frequently requested content closer to users, improving application reliability and scalability during traffic spikes.
- C. Incorrect.
Increasing the instance size is not a scalable solution as it does not dynamically respond to variable traffic patterns and may lead to unnecessary costs during periods of low traffic.
- D. Incorrect.
AWS Global Accelerator improves application performance and availability globally but does not address the specific issue of handling traffic spikes for this e-commerce application.
- E. Correct.
Enabling ALB health checks ensures that traffic is only routed to healthy instances, improving the resilience and reliability of the architecture.