A service processes messages from a stream and writes aggregates to DynamoDB. Exactly-once processing is not possible, but duplicates must not change results. The team considers using transactions. Which statement is most correct for ensuring idempotent updates with minimal performance impact?
Answer
Use a deterministic primary key for each logical event and conditionally update using a conditional expression that tracks a processed marker.
Explanation
Idempotency is typically implemented by writing using a deterministic key and using conditional expressions to ensure each logical event is applied once. This avoids full transactions and reduces contention while tolerating at-least-once delivery.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A payments system uses SQS to buffer events from an external provider. During regional maintenance, you must guarantee that processing continues without message loss, and consumers must scale horizontally with controlled backpressure. Which approach best satisfies these constraints?
View question →
A legacy system writes files to an on-prem NFS mount. You need to modernize toward S3 with minimal application changes, ensure integrity validation, and handle bursty ingestion. Which approach is most suitable?
View question →
You must store sensitive application secrets in a way that supports rotation, auditability, and least-privilege access. Rotation schedule is automated and both EC2 and Lambda functions must retrieve secrets at runtime. Which architecture is most aligned with these needs?
View question →
You are designing a high-availability architecture where failures must be isolated by functional boundary, not by individual instances. You need automatic recovery, controlled scaling, and health-based routing at the edge. Which combination best meets these requirements?
View question →
You must design an architecture where a multi-region workload performs schema and data changes safely during blue/green deployments. You need rollback without data loss and minimal downtime. Which combination most directly supports controlled rollout with strong safety?
View question →
A team uses AWS Organizations with consolidated billing. They want a multi-account environment where only specific accounts can deploy to a shared ECR repository, and cross-account access must be revocable immediately. Which control strategy is strongest?
View question →