A system uses an external payment API. During network partition events, the system must avoid losing requests and must not charge customers more than once. You plan to store payment attempts and retry asynchronously. Which component combination most directly enforces idempotency and reliable processing?

Answer

Store attempts in DynamoDB with a unique idempotency key, use DynamoDB conditional writes to deduplicate, and send events to SQS with a dead-letter queue for failed attempts

Explanation

Conditional writes in DynamoDB ensure only one payment attempt is recorded per idempotency key. SQS plus DLQ supports durable retries while preventing silent data loss during failures.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

An organization requires that all production workloads run only in two specific Regions due to regulatory constraints. Workloads must continue functioning during the loss of one Region, and DNS failover must be automated. Which approach best meets these requirements?

View question →

A company wants to support a high-throughput REST API with fine-grained authentication, rate limiting, and request transformation before reaching the service. They also need to integrate with an internal network-only service over private connectivity. Which solution best matches these constraints?

View question →

In an environment with strict data residency, a customer data table contains both personal information and operational fields. The operational fields may be processed in any Region, but personal fields must remain in Region-A. The architecture must support analytics that joins operational and personal data without moving personal data out of Region-A. Which approach is best?

View question →

You have an event-driven system where producers publish to SQS, and multiple consumers scale independently. Consumers must process each message exactly once, and ordering must be preserved per customer. Which design achieves these goals with the fewest compromise assumptions?

View question →

A company uses an AWS Key Management Service (KMS) key for encrypting S3 objects and must allow multiple accounts to read encrypted objects without sharing the KMS key directly. Which configuration is most appropriate?

View question →

You are migrating a legacy on-prem application that uses periodic batch jobs to AWS. The jobs run every hour, each requires reading from multiple data sources, and outputs are consumed by downstream services. You must support backfills without reprocessing duplicates, and you want strong observability. Which design is best?

View question →

QuestionBack to list