Concept · Builds on CLF-C02
Data pipelines: ingest, store, process, analyze
Design a pipeline from the speed, size and security of the data, and pick a service for each stage.
You know from Cloud Practitioner
- A pipeline ingests, stores, prepares, analyzes and visualizes data.
- Kinesis ingests streams, S3 is the data lake, Glue prepares data, Athena, Redshift and EMR analyze it, and Quick shows it.
- OpenSearch Service searches logs and text.
Batch
- Delay
- Hours
- Services
- S3, Glue, EMR, DataSync
Near real time
- Delay
- About a minute
- Services
Firehose
Real time
- Delay
- Seconds or less
- Services
- Kinesis, MSK
| Pattern | Delay | Services |
|---|---|---|
| Batch | Hours | S3, Glue, EMR, DataSync |
| Near real time | About a minute | |
| Real time | Seconds or less | Kinesis, MSK |
- 1Producers send records to Firehose.
- 2Firehose buffers them and writes files to S3.
- 3Glue crawls the files and keeps their table definitions in the Data Catalog.
- 4Athena runs SQL on the files in S3.
- 5Quick shows the results in dashboards.
Step by step
- 1Producers send records to Firehose.
- 2Firehose buffers them and writes files to S3.
- 3Glue crawls the files and keeps their table definitions in the Data Catalog.
- 4Athena runs SQL on the files in S3.
- 5Quick shows the results in dashboards.
A common serverless pipeline.
What it is
Start with how fast the data must be ready. Batch means hours: files land in S3 on a schedule and a job processes them. Near real time means about a minute: a delivery service buffers the data and writes files. Real time means seconds or less: a stream service lets applications react to each record. The more real time you need, the more it costs and the more you design.
Then size the pipeline. Check the data volume and the rate. A 1 Gbps network link moves at most about 10 TB a day, so a very large first load may need another route. Check the number of records per second for streams, because that sets the shard count.
What it is
Finally secure the entry points. Producers use IAM roles with narrow permissions. Traffic uses TLS. Private producers reach services through VPC endpoints, so the data does not cross the internet. Encrypt with AWS KMS, and lock the S3 buckets down with bucket policies.
Remember
- Batch: hours, files in S3, scheduled jobs. Near real time: about a minute, Firehose. Real time: seconds, Kinesis Data Streams or MSK.
- Ingestion frequency and data size decide the service and its capacity.
- A 1 Gbps link moves at most about 10 TB a day. Bigger loads may need Snow or Direct Connect.
- Secure ingestion with IAM, TLS, VPC endpoints and KMS encryption.
Remember
- Keep raw data in S3. It is cheap, durable and every analytics service can read it.
On the exam
- “Process each event within seconds” points to Kinesis Data Streams. “Load into S3 every minute with no code” points to Firehose.
- “Producers in private subnets must send data without using the internet” points to a VPC endpoint (PrivateLink) for Kinesis or Firehose.
- “Analyze log files in S3 occasionally with SQL” points to Athena.