Topic 1 Question 195
A company’s order system sends requests from clients to Amazon EC2 instances. The EC2 instances process the orders and then store the orders in a database on Amazon RDS. Users report that they must reprocess orders when the system fails. The company wants a resilient solution that can process orders automatically if a system outage occurs.
What should a solutions architect do to meet these requirements?
Move the EC2 instances into an Auto Scaling group. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to target an Amazon Elastic Container Service (Amazon ECS) task.
Move the EC2 instances into an Auto Scaling group behind an Application Load Balancer (ALB). Update the order system to send messages to the ALB endpoint.
Move the EC2 instances into an Auto Scaling group. Configure the order system to send messages to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the EC2 instances to consume messages from the queue.
Create an Amazon Simple Notification Service (Amazon SNS) topic. Create an AWS Lambda function, and subscribe the function to the SNS topic. Configure the order system to send messages to the SNS topic. Send a command to the EC2 instances to process the messages by using AWS Systems Manager Run Command.
ユーザの投票
コメント(17)
- 正解だと思う選択肢: C
C. SQS meets this requirement.
👍 2Gil802022/11/29 - 正解だと思う選択肢: C
C, decouple applications and functionality, give ability to reprocess message if failed due to networking issue or overloaded other systems
👍 2romko2022/12/16 - 正解だと思う選択肢: C
To meet the requirements of the company, a solution should be implemented that can automatically process orders if a system outage occurs. Option C meets these requirements by using an Auto Scaling group and Amazon Simple Queue Service (SQS) to ensure that orders can be processed even if a system outage occurs.
In this solution, the EC2 instances are placed in an Auto Scaling group, which ensures that the number of instances can be automatically scaled up or down based on demand. The ordering system is configured to send messages to an SQS queue, which acts as a buffer and stores the messages until they can be processed by the EC2 instances. The EC2 instances are configured to consume messages from the queue and process them. If a system outage occurs, the messages in the queue will remain available and can be processed once the system is restored.
👍 2Buruguduystunstugudunstuy2022/12/23
シャッフルモード