Choosing Kinesis Data Analytics for Real-Time Stream Processing
A company is designing a new real-time analytics platform that processes streaming data from IoT devices. The data must be ingested, processed with windowed aggregations, and stored in Amazon S3 for long-term analytics. The solution must handle late-arriving data and provide exactly-once processing semantics. Which combination of AWS services should the architect use?
⚠ Common exam trap
Candidates often choose AWS Lambda or Kinesis Data Firehose for simplicity, overlooking the need for stateful windowed aggregations and exactly-once processing, which are not natively supported by those services.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use Amazon Kinesis Data Analytics for Apache Flink to process data from Kinesis Data Streams and output to S3.
Amazon Kinesis Data Analytics for Apache Flink provides built-in support for windowed aggregations, exactly-once processing semantics, and handling late-arriving data via allowed lateness and watermarking. It can output processed results directly to Amazon S3 using a Flink sink, meeting all requirements for a real-time analytics platform.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use Amazon Kinesis Data Firehose to ingest data and AWS Glue for processing.
Why it's wrong here
Kinesis Data Firehose performs delivery and optional transformation but lacks windowed aggregation and exactly-once semantics for late-arriving records. It is tempting because it ingests streams straight into S3 with minimal management, and would be correct for simple, near-real-time delivery without stateful windowing requirements.
- ✗
Use Amazon EMR with Spark Streaming to process data from Kinesis Data Streams.
Why it's wrong here
Spark Streaming on EMR offers at-least-once semantics by default; exactly-once requires idempotent sinks or transactional writes, and late-data handling needs watermarking configured manually. It suits existing Spark workloads needing custom processing, not a managed streaming service with built-in exactly-once and windowing.
- ✗
Use AWS Lambda to process records from Kinesis Data Streams and store in S3.
Why it's wrong here
Lambda's Kinesis integration processes batches but lacks native windowed aggregation and checkpointed exactly-once semantics; retries can duplicate writes to S3. It fits lightweight, event-driven per-record transformations, not stateful streaming analytics requiring late-data handling and guaranteed single delivery.
- ✓
Use Amazon Kinesis Data Analytics for Apache Flink to process data from Kinesis Data Streams and output to S3.
Why this is correct
Apache Flink on Kinesis Data Analytics provides event-time processing with watermarks, enabling windowed aggregations that correctly handle late-arriving IoT records, and its checkpointing delivers exactly-once semantics. Kinesis Data Streams ingests the stream, while the Flink S3 connector writes aggregated results for long-term analytics, satisfying every stated constraint.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
This SAP-C02 question is part of Courseiva's 984-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.