Let’s Get Certified
Module 11 / 15 · Design high-performing architectures

Build an ingestion path from arrival to query

Size a streaming or batch path, preserve replay, and give analysts a governed and economical dataset.

Task 3.5 · Build an ingestion path from arrival to query

Specify time, order and recovery

Record peak input rate, event size, acceptable lag, number of independent consumers and required replay window. Kinesis Data Streams supports retained events and independent readers. Partition keys determine ordering and hot partitions. Amazon MSK provides managed Kafka when clients and offsets rely on that ecosystem. Amazon Data Firehose buffers and delivers to supported destinations for managed delivery. SQS fits independent jobs where successful consumers delete messages. Define how duplicates are detected after replay.

Land, transform and query

Keep immutable raw objects in restricted S3 prefixes. Separate processing roles from analyst roles, encrypt data and scope access to producers. Glue can catalog tables and use ETL jobs to convert small CSV or JSON files to larger columnar Parquet objects. Partition by common filters such as date; thousands of tiny partitions can create extra work. Athena can scan selected columns and partitions in S3, Redshift suits sustained warehouse queries, and Amazon Quick dashboards visualize curated results. Lake Formation permissions can govern access to cataloged tables and columns. EMR suits teams needing framework-level Spark control.

Pick the transfer that fits the time window

DataSync copies and verifies supported file or object datasets. Estimate the theoretical minimum time as bits divided by usable bits per second, then add overhead and change rate. Storage Gateway serves an ongoing hybrid storage interface. Transfer Family provides managed file-transfer protocols for partners. DMS can combine a database load with change data capture. Set lag alarms and record a watermark before switching readers.

Estimate stream capacity and handle schema changes

For illustration, 5,000 records/s at 2 KiB each generate about 9.77 MiB/s before overhead. In provisioned mode, check both current write-byte and record limits per shard, reader capacity, and the busiest partition key. More shards alone cannot split a single hot key. On schema changes, keep the original records and quarantine invalid rows. Validate counts and key aggregates before publishing curated data to dashboards so analysts can distinguish a real decline from rejected input.

A sensor replay must match an incident

Forty thousand sensors submit temperature readings. One consumer alerts within seconds. Another writes hourly summaries and needs yesterday’s events after a failed deployment. One building generates a disproportionate share of the data.

Choose a partition key and show how both consumers recover.

Compare your design with the worked answer

Use a retained stream keyed by a suitably distributed sensor identifier if ordering is required per sensor. Give each consumer its own checkpoint and set retention beyond the longest recovery window. Keep raw S3 data for longer replay. Measure peak volume, per-partition concentration and reader lag. A single building key would concentrate its writes.

If the only consumer needs buffered files in S3 with no independent replay, evaluate the simpler Data Firehose delivery path. Its buffering interval and size must fit the freshness target.

Apply the video example

Separate discovery from transformation in the Glue demonstration. If the crawler discovers 200 CSV files, count source records, run a job that writes partitioned Parquet, then reconcile counts before registering the curated table. A successful crawl alone says nothing about whether a single output file changed format.

freeCodeCamp at 40:53:25 · Glue crawlers

AWS exam guide for this domain · Return to the objective map

Knowledge check

Build an ingestion path from arrival to query quiz

Answer 5 questions. Check each answer for an explanation.