SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Design High-Performing Architectures

Data Ingestion & Transformation: Kinesis, Glue, Athena, and Lake Formation

27 min readSAA-C03 · Design High-Performing ArchitecturesUpdated

Task 3.5 of SAA-C03 covers how data gets into AWS and becomes queryable: streaming ingestion with Kinesis Data Streams vs Amazon Data Firehose (and Amazon MSK when Kafka matters), sizing streams and securing ingestion endpoints, data transfer with DataSync, Storage Gateway and Transfer Family, transformation and cataloging with AWS Glue ETL and crawlers, building an S3 data lake governed by AWS Lake Formation, and analysis with Athena, Redshift, EMR, and QuickSight. It sits in the Design High-Performing Architectures domain. The exam rarely asks how any of these services work internally — it hands you a requirement with a qualifier ("near-real-time," "LEAST operational overhead," "MOST cost-effective") and four service chains that all technically move data, only one of which fits. By the end of this lesson you will be able to route any ingest-transform-store-query scenario to the right chain and explain, service by service, why the alternatives lose.

What you’ll learn

  • Choose between Kinesis Data Streams, Amazon Data Firehose, and Amazon MSK for any streaming ingestion requirement, including the Streams-to-Firehose archive pattern
  • Diagnose Kinesis capacity problems — hot partition keys, shared read throughput, aggregate shard limits — and pick provisioned, on-demand, or enhanced fan-out accordingly
  • Select the right transfer service — DataSync, Storage Gateway, or Transfer Family server endpoints vs SFTP connectors — from frequency, direction, and access clues
  • Secure ingestion access points with interface VPC endpoints, aws:SourceVpce resource policies, and the right Transfer Family endpoint type
  • Design a data lake on S3 with Glue crawlers, a shared Data Catalog, incremental Glue jobs, and Lake Formation permissions
  • Decide between Athena, Redshift, and the EMR deployment options for a workload, and between SPICE and direct query for QuickSight dashboards
  • Cut Athena cost and query time with Parquet, compression, and real table partitions (crawler or partition projection)
  • Assemble an end-to-end streaming architecture from ingestion through transformation to visualization

The 12 parts · about 23 min of reading

  1. Kinesis Data StreamsStart hereChoose Data Streams when your own consumers need real-time processing, replay within retention, or strict ordering per partition key.2 min
  2. Sizing a Kinesis streamThrottling at low total traffic is a hot key, reader contention needs enhanced fan-out, and only steady aggregate growth needs more shards.2 min
  3. Amazon Data FirehoseFirehose delivers buffered, near-real-time data to S3, Redshift or OpenSearch Service with no consumer code, but nothing can replay it.2 min
  4. Data transfer selectionFrequency, direction and ongoing access decide: DataSync copies, Storage Gateway gives cached access, Transfer Family serves partner SFTP.3 min
  5. Securing ingestion access pointsA resource-policy Deny on aws:SourceVpce forces every caller through the approved endpoint; an IAM policy binds only the roles it is on.2 min
  6. Building and securing the data lakeThe lake is S3 plus a catalog; Lake Formation grants table and column access in one place, enforced across Athena, Glue and EMR.1 min
  7. AWS GlueCrawlers infer schemas into a catalog that Athena, EMR and Redshift Spectrum share, and serverless jobs with bookmarks convert formats.2 min
  8. Querying the lakeAthena fits ad hoc pay-per-scan SQL on S3, Redshift fits heavy repeated BI at high concurrency, and EMR fits custom framework code.2 min
  9. Visualization with Amazon QuickSightImport nightly-loaded data into SPICE with a scheduled refresh so filters stop hitting the source; use direct query for live data.1 min
  10. Format performanceColumnar Parquet cuts the bytes Athena scans, but Athena prunes only on partitions defined on the table, so S3 prefixes alone prune nothing.2 min
  11. The end-to-end patternWork a pipeline stage by stage, letting one qualifier word fix each choice, and verify every link because wrong options hide one bad stage.2 min
  12. Worked scenariosNo consumer code means Firehose, full scans mean Parquet plus real partitions, and partners fixed on SFTP mean Transfer Family.2 min

Mind map

Your own consumers process records inreal timeRetention 24 h by default, up to 365daysSame partition key keeps per-key orderMany apps read one stream; SQS deletesmessages1✓Kinesis Data StreamsShard: 1 MB/s or 1,000 records/s in, 2MB/s outOne-shard throttling at low total =hot keyReaders slowing each other → enhancedfan-outOnly steady aggregate growth needsmore shards2✓Sizing a Kinesis streamNo-code delivery to S3, Redshift,OpenSearchBuffered: near-real-time, neverreal-timeIn-flight Lambda transform and ParquetconversionNo consumers or replay; Kafka named →MSK3✓Amazon Data FirehoseDataSync: one-time or scheduled copiesStorage Gateway: ongoing cachedon-prem accessTransfer Family: partner SFTP into S3No Snow for new customers: DX orTransfer Terminal4✓File transfer servicesInterface endpoints give privateKinesis accessResource-policy Deny on aws:SourceVpcebinds allIAM-policy condition binds onlyattached rolesPartner fixed IPs → VPCinternet-facing endpoint5✓Securing ingestion accessLake = S3 storage plus a metadatacatalogLake Formation: central table andcolumn grantsGrants enforced across Athena, Glue,EMRHand-built bucket + IAM policies =overhead6✓S3 data lake, LakeFormationCrawlers infer schemas into the DataCatalogOne catalog for Athena, EMR, RedshiftSpectrumServerless ETL jobs convert CSV toParquetJob bookmarks process only new data7✓AWS GlueAthena: serverless ad hoc SQL, pay perscanRedshift: heavy repeated BI, highconcurrencyEMR on EC2: custom frameworks, nodecontrolRoutine Spark ETL → Glue, leastoverhead8✓Athena vs Redshift vs EMRSPICE reads the source once perrefreshSchedule SPICE refresh after thenightly loadDirect query for up-to-the-minute dataWith Athena, each direct-query clickis a scan9✓QuickSight: SPICE vsdirectColumnar Parquet scans only namedcolumnsS3 prefixes alone are not partitionsPartition projection: prunable oncedata landsFirehose conversion beats post-hoc ETL10✓Parquet and partitioningIngest, transform, store, catalog,query, visualizeOne qualifier word fixes each stageWrong options hide one bad linkSpiky traffic → on-demand mode orFirehose11✓End-to-end pipelineNo consumer code, Parquet → FirehoseFull scans → Parquet plus realpartitionsPartners fixed on SFTP → TransferFamily12✓Worked scenariosData ingestion andanalytics
Mind map

Data Ingestion & Transformation: Kinesis, Glue, Athena, and Lake Formation

Your own consumers process records inreal timeRetention 24 h by default, up to 365daysSame partition key keeps per-key orderMany apps read one stream; SQS deletesmessages1✓Kinesis Data StreamsShard: 1 MB/s or 1,000 records/s in, 2MB/s outOne-shard throttling at low total =hot keyReaders slowing each other → enhancedfan-outOnly steady aggregate growth needsmore shards2✓Sizing a Kinesis streamNo-code delivery to S3, Redshift,OpenSearchBuffered: near-real-time, neverreal-timeIn-flight Lambda transform and ParquetconversionNo consumers or replay; Kafka named →MSK3✓Amazon Data FirehoseDataSync: one-time or scheduled copiesStorage Gateway: ongoing cachedon-prem accessTransfer Family: partner SFTP into S3No Snow for new customers: DX orTransfer Terminal4✓File transfer servicesInterface endpoints give privateKinesis accessResource-policy Deny on aws:SourceVpcebinds allIAM-policy condition binds onlyattached rolesPartner fixed IPs → VPCinternet-facing endpoint5✓Securing ingestion accessLake = S3 storage plus a metadatacatalogLake Formation: central table andcolumn grantsGrants enforced across Athena, Glue,EMRHand-built bucket + IAM policies =overhead6✓S3 data lake, LakeFormationCrawlers infer schemas into the DataCatalogOne catalog for Athena, EMR, RedshiftSpectrumServerless ETL jobs convert CSV toParquetJob bookmarks process only new data7✓AWS GlueAthena: serverless ad hoc SQL, pay perscanRedshift: heavy repeated BI, highconcurrencyEMR on EC2: custom frameworks, nodecontrolRoutine Spark ETL → Glue, leastoverhead8✓Athena vs Redshift vs EMRSPICE reads the source once perrefreshSchedule SPICE refresh after thenightly loadDirect query for up-to-the-minute dataWith Athena, each direct-query clickis a scan9✓QuickSight: SPICE vsdirectColumnar Parquet scans only namedcolumnsS3 prefixes alone are not partitionsPartition projection: prunable oncedata landsFirehose conversion beats post-hoc ETL10✓Parquet and partitioningIngest, transform, store, catalog,query, visualizeOne qualifier word fixes each stageWrong options hide one bad linkSpiky traffic → on-demand mode orFirehose11✓End-to-end pipelineNo consumer code, Parquet → FirehoseFull scans → Parquet plus realpartitionsPartners fixed on SFTP → TransferFamily12✓Worked scenariosData ingestion andanalytics

How the exam tests this

SAA-C03 tests this task as service selection under qualifiers: a streaming requirement plus "no consumer code / deliver to S3 / near-real-time / least overhead" selects Firehose, while "real-time processing," "replay," or "ordering" selects Data Streams and the word "Kafka" selects MSK. Harder items test the mechanics behind those choices: a hot partition key versus shard count, shared-throughput consumers versus enhanced fan-out, a resource-policy Deny on aws:SourceVpce versus an identity policy or aws:SourceIp, and the Transfer Family endpoint type that gives partners fixed IPs. Transfer questions hinge on frequency, direction and access clues — scheduled copy (DataSync, with a VPC service endpoint over a private VIF), ongoing hybrid access (Storage Gateway), partner SFTP uploads (Transfer Family server) versus pulling from a partner server (SFTP connector). Expect the Athena cost scenario where Parquet plus real partitions (crawler or partition projection) beats Redshift, caching or prefix-only layouts; Glue job bookmarks versus incremental crawls; SPICE versus direct query for busy dashboards; EMR on EC2 versus EMR Serverless, Glue and Athena for Apache Spark; and Lake Formation column-level grants versus bucket-policy sprawl.

Key takeaways

  1. Kinesis Data Streams = real-time with custom consumers, replay within the retention period (24 hours default, up to 365 days), and per-shard ordering via the partition key.
  2. Each shard takes 1 MB/s or 1,000 records/s of writes and serves 2 MB/s of reads; one partition key always maps to one shard, so a hot key needs a finer-grained key — not more shards or on-demand mode.
  3. Shared-throughput consumers split each shard's 2 MB/s; enhanced fan-out gives every consumer its own 2 MB/s per shard with low push latency.
  4. Amazon Data Firehose = managed near-real-time delivery with Lambda transforms and built-in Parquet/ORC conversion; it has no consumer interface, so the composite pattern is Data Streams for real-time readers with Firehose reading the stream to archive to S3. "Kafka" means Amazon MSK.
  5. Transfer selection: DataSync = one-time or scheduled copies (VPC service endpoint for private VIFs, task bandwidth limits); Storage Gateway = ongoing cached hybrid access; Transfer Family server = partners push, SFTP connector = you pull/push to their server. Snowball Edge is closed to new customers: online bulk = DataSync (plus a temporary Direct Connect hosted connection if bandwidth is short); offline = AWS Data Transfer Terminal or a Partner service.
  6. Secure ingestion: interface VPC endpoints with private DNS, plus a resource-policy Deny on aws:SourceVpce to make the stream or bucket reject other paths; Transfer Family VPC-hosted internet-facing endpoints give Elastic IPs and security groups.
  7. The Glue Data Catalog is the shared metastore for Athena, EMR, and Redshift Spectrum; Glue jobs are the serverless ETL default, with job bookmarks for incremental input and partitionKeys for prunable output. Lake Formation centralizes table/column permissions.
  8. Athena prunes only on table partitions, not prefixes — use partition projection or a crawler; columnar Parquet plus compression plus date partitions is the cost fix. Result reuse and CTAS are not layout fixes; QuickSight (Amazon Quick Sight) dashboards over Athena should usually use SPICE with a scheduled refresh.
0/12
Ready to start

Part 1: Kinesis Data Streams

Choose Data Streams when your own consumers need real-time processing, replay within retention, or strict ordering per partition key.

2 min read · 12 parts, about 23 min in allStart lesson

Frequently asked questions

What is the difference between Kinesis Data Streams and Kinesis Data Firehose?

Kinesis Data Streams is a real-time streaming buffer for your own consumer applications: records are retained (24 hours by default, up to 365 days), can be replayed, and stay ordered within a shard, but you write and operate the consumers. Amazon Data Firehose (formerly Kinesis Data Firehose) is a fully managed delivery service: it buffers incoming data and writes it to S3, Redshift, OpenSearch Service, or other destinations near-real-time, optionally transforming records with Lambda and converting them to Parquet — with no consumers, shards, or administration. Choose Streams when code must process events in real time or replay them; choose Firehose when the data just needs to land in a destination.

What is Kinesis enhanced fan-out and when do I need it?

Enhanced fan-out is a Kinesis Data Streams consumer type that gives each registered consumer its own dedicated read throughput of 2 MB per second per shard, pushed over HTTP/2 with the SubscribeToShard API at typically around 70 ms latency. Without it, all consumers share each shard's 2 MB per second and its read-call limit, so adding applications causes ReadProvisionedThroughputExceeded errors, growing iterator age, and higher latency for everyone. Use enhanced fan-out when several consumers each need low latency and must not slow one another; adding shards or switching to on-demand mode only enlarges the shared pool.

When should I use Amazon MSK instead of Kinesis?

Use Amazon MSK (Managed Streaming for Apache Kafka) when the scenario requires Apache Kafka compatibility: existing producer or consumer applications written against Kafka APIs, a migration of a self-managed Kafka cluster, or dependence on Kafka ecosystem tooling. MSK runs real Kafka as a managed service, so those applications work without rewriting. If there is no Kafka requirement, Kinesis Data Streams or Data Firehose is normally the lower-overhead answer on the exam — MSK's differentiator is compatibility, not simplicity.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?