ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 138 - DVA-C02 discussion

Report
Export

An application that runs on AWS receives messages from an Amazon Simple Queue Service (Amazon SQS) queue and processes the messages in batches. The

application sends the data to another SQS queue to be consumed by another legacy application. The legacy system can take up to 5 minutes to process some transaction dat

a.

A developer wants to ensure that there are no out-of-order updates in the legacy system. The developer cannot alter the behavior of the legacy system.

Which solution will meet these requirements?

A.
Use an SQS FIFO queue. Configure the visibility timeout value.
Answers
A.
Use an SQS FIFO queue. Configure the visibility timeout value.
B.
Use an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the DelaySeconds values.
Answers
B.
Use an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the DelaySeconds values.
C.
Use an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the visibility timeout value.
Answers
C.
Use an SQS standard queue with a SendMessageBatchRequestEntry data type. Configure the visibility timeout value.
D.
Use an SQS FIFO queue. Configure the DelaySeconds value.
Answers
D.
Use an SQS FIFO queue. Configure the DelaySeconds value.
Suggested answer: A

Explanation:

An SQS FIFO queue is a type of queue that preserves the order of messages and ensures that each message is delivered and processed only once1. This is suitable for the scenario where the developer wants to ensure that there are no out-of-order updates in the legacy system.

The visibility timeout value is the amount of time that a message is invisible in the queue after a consumer receives it2. This prevents other consumers from processing the same message simultaneously.If the consumer does not delete the message before the visibility timeout expires, the message becomes visible again and another consumer can receive it2.

In this scenario, the developer needs to configure the visibility timeout value to be longer than the maximum processing time of the legacy system, which is 5 minutes. This will ensure that the message remains invisible in the queue until the legacy system finishes processing it and deletes it. This will prevent duplicate or out-of-order processing of messages by the legacy system.

asked 16/09/2024
Mitesh Patel
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first