These questions are independently created for study purposes. They are not official AWS exam questions, actual exam questions, leaked questions, or exam dumps.
CLF-037
Which service is appropriate when you want to accumulate messages in a queue between multiple AWS services or applications and process them asynchronously?
Choices
Explanation and answer
Read the explanation and correct answer (spoiler — try answering first)
Correct answer: D. Amazon SQS
Explanation
Amazon SQS is a message queue service that holds messages in a queue until the processing side retrieves them. It is used for asynchronous processing and loose coupling.
Per-choice explanations
A. AWS CloudTrail
Incorrect. CloudTrail is a service that records API activity.
B. Amazon SNS
Incorrect. SNS is a publish/subscribe notification service. It is suitable for delivering to multiple subscribers, but accumulating messages in a queue is not its primary purpose.
C. Amazon Route 53
Incorrect. Route 53 is a DNS service, not a message queue.
D. Amazon SQS
Correct. SQS is well suited to asynchronous processing using a queue.
Practical Use
Amazon SQS (Simple Queue Service) is a fully managed message queue service provided by AWS. The sender (producer) places messages into the SQS queue, where they are held temporarily, and the receiver (consumer) retrieves and processes them at its own pace. The sender and receiver do not need to be running at the same time, and processing can continue even if one side is down, so SQS serves as the foundation for loosely coupling components. On the exam, the typical question asks which service is appropriate when you want to accumulate messages in a queue between multiple AWS services or applications and process them asynchronously, or when you want to absorb processing spikes and decouple components. Amazon SQS is the answer. Distractors that frequently appear include Amazon SNS (publish/subscribe notifications), AWS CloudTrail (API activity history), and Amazon Route 53 (DNS). SNS is for pushing the same message to multiple subscribers, which is a different role from SQS, which holds messages in a queue and processes them in order. In practice, SQS is often used with EC2 worker fleets or AWS Lambda behind the queue to process asynchronous jobs. There are two types: Standard queues and FIFO queues. Choose FIFO when ordering and deduplication are required. CLF-C02 tends to test the division of roles between queue and pub/sub, comparing SQS and SNS. From SAA-C03 and above, message visibility timeout, dead-letter queues, and the SNS plus SQS fan-out pattern (SNS to multiple SQS queues) are also tested.