Data Ingestion and Transformation

An Amazon Managed Service for Apache Flink application suppresses duplicate event IDs for one hour using keyed state. After a failure, which recovery approach preserves duplicate detection for IDs remembered at the recovery point?

Show the answer

Correct answerB. Restore keyed state and source positions from a consistent checkpoint

AWhy not this: More parallel tasks do not recover the event IDs lost with operator state.

BWhy this is right: A consistent checkpoint restores both remembered IDs and the corresponding source progress.

CWhy not this: Source positions alone do not restore the remembered IDs required for duplicate detection.

DWhy not this: Starting at the latest records with empty state loses remembered IDs and can skip unprocessed input.

Stateful duplicate detection depends on remembered event IDs, so recovery must restore keyed state consistently with source positions. Restoring source positions alone recovers reading progress but loses the history needed to recognize duplicates.