An organization is refactoring its order fulfillment system. The system publishes order transaction events to an Amazon SNS standard topic, which fans them out to two Amazon SQS standard queues. The first SQS queue is consumed by a processing application that processes messages in batches; each batch takes up to 8 minutes to complete database writes. During peak traffic, the database shows duplicate entries for the same order because messages are being reprocessed before the first run completes. The second SQS queue is polled by an analytics application that queries the queue continuously, resulting in high API call counts and elevated costs even when no messages are present. Which two changes should the developer implement to resolve the duplicate processing issue and optimize the polling efficiency for the analytics queue? (Select TWO.)
- Increase the VisibilityTimeout attribute of the first SQS queue to 9 minutes, ensuring it exceeds the maximum database write time.Cevap
- Configure the analytics application to use SQS long polling by setting the ReceiveMessageWaitTimeSeconds attribute of the second SQS queue to 20 seconds.Cevap
- CSet the VisibilityTimeout of the first SQS queue to 2 minutes and configure the application client to call ChangeMessageVisibility to extend it dynamically during failures.
- DConvert the first SQS queue to a FIFO queue and enable content-based deduplication to automatically filter duplicate order transactions.
- EEnable active tracing on the SQS queues and configure the SDK client in the analytics application to use hardcoded IAM access keys with minimum permissions.