Development with AWS Services

A producer's Kinesis Data Streams PutRecords request returns HTTP 200, but some result entries contain throttling errors. Record ordering is unnecessary; which response handling avoids both data loss and unnecessary duplicate writes?

Show the answer

Correct answerC. Retry only failed entries after a backoff delay

AWhy not this: Retrying successful entries as well as failed entries creates unnecessary duplicate records.

BWhy not this: HTTP 200 does not mean every entry succeeded; ignoring entry errors loses records.

CWhy this is right: Per-entry results identify the failed records, allowing targeted retries with backoff.

DWhy not this: Successful entries need no confirmation write, and failed entries would remain unwritten.

PutRecords can partially fail even when the request returns HTTP 200. Inspect the individual results and retry failed entries with backoff; retrying the entire batch unnecessarily writes successful records again.