A critical service processes messages from an SQS queue and must guarantee idempotency across retries. Processing time varies significantly, and you need to avoid ordering constraints while also minimizing cost. Which approach is best?
Answer
Use Standard SQS with an idempotency token stored in DynamoDB with conditional writes; process with Lambda batch sizing and reserved concurrency
Explanation
Standard queues can deliver duplicates and out of order, so idempotency is required. Conditional writes in DynamoDB make retries safe, and batching/reserved concurrency improves efficiency under variable workloads.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A company needs centralized, fine-grained access logging and anomaly detection across multiple AWS accounts. Requirements include: consistent data retention, minimal IAM sprawl, and the ability to analyze events across regions. Which configuration most closely meets these requirements?
View question →
You must design a resilient, low-latency global system with multi-region failover. The application uses DynamoDB as a primary data store and needs strong consistency within a region. Which design provides the best balance of availability and correctness during regional failover?
View question →
You are migrating a legacy relational workload to AWS. The database must maintain low read latency, tolerate node failures, and support point-in-time recovery. The team wants managed backups and predictable throughput for a moderate but bursty workload. Which option is the best fit?
View question →
A company runs a multi-account AWS environment with AWS Organizations and wants centralized cost allocation, consolidated billing, and guardrails without breaking existing account-level governance. Which approach best meets the goals while minimizing operational risk?
View question →
A data platform ingests clickstream events every second into S3 and must support near-real-time analytics with backfill up to 30 days. You want a solution that scales, allows late-arriving events, and maintains partition pruning efficiency. Which combination is most appropriate?
View question →
A streaming analytics workload uses Kinesis Data Streams and must replay data for regulatory investigations. You also need the ability to scale consumers independently of the producers. Which design provides replay capability and independent scaling?
View question →