Everything to recall on one screen
Read this before a practice test. Each line maps an exam phrase to the answer it usually points to.
If the question says… pick
| “Access pattern unknown or changing” | S3 Intelligent‑Tiering |
| “Infrequent, but milliseconds when needed” | Standard‑IA (or One Zone‑IA if it can be regenerated) |
| “Archive, read about once a quarter, instant” | Glacier Instant Retrieval |
| “Compliance, keep 7 years, rarely read” | Glacier Deep Archive, plus Object Lock if it must be undeletable |
| “Several Linux instances share one folder” | EFS |
| “Distributed training, sub‑ms, data already in S3” | FSx for Lustre linked to the bucket |
| “Start training fast without copying the whole dataset” | SageMaker FastFile mode |
| “Land streaming events in S3, least effort” | Amazon Data Firehose |
| “Several consumers, replay, real time” | Kinesis Data Streams |
| “Already run Apache Kafka” | Amazon MSK |
| “Windowed aggregation or joins on a stream” | Managed Service for Apache Flink |
| “JSON stream to Parquet in S3, no code” | Firehose record format conversion |
| “On‑prem NFS/SMB to S3, EFS or FSx” | DataSync |
| “Partners upload over SFTP, no client change” | Transfer Family |
| “Clean data visually, no code” | Glue DataBrew |
| “Serverless Spark ETL” | Glue; long‑lived or very large clusters: EMR |
| “Process only new files each run” | Glue job bookmarks |
| “Slow, costly Athena queries” | Parquet + date partitions, files of roughly 128 MB to 1 GB |
| “Keep business renames when crawler runs” | Crawler policy add new columns only |
| “Audit every key use, revoke by disabling key” | SSE‑KMS with a customer managed key |
| “Column‑level access to lake tables” | Lake Formation |
| “Find PII sitting in S3” | Amazon Macie |
| “Vectors next to existing relational data” | RDS/Aurora PostgreSQL + pgvector |
| “High‑QPS semantic or hybrid search” | OpenSearch Service (vector engine) |
| “Billions of vectors, lowest cost, latency not critical” | S3 Vectors |
| “Same features for training and low‑latency inference” | SageMaker Feature Store, online + offline |
Numbers worth memorizing
- Kinesis shard: 1 MiB/s or 1,000 rec/s in, 2 MiB/s out shared
- Kinesis retention: 24 h default, up to 365 days
- Firehose batch call: 500 records or 4 MiB
- S3 object max 5 TB; single PUT max 5 GB; use multipart above ~100 MB
- Minimum storage days: IA 30, Glacier Instant and Flexible 90, Deep Archive 180
- IA minimum billable size 128 KB; Intelligent‑Tiering skips objects under 128 KB
- Lifecycle to IA only after 30 days
- Durability 11 nines; availability design: Standard 99.99%, One Zone‑IA 99.5%
- Glacier Flexible: 1–5 min expedited, 3–5 h standard, 5–12 h bulk
- Deep Archive: 12 h standard, 48 h bulk
Formats and layout
- Parquet / ORC: columnar, for Athena, Redshift Spectrum, training data
- Avro: row + schema, for streams and Kafka
- CSV / JSON: landing zone only, convert on arrival
- RecordIO‑protobuf: fastest input for many SageMaker built‑in algorithms; CSV input needs the label in the first column, no header
- Partition by date or region, never by ID or a true/false flag
- Snappy inside Parquet is splittable; a gzipped CSV is not
Security in one breath
- SSE‑S3 is on by default; move to SSE‑KMS for audit and key control; add Bucket Keys to cut KMS calls
- Block Public Access on, bucket policy limited to a VPC endpoint
- Least‑privilege roles; with versioning add
s3:GetObjectVersion - CloudTrail for API calls, server access logs for request detail
- CRR needs versioning on both buckets plus an IAM role; old objects need Batch Replication
MLA‑C02 domain weights
This module covers Task 1.1, “Collect and store data”.
The whole module on one page
Data enters by one of three doors, lands raw in S3, gets cleaned into Parquet, is described by the Glue Data Catalog, and becomes queryable in Athena. Every later section zooms into one box of this map.
S3, EFS or FSx?
The exam phrases this as a scenario. Ask the questions below in order and you will land on the right service almost every time.
| S3 | EFS | FSx | |
|---|---|---|---|
| Type | Object storage | NFS file system | Specialized FS (Lustre, Windows, and others) |
| Latency | Tens to low hundreds of ms per request | Low single‑digit ms | Sub‑ms (Lustre) |
| Access | HTTPS API | Mounted (NFSv4) on Linux | Mounted (Lustre client or SMB) |
| ML use | Data lakes, training datasets, model artifacts | Shared notebooks, legacy file‑based code | Distributed deep learning, HPC |
S3 storage classes as a temperature ladder
Every step down is cheaper to store and more expensive or slower to read. Bars show storage price relative to Standard (approximate us‑east‑1 list prices; check the Pricing Calculator before you rely on them).
- S3 Standard~$0.023/GB‑moMilliseconds. 3+ AZs. Designed for 99.99% availability. No minimum duration. Data read daily.
- Intelligent‑Tieringauto, plus monitoring feeMoves each object between tiers for you. No retrieval fees. Objects under 128 KB are not monitored. The answer for “unknown or changing access”.
- Standard‑IA~$0.0125Milliseconds, per‑GB retrieval fee. 30‑day minimum, 128 KB minimum billable size. Monthly‑ish access.
- One Zone‑IA~$0.01Single AZ, 99.5% availability, about 20% cheaper than Standard‑IA. Only for data you can recreate.
- Glacier Instant Retrieval~$0.004Still milliseconds. 90‑day minimum. Archive you touch about once a quarter.
- Glacier Flexible Retrieval~$0.0036Minutes to hours: expedited 1–5 min, standard 3–5 h, bulk 5–12 h. 90‑day minimum.
- Glacier Deep Archive~$0.00099Standard retrieval within 12 h, bulk within 48 h. 180‑day minimum. Compliance and long retention.
Pick a class
Answer three questions the way an exam scenario would describe the data.
Lifecycle rules: the waterfall
Data cools as it ages, so a lifecycle rule lets it fall down the ladder on a schedule. This rule is a common starting point for a raw bucket.
- Lifecycle can’t move an object to Standard‑IA or One Zone‑IA until it is at least 30 days old.
- Deleting or transitioning before the minimum duration still bills the full minimum (30, 90 or 180 days).
- Thousands of tiny objects can cost more in transition requests than you save.
What the waterfall saves
Example: 500 GB of logs arrive every day and are kept for a year. On day 365 you hold about 182.5 TB. Here is that month’s storage bill with and without the lifecycle rule above (1 TB counted as 1,000 GB).
The newer bucket types
Not core exam material yet, but you should recognize the names and what each is for.
| Bucket | Built for | Key trait | Name |
|---|---|---|---|
| General purpose | Everything else | All storage classes, regional | Globally unique |
| Directory (S3 Express One Zone) | Training caches, shuffle data | Single‑digit ms, one AZ | name--use1-az5--x-s3 |
| Table | Analytic tables | Apache Iceberg, managed compaction | Unique per account and Region |
| Vector | Embeddings for RAG and search | Similarity queries on stored vectors | Unique per account and Region |
Choosing the ingestion tool
Batch is the weekly grocery run; streaming is the mail slot. Start from where the data comes from.
Kinesis Data Streams versus Firehose
| Kinesis Data Streams | Amazon Data Firehose | |
|---|---|---|
| Job | A durable buffer many apps read from | A delivery pipe into a destination |
| Scaling | Shards (provisioned) or on‑demand mode | Automatic |
| Replay | Yes, retention 24 h by default, up to 365 days | No |
| Latency | Real time (sub‑second) | Near real time, flushes on buffer size or time |
| Consumers | Lambda, Managed Service for Apache Flink, Firehose, your own code | S3, Redshift, OpenSearch, Splunk, HTTP endpoints |
| Transform | In your consumer | Optional Lambda; can convert JSON to Parquet or ORC |
Shard calculator
Each provisioned shard takes 1 MiB/s or 1,000 records/s of writes, and gives 2 MiB/s of reads shared by all standard consumers.
A streaming path for card transactions
IncomingRecords, and use on‑demand mode when traffic is unpredictable.Row versus column formats
A query engine reading CSV must scan every row in full. Parquet stores each column together, so a query that needs one column reads one column. Try it.
Run SELECT AVG(amount)
| Format | Layout | Strength | Weakness |
|---|---|---|---|
| CSV | Row | Human‑readable, universal | No schema, slow and costly to query |
| JSON | Row, nested | Flexible, nested data | Verbose, poor for analytics |
| Parquet | Column | Compression, column pruning, the ML default | Not human‑readable |
| ORC | Column | Strong compression, built‑in indexes | Less common outside Hive |
| Avro | Row, with schema | Self‑describing, schema evolution, streaming | Not columnar |
For conversion at scale use Glue (serverless Spark). Reach for EMR only for very large or long‑running Spark jobs, or when you need Hudi, HBase or a persistent cluster. In a notebook, pandas plus pyarrow is enough.
Partitioning: the Goldilocks rule
A partition is a folder in the S3 path like year=2025/month=01/. When a query filters on that key, the engine skips every other folder. This is partition pruning.
customer_id
Too manyMillions of tiny folders and files. Listing and opening them costs more than reading them: the small‑files problem.
is_fraud
Too fewTwo giant piles. Filtering still scans half the lake, and the split is badly skewed.
year / month
Just rightA query for March reads one box and skips eleven. Dates and regions are the usual right answer.
s3://bucket/sales/transactions/
year=2025/month=01/day=01/part-0000.parquet
Cataloging and schema drift
Files alone are just objects. A Glue crawler reads them, infers columns and partitions, and writes a table to the Data Catalog so Athena, Redshift Spectrum and SageMaker can query by name.
- Create a database in the Data Catalog, for example
my_ml_db. - Create a crawler with an IAM role and an S3 path target.
- Run it, on demand or on a schedule after new data lands.
- Query the table in Athena to check the schema it inferred.
When the upstream file changes
Security in layers
No single control protects the lake. Read the diagram from the outside in: every request has to pass each ring.
| Option | Who holds the key | When the exam wants it |
|---|---|---|
| SSE‑S3 | AWS, fully managed | Simplest; on by default for new objects since January 2023 |
| SSE‑KMS | KMS key you control | Audit of key use in CloudTrail, separate key permissions, key rotation |
| DSSE‑KMS | KMS, two layers | Compliance that demands dual‑layer encryption |
| SSE‑C | You, sent with every request | You must keep keys outside AWS |
- Once versioning is on, a role that reads specific versions needs
s3:GetObjectVersion, not justs3:GetObject. - An ingestion Lambda should be able to write to
raw/and nothing else; no delete.
Cross‑Region Replication, in order
Each step depends on the one above it, which is why exam questions love to ask what is missing.
- Versioning on the source bucket.
- Versioning on the destination bucket in another Region. Both are required.
- An IAM role S3 can assume, allowed to read source versions (including ACLs and tags) and replicate into the destination.
- A replication rule with a filter, a priority and a delete‑marker setting.
- Only new objects replicate. For objects that already existed, run S3 Batch Replication.
- Test by uploading a file and listing the destination a minute later.
Hands‑on project: a small fraud‑detection lake
A build that uses every section above. Any transactions CSV works; the public, CC0‑licensed credit card transactions dataset on Kaggle is a good fit.
- Buckets: one each for raw, processed and curated data, with versioning, SSE‑KMS and Block Public Access.
- Disaster recovery: replicate the raw bucket to a second Region.
- Batch path: land the CSV in raw; a Glue job removes duplicates, adds year, month and day columns and writes compressed Parquet to processed.
- Streaming path: a small Python producer sends synthetic transactions through Firehose into raw, with a date prefix and a buffer large enough to avoid tiny files.
- Catalog: crawl the processed bucket and query it in Athena; filter on a partition column and compare the bytes scanned.
- Cost: lifecycle rules on raw and processed, plus a budget alert.
- Check: a short script that confirms versioning, encryption, replication, partitions and lifecycle on every bucket.
- Break it on purpose: opt the replication rule in to KMS‑encrypted objects, but leave
kms:Decrypton the source key out of the replication role. New objects stop reaching the backup bucket. Turn on replication metrics or event notifications to see the failures, then fix the role.
The rest of the exam guide for this module
MLA‑C02 Task 1.1, “Collect and store data”, lists nine skills. Here is where each one is covered, then a short lesson for every skill the sections above don’t fully reach.
| Skill in the exam guide | Where |
|---|---|
| 1.1.1 Extract data from S3, EBS, EFS, RDS, DynamoDB, OpenSearch | Deep dive 1 |
| 1.1.2 Choose storage by cost, performance, structure, compliance | Sections 2–4 |
| 1.1.3 Troubleshoot ingestion and storage capacity and scale | Section 5, deep dive 3 |
| 1.1.4 Stream with Kinesis, Apache Flink, Apache Kafka | Section 5, deep dive 2 |
| 1.1.5 Pick formats (Parquet, JSON, CSV, ORC) by access pattern | Section 6 |
| 1.1.6 Merge data from several sources (Glue, Spark) | Deep dive 5 |
| 1.1.7 Configure vector databases (OpenSearch, RDS pgvector, S3) | Deep dive 6 |
| 1.1.8 Ingest and store text, images, audio | Deep dive 7 |
| 1.1.9 Ingest data into SageMaker Feature Store | Deep dive 8, Module 2 |
Deep dive 1: pulling data out of other AWS stores
The exam expects you to know the usual exit door for each source. S3 is almost always where the data lands for training.
Deep dive 2: the full streaming family
Section 5 covers Kinesis and Firehose. The exam guide also names Apache Kafka and Apache Flink too. Think of it as three jobs in a row: hold the events, process them, deliver them.
Deep dive 3: when ingestion chokes (troubleshooting)
| Symptom | Likely cause | Fix |
|---|---|---|
ProvisionedThroughputExceeded although total traffic is low | One partition key gets most records (hot shard) | Use a high‑variety partition key; add shards or switch to on‑demand |
| Consumers fall further behind (iterator age climbs) | Readers share 2 MiB/s per shard | Enhanced fan‑out, more shards, bigger Lambda batches |
| Thousands of tiny files in S3 | Firehose buffer too small, or too many partitions | Raise buffer size or interval; compact with a Glue job |
| S3 returns 503 Slow Down | Request rate per prefix is too high | Spread keys over more prefixes (each handles about 3,500 writes and 5,500 reads per second); retry with backoff |
| Glue job slow or out of memory | Small files, too few or too small workers | Larger worker type, more workers, fewer bigger input files |
| Glue job reprocesses old files | No incremental state | Turn on job bookmarks |
Deep dive 4: getting data into a training job
Very commonly tested, and easy to overlook.
Deep dive 5: merging several sources
- Glue or Spark join on a shared key is the default answer: read each source into a frame, join, write Parquet.
- Athena federated query joins S3 data with a live database without copying it first; good for exploration, not for big recurring jobs.
- Glue FindMatches is an ML transform that links records that refer to the same thing when there is no clean shared key.
Deep dive 6: vector stores for RAG
New in MLA‑C02. A vector store keeps the number lists (embeddings) that represent your text or images, so you can search by meaning.
Deep dive 7: text, images and audio
- Store the raw files in S3, one prefix per type, and keep labels in a separate JSON Lines manifest that points to each object’s S3 URI. Ground Truth labeling jobs produce exactly this kind of manifest.
- Turn media into text when a model needs text: Transcribe for audio, Textract for scanned documents, Rekognition for image labels. Bedrock Data Automation extracts structured output from documents, images, audio and video.
- Live camera feeds go through Kinesis Video Streams, not Data Streams.
- Don’t put images inside CSV or Parquet rows; store the path and keep the object in S3.
Deep dive 8: Feature Store ingestion
Module 2 goes deeper, but it sits in Task 1.1, so learn the shape now.
Other S3 features the exam likes
| Feature | What it solves |
|---|---|
| Multipart upload | Large objects upload in parallel parts; required above 5 GB |
| Transfer Acceleration | Faster uploads from far‑away clients through edge locations |
| Access Points | One named entry per team or app, each with its own policy |
| Object Lock | Write‑once storage for compliance; objects can’t be deleted or changed |
| Event Notifications / EventBridge | New object lands, pipeline starts (Lambda, Step Functions, Glue) |
| Athena CTAS | Convert CSV to partitioned Parquet with one SQL statement |
| Lake Formation | Table‑, column‑ and row‑level permissions on the Glue catalog |
| Macie | Scans buckets and flags personal data |
Self‑check questions
Answer each one aloud first, then open it to check.
Which storage service fits: S3, EFS or FSx for Lustre?
S3 is object storage reached over an API: cheapest, effectively unlimited, the default for data lakes and training data. EFS is a shared NFS file system that many Linux instances mount at once: for shared notebooks or code that expects files. FSx for Lustre is a parallel file system with sub‑millisecond latency that can sit on top of an S3 bucket: for distributed training and HPC where I/O is the bottleneck.
Rule: start with S3, move to EFS only for a shared mount, move to FSx for Lustre only when read speed limits training.
Name the S3 storage classes and give a use for each
- Standard: active training data read daily
- Intelligent‑Tiering: a new dataset with unknown usage
- Standard‑IA: last quarter’s data, read monthly
- One Zone‑IA: derived features you can rebuild
- Glacier Instant Retrieval: old model artifacts needed instantly but rarely
- Glacier Flexible Retrieval: raw logs kept for a yearly audit
- Glacier Deep Archive: seven‑year regulatory retention
Express One Zone (directory buckets) is an eighth, specialized option for very fast single‑AZ access.
What is a partition, and how does it make queries cheaper?
A partition is a folder level in the S3 path, like year=2025/month=01/, that the catalog knows about. When a query filters on that column, Athena or Spark reads only the matching folders and skips the rest, so less data is scanned: faster and cheaper. Pick a key with moderate variety, usually date or region. Too many values means millions of tiny files; too few means almost nothing is skipped.
When would you pick Glue over DataBrew, and the reverse?
Glue runs Spark code: handles any scale and any logic, joins, custom code, job bookmarks and streaming ETL. It needs coding skill.
DataBrew is visual, with 250+ ready transforms and data profiling, so analysts can clean data without code. It is less flexible for complex joins or custom logic and it is batch only.
Kinesis Data Streams or Firehose: how do you decide?
Data Streams is a buffer you manage: real‑time, many independent consumers, replay up to 365 days, capacity set by shards or on‑demand mode. Firehose is a fully managed delivery pipe: it buffers then writes to S3, Redshift, OpenSearch or HTTP, scales itself, can transform with Lambda and convert to Parquet, but has no replay and adds buffer delay.
Use Data Streams when several apps process events or you need replay; use Firehose when the goal is just “get it into S3”. They are often chained.
SSE‑S3 or SSE‑KMS: what is the difference, and when does it matter?
It protects data at rest if storage media or a copy is exposed, and most compliance rules require it. Since January 2023 S3 applies SSE‑S3 to new objects automatically.
SSE‑S3: AWS owns and manages the keys, zero setup, no extra cost. SSE‑KMS: you control a KMS key, its permissions and rotation, every use is logged in CloudTrail, and disabling the key cuts access. It adds KMS request cost, which S3 Bucket Keys reduce.
How do you keep S3 and Kinesis costs down?
- Lifecycle rules down the class ladder, or Intelligent‑Tiering when usage is unclear
- Expire old versions and abort incomplete multipart uploads
- Parquet with compression and partitions so queries scan less
- Replicate only the prefixes that need disaster recovery
- Kinesis: right‑size shards, use on‑demand for spiky traffic, or Firehose when you only deliver
- Cost Explorer, Budgets alerts, and S3 Storage Lens to see where money goes
A new column appears in incoming files. What happens in the catalog?
Schema evolution means the shape of incoming data changes over time: new columns, changed types. A crawler compares files to the catalog and follows its schema change policy: update the table, add new columns only, or ignore and log. The catalog keeps old table versions.
For a new column: with “add new columns only” it appears as a nullable column, old rows read as null, and you then decide whether downstream jobs and models should use it. Formats with schemas (Parquet, Avro) make this safer than CSV, where column position can shift.
What does Cross‑Region Replication need before it works?
- Turn on versioning on the source and the destination bucket
- Create an IAM role that S3 can assume; it needs to read versions on the source (
s3:GetObjectVersionForReplication,s3:GetObjectVersionAcl,s3:GetObjectVersionTagging, list the bucket) and write on the destination (s3:ReplicateObject,s3:ReplicateDelete,s3:ReplicateTags) - If objects use SSE‑KMS, allow decrypt with the source key and encrypt with a destination key
- Add the replication rule; use Batch Replication for objects that existed before
- Turn on replication metrics to catch failures
Versioning and replication: how do they differ, and why use both?
Versioning keeps every past version inside one bucket, so an overwrite or delete can be undone. Replication copies objects to a second bucket, usually in another Region, so a regional outage doesn’t lose data. Replication requires versioning, and together they cover both human mistakes and site failure. Note that by default deletes aren’t replicated, which protects the copy from accidental deletion.
Exam drill
Scenario questions in the exam’s style. Tap an answer to see why.
0 / 0Common traps and outdated advice
Statements that show up often in study material and tutorials but are imprecise or out of date.
- DataBrew and DataSync are batch tools. Streaming means Kinesis Data Streams, Firehose, MSK or Managed Service for Apache Flink.
- Glacier Deep Archive standard retrieval finishes within 12 hours; bulk retrieval can take up to 48.
- S3 has encrypted every new object with SSE‑S3 by default since January 2023. The real decision is whether to move to SSE‑KMS.
- Claims like “Parquet makes a file ten times smaller” are illustrative. Compression depends entirely on the data.
- A Glue job that reads a table from the Data Catalog needs that table to exist first. Crawl the source, or read straight from S3.
- pandas needs the
s3fspackage to read or writes3://paths. - Replication failures are not silent if you turn on replication metrics or S3 event notifications.
- Older study material treats table and vector buckets as optional extras. MLA‑C02 lists S3 as a vector store option in Task 1.1.
- S3 has been strongly consistent for reads after writes and deletes since December 2020. Answers that rely on eventual consistency are outdated.