概念 · SAA-C03 の発展
S3 as the ML data lake
Lay out buckets and prefixes by stage, partition, version, tier and trigger from S3 events.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Solutions Architect Associateで学んだこと
- Buckets hold objects with keys. S3 is strongly consistent and built for 11 nines of durability.
- Event notifications start a pipeline when an object arrives.
- Versioning keeps old copies. Lifecycle rules move data to cheaper classes.
- 1A job cleans raw data and writes typed Parquet to curated.
- 2Another job builds model-ready features.
- 3Training reads features and writes model artifacts.
流れ
- 1A job cleans raw data and writes typed Parquet to curated.
- 2Another job builds model-ready features.
- 3Training reads features and writes model artifacts.
Data moves through four stages, each with its own prefix.
Read in every training run
- Storage class
- S3 Standard
- Note
- No retrieval fee
Access pattern unknown
- Storage class
- Intelligent-Tiering
- Note
- Moves objects by use
Old data, rarely reused
- Storage class
- Glacier Instant Retrieval
- Note
- Milliseconds to read
Compliance archive
- Storage class
- Glacier Deep Archive
- Note
- Restore before reading
| Use | Storage class | Note |
|---|---|---|
| Read in every training run | S3 Standard | No retrieval fee |
| Access pattern unknown | Intelligent-Tiering | Moves objects by use |
| Old data, rarely reused | Glacier Instant Retrieval | Milliseconds to read |
| Compliance archive | Glacier Deep Archive | Restore before reading |
概要
Treat S3 as stages of one lake. Raw holds data as it arrived and is never edited. Curated holds cleaned, typed data, usually as Parquet. Features holds model-ready data. Models holds trained model artifacts. Use one prefix per stage, or one bucket per stage when access rules differ. Inside a stage, partition the prefix by the columns that jobs filter on, in the Hive style, such as year=2026/month=11/. Athena and Glue then read only the folders they need. Spread requests over many prefixes: S3 supports at least 3,500 write and 11,000 read requests per second per partitioned prefix.
概要
To reproduce a dataset, turn on versioning and record the version IDs of the objects a training run used, or copy the training set to a dated prefix and keep it. A lifecycle rule can expire old noncurrent versions. Lifecycle rules also move data between classes: by default, objects under 128 KB do not transition, so pack many tiny files into larger ones.
概要
An S3 event notification can send events to Lambda, SQS, SNS or EventBridge. An EventBridge rule can then start a Step Functions workflow or a SageMaker pipeline when new data lands. A SageMaker training job reads from S3 through an input channel. The channel names an S3 prefix, which means all objects under it, or a manifest file that lists exact objects. The job role needs read access and the bucket should be in the same Region.
覚えること
- Stages: raw, curated, features, models. Raw is never edited.
- Hive-style partitions (year=2026/month=11/) let jobs skip folders.
- At least 3,500 writes or 11,000 reads per second per partitioned prefix.
- Reproduce a dataset with versioning and recorded version IDs, or a dated copy.
覚えること
- Lifecycle: objects under 128 KB do not transition by default.
- A channel is an S3 prefix or a manifest file. Events start pipelines.
試験では
- “Prove which data trained a model” points to S3 versioning with recorded version IDs, or a dated copy of the training set.
- “Start retraining when new files arrive” points to an S3 event notification through EventBridge to a pipeline.
- “Queries scan the whole bucket each day” points to partitioned prefixes.
このタスクの内容 · 1.1
- S3 as the ML data lake
- Choosing storage: S3, EFS, EBS, FSx and transfer tools
- Extracting data from databases and search
- Data formats: Parquet, ORC, Avro, CSV, JSON, RecordIO
Kinesis Data Streams
Firehose
Managed Flink
MSK
- Troubleshooting ingestion and storage capacity
Catalog and Lake Formation
- Merging data from multiple sources
- Choosing and configuring a vector store
OpenSearch
- Aurora and RDS PostgreSQL with pgvector
- Ingesting text, image, audio and video
- Ingesting data into SageMaker Feature Store