
Answer-first summary for fast verification
Answer: Use delay queues to postpone the delivery of new messages to the queue for a few seconds
Use delay queues to postpone the delivery of new messages to the queue for a few seconds Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. SQS offers two types of message queues. Standard queues offer maximum throughput, best-effort ordering, and at-least-once delivery. SQS FIFO queues are designed to guarantee that messages are processed exactly once, in the exact order that they are sent. Delay queues let you postpone the delivery of new messages to a queue for several seconds, for example, when your consumer application needs additional time to process messages. If you create a delay queue, any messages that you send to the queue remain invisible to consumers for the duration of the delay period. The default (minimum) delay for a queue is 0 seconds. The maximum is 15 minutes.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
The development team at an analytics company is currently utilizing Amazon SQS (Simple Queue Service) queues to decouple different components within their application architecture. The consumers of these queues require additional time to process the SQS messages. Consequently, the development team is aiming to delay the arrival of new messages into the queue for a few seconds to allow consumers sufficient processing time.
As a Developer Associate, which of the following solutions would you recommend to the development team to achieve this delay in message delivery?
A
Use visibility timeout to postpone the delivery of new messages to the queue for a few seconds
B
Use dead-letter queues to postpone the delivery of new messages to the queue for a few seconds
C
Use FIFO queues to postpone the delivery of new messages to the queue for a few seconds
D
Use delay queues to postpone the delivery of new messages to the queue for a few seconds