In AWS Glue, you need incremental ingestion from a source that cannot guarantee record ordering and can resend late events. Which approach best prevents duplicates in the target while still supporting late-arriving data?

Answer

Use a deterministic primary key (or composite key) and perform idempotent upserts into the target using that key

Explanation

Idempotent upserts keyed by a stable identifier ensure late or reprocessed events update existing records rather than creating duplicates. Time-only bookmarks assume ordering and can miss or double-count late data.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A Glue job writes to a partitioned S3 dataset with partitions by event_date (YYYY-MM-DD). After a backfill run, you find some partitions partially written due to a job failure mid-way. Which failure-handling technique best ensures atomicity of partition writes?

View question →

A streaming ingestion writes to S3 and then triggers Glue crawlers periodically. You observe that Athena occasionally fails or returns incomplete results because tables update mid-query. What is the best operational practice?

View question →

A pipeline reads from DynamoDB Streams and writes to S3, then Athena queries the results. You observe inconsistent column types over time (e.g., numeric fields sometimes become strings). What is the most robust strategy to prevent Athena type conflicts?

View question →

A data lake stores CDC events as JSON in S3. You want Apache Spark (AWS Glue/EMR) to evolve schemas safely while preserving historical raw data. Which combination most directly supports schema evolution without breaking downstream reads?

View question →

In Redshift with Spectrum over an S3 data lake, you want query performance improvements for date-based filtering. Which strategy most directly reduces scanned data volume?

View question →

An ETL engineer pipelines events into a curated dataset stored as Parquet in S3. The dataset uses S3 partitioning by processing_hour. Downstream queries sometimes return different aggregates for the “same” time window. What is the most likely cause and mitigation?

View question →

QuestionBack to list