An ML team is designing a data ingestion pipeline for real-time fraud detection. Transactions arrive at a rate of 50,000 records per second with occasional spikes to 200,000 records per second. The downstream fraud model must process each transaction within 500 milliseconds. Which combination of AWS services best satisfies these requirements? (Select TWO)
- A. Amazon Kinesis Data Firehose with a 60-second buffer interval
- B. Amazon MSK (Managed Streaming for Apache Kafka) with auto-scaling
- C. Amazon SQS Standard Queue with long polling
- D. AWS Lambda triggered directly from Kinesis Data Streams✓ Correct
- E. Amazon Kinesis Data Streams with enhanced fan-out consumers✓ Correct
Explanation
Kinesis Data Streams with enhanced fan-out provides dedicated 2 MB/s per-shard throughput to each consumer with ~70ms propagation latency, enabling low-latency, high-throughput ingestion that can handle spikes via shard scaling. AWS Lambda triggered from Kinesis Data Streams processes records in near-real-time (sub-second), meeting the 500ms latency requirement without managing servers. Kinesis Data Firehose has a minimum buffer interval of 60 seconds, making it unsuitable for sub-500ms latency requirements. SQS Standard Queue does not guarantee ordering and its polling model introduces variable latency that may exceed 500ms at high throughput. Amazon MSK is a valid high-throughput streaming option but adds operational complexity; combined with Lambda it is less native than Kinesis+Lambda, and MSK alone does not address the downstream processing latency requirement.