DVA-C02 Question 40
Single answerYou are developing a serverless application on AWS and need to process a large number of events in near real-time. The events must be processed in order, and there should be minimal delay in case of a processing failure. Which AWS service is the most appropriate to use for this scenario?
- A
Amazon SQS with a standard queue
- B
Amazon Kinesis Data Streams
- C
Amazon SQS with a FIFO queue
- D
AWS Lambda with Amazon EventBridge
Show answer and explanation
Correct answer: B
Explanation
Amazon Kinesis Data Streams is the most appropriate service for this use case because it is designed for real-time event processing, guarantees ordering of events, and provides data retention for retries. These features make it ideal for scenarios requiring near real-time processing with ordered events and reliability in case of processing failures.
- A. Incorrect.
Amazon SQS with a standard queue is not suitable because it does not guarantee message ordering, which is a key requirement in this scenario.
- B. Correct.
Amazon Kinesis Data Streams is the correct choice because it is designed for real-time processing of streaming data, supports ordering of events, and allows for data retention to handle retries in case of processing failures.
- C. Incorrect.
Amazon SQS with a FIFO queue guarantees message ordering, but it is not optimized for high-throughput real-time processing compared to Amazon Kinesis Data Streams.
- D. Incorrect.
AWS Lambda with Amazon EventBridge can handle event-driven processing but does not inherently provide ordering or robust handling of large-scale, real-time event streams as required in this scenario.