DVA-C02 · Question #41
DVA-C02 Question #41: Real Exam Question with Answer & Explanation
The correct answer is C: Create a new SQS FIFO queue. Point the application to the new queue.. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO- queues-moving.html Moving from a standard queue to a FIFO queue: If you have an existing application that uses standard queues and you want to take advantage of the ordering or exactly-once processin
Question
A developer deploys a custom application to three Amazon EC2 instances. The application processes messages from an Amazon Simple Queue Service (Amazon SQS) standard queue with default settings. When the developer runs a load test on the Amazon SQS queue, the developer discovers that the application processes many messages multiple times. How can the developer ensure that the application processes each message exactly once?
Options
- AModify the SQS standard queue to an SQS FIFO queue.
- BProcess the messages on one EC2 instance instead of three instances.
- CCreate a new SQS FIFO queue. Point the application to the new queue.
- DIncrease the DelaySeconds value on the current SQS queue.
Explanation
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO- queues-moving.html Moving from a standard queue to a FIFO queue: If you have an existing application that uses standard queues and you want to take advantage of the ordering or exactly-once processing features of FIFO queues, you need to configure the queue and your application correctly. You can't convert an existing standard queue into a FIFO queue. To make the move, you must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue.
Community Discussion
No community discussion yet for this question.