AWS Certified Developer – Associate — Question 131
A developer has setup an Amazon Kinesis Stream with 4 shards to ingest a maximum of 2500 records per second. A Lambda function has been configured to process these records.
In which order will these records be processed?
Answer options
- A. Lambda will receive each record in the reverse order it was placed into the stream following a LIFO (last-in, first-out) method.
- B. Lambda will receive each record in the exact order it was placed into the stream following a FIFO (first-in, first-out) method.
- C. Lambda will receive each record in the exact order it was placed into the shard following a FIFO (first-in, first-out) method. There is no guarantee of order across shards.
- D. The developer can select FIFO (first-in, first-out), LIFO (last-in, first-out), random, or request specific record using the getRecords API.
Correct answer: C
Explanation
The correct answer is C because records within a single shard of an Amazon Kinesis Stream are processed in the order they were received, following FIFO. However, it's important to note that there is no ordering guarantee when it comes to records across different shards. Options A and B are incorrect as they misrepresent the processing order, and option D is inaccurate since the order selection is not an option with Kinesis Streams.