An Amazon Managed Service for Apache Flink application computes five-minute event-time features from Kinesis records, but records can arrive up to two minutes out of order. The application must include these records before finalizing windows and recover consistent operator state after failures; which configuration meets both requirements?
Show the answer
Correct answerA. Use event-time windows with two-minute watermark delay and enable checkpointing.
AWhy this is right: The watermark delay accommodates the stated disorder, and checkpointing supports consistent operator-state recovery.
BWhy not this: Checkpointing supports recovery, but processing-time windows do not group records by their event timestamps.
CWhy not this: Delayed watermarks address ordering, but disabling checkpointing removes the required state-recovery mechanism.
DWhy not this: Immediate watermarks can close windows before out-of-order records arrive.
Delayed watermarks accommodate out-of-order event timestamps before windows close, while checkpoints support consistent state recovery. Processing-time windows group records by arrival-time processing rather than the events' timestamps.