A company operates a food delivery service. Because of recent growth, the company's order processing system is experiencing scaling problems during peak traffic hours. The current architecture includes Amazon EC2 instances in an Auto Scaling group that collect orders from an application. A second group of EC2 instances in an Auto Scaling group fulfills the orders. The order collection process occurs quickly, but the order fulfillment process can take longer. Data must not be lost because of a scaling event. A solutions architect must ensure that the order collection process and the order fulfillment process can both scale adequately during peak traffic hours. Which solution will meet these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Provision two Amazon Simple Queue Service (Amazon SQS) queues. Use one SQS queue for order collection. Use the second SQS queue for order fulfillment. Configure the EC2 instances to poll their respective queues. Scale the Auto Scaling groups based on the number of messages in each queue..
Why this is the answer
The correct solution uses Amazon SQS queues to decouple the order collection and fulfillment processes, allowing them to scale independently. By placing messages in queues, the system ensures data is not lost during scaling events, as messages persist until processed. Scaling Auto Scaling groups based on the number of messages in their respective queues allows each process to scale out when demand increases and scale in when demand decreases, efficiently handling peak traffic. Monitoring CPU utilization alone (options 1 and 2) might not be sufficient because the bottleneck is the fulfillment process
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed