In a data pipeline using AWS Glue and Redshift, you need to ensure exactly-once semantics for ingesting late-arriving records arriving with an event-time timestamp and possible duplicates. Which combination best addresses deduplication and ordering guarantees?

Answer

Deduplicate in the landing layer using a deterministic key derived from business identifiers and event-time, then MERGE into a Redshift target keyed on that identifier

Explanation

A deterministic key allows stable deduplication regardless of arrival order, and MERGE with a unique key in the target enforces idempotent writes even with late duplicates. Job bookmarks alone do not guarantee correct behavior under out-of-order events.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A dataset is stored in S3 as Parquet and queried by Athena using a Glue Data Catalog table. You need to ensure that analysts can query only the last 30 days by adding a mandatory filter, and also restrict access by department. What is the best mechanism combination?

View question →

A Redshift cluster runs complex joins on a large fact table with multiple dim tables. You observe high query runtime variance and frequent disk spills. Which strategy most directly improves performance and reduces spills while staying within reasonable maintenance effort?

View question →

You are migrating a legacy on-prem data warehouse to AWS. The old system uses incremental loads based on a “high-water mark” timestamp column, but late updates can change records for earlier times. In AWS, which ingestion strategy best preserves correctness without requiring full reloads?

View question →

A streaming system uses Kinesis Data Streams feeding a Lambda-based ingestion that writes to an S3 “raw” prefix partitioned by hour. After changing the schema to add a new nullable column, analytics jobs fail because older partitions have no column in their catalog definition. What is the best approach to keep the data catalog and query behavior consistent?

View question →

A customer requires that personally identifiable information (PII) be masked in curated analytics but still available for a limited set of authorized users. Which AWS-native approach best supports column-level masking with role-based access and auditable governance?

View question →

A Glue ETL job reads from an S3 source with Parquet, applies transformations, and writes results to S3 as partitioned Parquet. You notice that new partitions appear, but queries using Athena sometimes return incomplete results until the next day. What is the most likely root cause and mitigation?

View question →

QuestionBack to list