Distributed web application is using multiple Amazon SQS standard & FIFO queues created in various AWS regions.
There is an additional requirement to create a Dead-letter queue and these queues to isolate & debug problematic messages.
While creating a dead-letter queue, which of the following is the TRUE statement? (Select Three).
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answer - A, C, D.
While creating the Dead-Letter queue, it should be the same as an original queue which will send a message to the Dead-Letter queue that is for standard queue, standard dead-letter queue should be created & for FIFO queue, FIFO dead-letter queue.
Also, the same AWS account needs to create both these queues & both these queues should reside in the same AWS region.
Option B is incorrect as for the standard queue, a dead letter queue should also be a standard queue & not FIFO queue.
Option E is incorrect as FIFO queue & Dead-letter queue should need to be in the same AWS region.
For more information on DLQ with Amazon SQS, refer to the following URL-
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.htmlWhen creating a Dead-letter queue for an Amazon Simple Queue Service (SQS), the following are the true statements:
A. For the FIFO queue, FIFO Dead Letter queue should be created: A dead-letter queue for a FIFO queue should be a FIFO queue. This means that messages will be processed in the same order they were added to the dead-letter queue.
B. For Standard queue, FIFO or Standard Dead-Letter queue can be created: For a standard queue, you can create a dead-letter queue that is either standard or FIFO. This is because standard queues do not enforce message ordering.
C. Use the same AWS Account to create Dead-Letter & standard queue: When creating a dead-letter queue, it should be created in the same AWS account as the source queue. This is because SQS does not support cross-account dead-letter queues.
D. Dead-Letter queue & Standard queue should reside in the same AWS region: The dead-letter queue must reside in the same region as the source queue. This means that you cannot create a dead-letter queue in a different region.
E. Dead-Letter queue & FIFO queue can reside in any AWS region: This statement is false. The dead-letter queue must reside in the same region as the source FIFO queue.
In summary, when creating a dead-letter queue for SQS, it is important to consider the type of queue (standard or FIFO), the same AWS account must be used, and the dead-letter queue should be created in the same region as the source queue.