Ultimate access to all questions.
A company's three-tier ecommerce application on AWS Cloud uses Amazon S3 for hosting the website and an API on EC2 instances behind an ALB for sales requests. The API includes both static and dynamic content with backend workers for asynchronous sales processing. With an anticipated surge in sales requests during product launches, what is the recommended solution to ensure all requests are successfully processed?
Explanation:
The correct answer is D. Adding an Amazon CloudFront distribution for the static content improves the content delivery performance, reducing latency for users. Using Amazon Simple Queue Service (Amazon SQS) allows the incoming requests to be queued, ensuring they are processed asynchronously by the backend workers on the EC2 instances. This ensures that even if there is a sudden surge in requests, the system can handle them efficiently without losing any requests, as they will all be appropriately queued and processed in order.