
Answer-first summary for fast verification
Answer: Utilize Amazon SQS to queue orders and deploy EC2 instances in an Auto Scaling group with an Application Load Balancer to process orders from the queue into the database.
The correct answer is B. When dealing with high traffic scenarios, implementing Amazon SQS is beneficial as it decouples the components of the application. By queueing orders in SQS, you ensure that all incoming orders are stored reliably. Using EC2 instances in an Auto Scaling group behind an Application Load Balancer ensures that the processing capacity can scale automatically based on demand, thereby efficiently processing the queued orders into the database. This approach helps maintain reliability and efficiency even during high traffic periods.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company's application, hosted on an Amazon EC2 instance, processes customer orders saved to an Amazon Aurora database. During high traffic, the application may not process orders quickly enough. What is the recommended solution for a solutions architect to ensure reliable and efficient order processing?
A
Scale the EC2 instance during high traffic and use Amazon SNS for order notifications, with the database subscribed to the SNS topic.
B
Utilize Amazon SQS to queue orders and deploy EC2 instances in an Auto Scaling group with an Application Load Balancer to process orders from the queue into the database.
C
Leverage Amazon SNS for order notifications with the database endpoint subscription, and implement EC2 instances in an Auto Scaling group with an Application Load Balancer to process orders.
D
Queue orders using Amazon SQS when the EC2 CPU threshold is reached, and process them into the database using EC2 instances in an Auto Scaling group with scheduled scaling and an Application Load Balancer.