
Answer-first summary for fast verification
Answer: Add Amazon CloudFront for static content and utilize Amazon SQS for queuing website requests for EC2 instance processing.
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.
Author: LeetQuiz Editorial Team
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?
A
Use Amazon CloudFront for dynamic content and scale EC2 instances manually to manage increased traffic.
B
Implement Amazon CloudFront for static content and employ an Auto Scaling group for EC2 instances based on traffic.
C
Deploy Amazon CloudFront for dynamic content and introduce Amazon ElastiCache to alleviate API traffic before the ALB.
D
Add Amazon CloudFront for static content and utilize Amazon SQS for queuing website requests for EC2 instance processing.
No comments yet.