A Glue job reads from S3 and writes to a partitioned dataset. You must make the job idempotent across retries where some partitions may already exist, and you also must avoid duplicate rows. Which combination is most appropriate?

Answer

Use dynamic partition overwrite with a commit protocol (e.g., write to a unique run prefix then finalize) and deduplicate using a deterministic key

Explanation

Idempotency requires either safe overwrites limited to affected partitions or a staging/commit pattern plus deterministic deduplication. Append-only without deduplication fails under retry and partial commit scenarios.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list