A downstream consumer needs exactly-once processing semantics for a stream-to-lake pipeline. However, producers can retry and networks can duplicate. Which design most directly improves end-to-end idempotency to approximate exactly-once behavior?
Answer
Deduplicate by event-id using a deterministic merge/upsert to a table format that supports record-level or snapshot-level correctness (e.g., Iceberg), and store processing watermarks
Explanation
Deduplication by stable event-id and deterministic upserts prevent duplicates from persisting across retries. Watermarks help bound processing and reduce reprocessing windows.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must implement data quality checks that prevent corrupt records from being written into the curated zone while still tracking rejected records for auditing. Which approach is best?
View question →
You are ingesting data with AWS Glue Streaming and need low-latency queries while controlling file sizes to avoid small-file performance issues in the lake. Which strategy is most appropriate?
View question →
You are designing a transformation layer for incremental changes from an operational system where updates are represented as CDC events. Which approach best aligns with efficient incremental processing in AWS?
View question →
Which sequence most directly enables a durable, consistent ingestion pipeline for semi-structured JSON events that may arrive out of order, while maintaining idempotency for replays?
View question →
A Glue job writes partitioned Parquet to S3. You observe that query results in Athena are inconsistent across repeated runs for the same time range. What is the most likely cause and mitigation?
View question →
You must implement row-level access control for a dataset queried via Amazon Athena. The access policy must filter rows by user’s region claim while allowing column-level masking for a sensitive field. Which AWS capability combination best satisfies this?
View question →