
Answer-first summary for fast verification
Answer: Employ EC2 in an Auto Scaling group with SQS for message queuing and consumption.
The correct answer is C: 'Employ EC2 in an Auto Scaling group with SQS for message queuing and consumption.' Using Amazon SQS (Simple Queue Service) in combination with Auto Scaling groups ensures that messages are not lost if an EC2 instance fails. SQS decouples the components of the application, allowing messages to be stored in a queue until they are processed by an EC2 instance. This architecture provides resilience and fault tolerance, as the SQS queue will retain the orders even if the processing EC2 instances fail, and new instances can continue processing the messages from where it left off.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company requires a resilient order processing system using Amazon EC2 and Amazon RDS. The system must automatically handle order processing during outages without manual reprocessing. What architectural changes should be implemented?
A
Integrate EC2 with Auto Scaling and EventBridge for ECS task triggering.
B
Utilize EC2 in an Auto Scaling group with an ALB for order system message distribution.
C
Employ EC2 in an Auto Scaling group with SQS for message queuing and consumption.
D
Establish an SNS topic with a Lambda function for message processing and command execution on EC2 via Systems Manager.