Question 1 · choose 1
An online store's website must keep accepting orders during traffic spikes, even when the workers that process orders fall behind. Each order should wait until a worker is free to pick it up. Which service should sit between the website and the workers?
- AAmazon Simple Notification Service (Amazon SNS)
- BAmazon EventBridge
- CAmazon Simple Queue Service (Amazon SQS)
- DAmazon Simple Email Service (Amazon SES)
Show the answer and why
AAmazon Simple Notification Service (Amazon SNS)
Incorrect
SNS pushes each message to its subscribers as soon as it is published. It is not a queue that holds orders until a worker asks for one.
BAmazon EventBridge
Incorrect
EventBridge routes events to targets according to rules. Buffering work for a pool of workers to pull at their own pace is a queue's job.
CAmazon Simple Queue Service (Amazon SQS)
Correct
SQS is a managed message queue that decouples components: the website sends orders to the queue, and workers receive and process them when they are ready.
DAmazon Simple Email Service (Amazon SES)
Incorrect
SES sends and receives email, such as order confirmations. It does not pass work between application components.
A queue lets a fast producer and a slower consumer run at their own speeds: messages wait in SQS until a worker takes them.
AWS documentation