Topic 1 Question 125
2 つ選択An application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue. The application experiences occasional downtime. As a result of the downtime, messages within the queue expire and are deleted after 1 day. The message deletions cause data loss for the application.
Which solutions will minimize data loss for the application?
Increase the message retention period
Increase the visibility timeout.
Attach a dead-letter queue (DLQ) to the SQS queue.
Use a delay queue to delay message delivery
Reduce message processing time.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: AC
To minimize data loss for the application consuming messages from an Amazon SQS queue, the following two solutions are most effective:
A. Increase the message retention period**: By increasing the message retention period, you ensure that messages remain in the queue for a longer duration before being automatically deleted. This provides more time for the application to recover from downtime and process the messages, thereby reducing the chance of data loss due to message expiration.
C. Attach a dead-letter queue (DLQ) to the SQS queue**: A DLQ can be used to capture messages that cannot be processed successfully. When messages fail to be processed after a certain number of attempts (as defined by the redrive policy), they are moved to the DLQ. This allows you to investigate and handle these messages separately, preventing data loss.
👍 2matt2002024/08/14 - 正解だと思う選択肢: AE
It cannot be C. Messages go to DLQ only if processed. But if the message is not processed at all and it expires, then it will be deleted from the queue.
👍 2altonh2024/12/08 - 正解だと思う選択肢: AC
Answer is AC
👍 1aragon_saa2024/08/14
シャッフルモード