Development with AWS Services

A Kinesis data stream uses its default retention period. A consumer must be able to replay records after a 48-hour outage; which change meets this requirement?

Show the answer

Correct answerB. Increase stream retention to 72 hours

AWhy not this: Larger batches can improve processing efficiency but cannot recover expired records.

BWhy this is right: A 72-hour retention period preserves records through the stated outage.

CWhy not this: Faster polling cannot preserve records while the consumer is offline.

DWhy not this: More shards increase stream capacity without extending the retention period.

Kinesis Data Streams retains records for 24 hours by default. Increasing retention to 72 hours keeps records available through a 48-hour outage; adding shards increases capacity but does not extend record availability.