Getting data into AWS, and keeping it there

Module 1 of a visual study guide for the AWS Certified Machine Learning Engineer – Associate (MLA‑C02) exam: storage, ingestion, formats, cataloging, security and cost. Every diagram follows the same color rule: warm means hot, frequently read data; blue means cold, rarely read data.

StandardIntelligent‑TieringStandard‑IAOne Zone‑IAGlacier InstantGlacier FlexibleDeep Archive
Hot: pricier storage, instantCold: cheap storage, slow or costly to read
Which exam versionThe English MLA‑C01 exam ended on September 28, 2026. English candidates now take MLA‑C02: in beta now (85 questions, 170 minutes, USD 75), with the standard version from January 14, 2027. Same four domains, but Domain 1 is now “Data Preparation for ML and AI” and adds vector databases, multimodal data and Feature Store ingestion. These notes follow MLA‑C02; the Deep dives section covers the newer skills.
Cheatsheet

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

1. Data Preparation for ML and AI28%
2. ML Model and FM Development24%
3. Deployment and Orchestration24%
4. Operating, Monitoring, Securing24%

This module covers Task 1.1, “Collect and store data”.

1

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.

Batch filesCSV, JSON Live eventsapps, POS, IoT Outside AWSNFS, SMB, SFTP Glue / DataBrewscheduled ETL Kinesis, Firehosestreaming DataSyncTransfer Family S3 raw bucketversioned, SSE‑KMS, public access blocked CRR Backupus‑west‑2 Glue ETL job (PySpark)dedupe, trim, add year/month/day S3 processed bucketSnappy Parquet, partitioned by date S3 curatedfeeds Module 2 Glue crawlerinfers schema, registers partitions Glue Data Catalogdatabases and table definitions Athena SQLyou pay per byte scanned LifecycleStandard → IA→ Glacier
Three tiers (raw, processed, curated) are the backbone of the hands‑on project at the end.
2

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.

Do several machines need oneshared, mounted file system? No Amazon S3objects, data lakes,default for ML data Yes HPC or distributed trainingneeding sub‑ms parallel I/O? Yes FSx for Lustreparallel file system,links to an S3 bucket No Windows workloadthat speaks SMB? Yes FSx for WindowsSMB, ActiveDirectory No Amazon EFSNFS for Linux, many EC2 at once,Elastic throughput by default
S3EFSFSx
TypeObject storageNFS file systemSpecialized FS (Lustre, Windows, and others)
LatencyTens to low hundreds of ms per requestLow single‑digit msSub‑ms (Lustre)
AccessHTTPS APIMounted (NFSv4) on LinuxMounted (Lustre client or SMB)
ML useData lakes, training datasets, model artifactsShared notebooks, legacy file‑based codeDistributed deep learning, HPC
Memory hookObject in a bucket: S3. Shared Linux folder: EFS. Need speed at any price: FSx for Lustre. EFS performance modes are General Purpose and Max I/O; throughput modes are Elastic, Bursting and Provisioned.
3

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).

Pick a class

Answer three questions the way an exam scenario would describe the data.

How often is it read?
How fast must a read come back?
Can you regenerate it from an upstream source?
Choose an answer for each question.

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.

day 0day 30day 90time Standard$0.023 Standard‑IA~$0.0125 per GB‑month Glacier Flexible~$0.0036 per GB‑month cheaper ↓
Data you read more often can wait longer, for example Standard‑IA after 60 days. A rule can also expire objects, delete noncurrent versions and abort incomplete multipart uploads.
Often tested
  • 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).

$4,198 −$315 −$2,668 $1,215 All inStandard 30 TBto IA 137.5 TB toGlacier Withlifecycle
About 71% lower per month, using Standard $0.023, Standard‑IA $0.0125 and Glacier Flexible $0.0036 per GB‑month. Not counted: transition request fees, retrieval fees, and any reads of the IA data. The Glacier step does most of the work because most of the data is old.
4

The newer bucket types

Not core exam material yet, but you should recognize the names and what each is for.

BucketBuilt forKey traitName
General purposeEverything elseAll storage classes, regionalGlobally unique
Directory (S3 Express One Zone)Training caches, shuffle dataSingle‑digit ms, one AZname--use1-az5--x-s3
TableAnalytic tablesApache Iceberg, managed compactionUnique per account and Region
VectorEmbeddings for RAG and searchSimilarity queries on stored vectorsUnique per account and Region
Consistency, a classic trapS3 has been strongly consistent for reads after writes and deletes since December 2020. If an answer choice relies on “eventual consistency” in S3, it is outdated.
5

Choosing the ingestion tool

Batch is the weekly grocery run; streaming is the mail slot. Start from where the data comes from.

Where does the data come from? Files on a schedule,transform in code AWS Glue ETLserverless Spark, per‑second Same, but no‑codeanalysts cleaning data Glue DataBrewvisual recipes, 250+ transforms Live events, needreplay or own consumers Kinesis Data Streamsshards, data retained for replay Live events, justland them in S3 Amazon Data Firehoseauto‑scales, buffers, no replay On‑prem NFS or SMB,bulk or recurring copies AWS DataSyncagent; to S3, EFS, any FSx Partners push filesover SFTP, FTPS, FTP Transfer Familymanaged endpoint; S3 or EFS
Two boundaries to remember: Transfer Family writes only to S3 or EFS, so a move into FSx needs DataSync; DataBrew is a no‑code batch tool, not a streaming one.

Kinesis Data Streams versus Firehose

Kinesis Data StreamsAmazon Data Firehose
JobA durable buffer many apps read fromA delivery pipe into a destination
ScalingShards (provisioned) or on‑demand modeAutomatic
ReplayYes, retention 24 h by default, up to 365 daysNo
LatencyReal time (sub‑second)Near real time, flushes on buffer size or time
ConsumersLambda, Managed Service for Apache Flink, Firehose, your own codeS3, Redshift, OpenSearch, Splunk, HTTP endpoints
TransformIn your consumerOptional 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

Lambda producerput_record_batch: 500 rec / 4 MiB IoT Core topicdevice telemetry IoT rule → Data Streamsreplayable buffer Firehose: txn‑eventsflushes at 64 MB or 60 s, whichever firstoptional Lambda transform, GZIP s3://lake‑raw/events/yyyy/MM/dd/ prefix errors/ prefixrecords that failed
Large enough buffers avoid the small‑files problem; the date prefix becomes your partition layout later.
Cost trapProvisioned shards bill by the hour whether or not data flows. A stream sized up for a short traffic spike and never scaled back keeps charging for idle capacity. Alarm on IncomingRecords, and use on‑demand mode when traffic is unpredictable.
6

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)

FormatLayoutStrengthWeakness
CSVRowHuman‑readable, universalNo schema, slow and costly to query
JSONRow, nestedFlexible, nested dataVerbose, poor for analytics
ParquetColumnCompression, column pruning, the ML defaultNot human‑readable
ORCColumnStrong compression, built‑in indexesLess common outside Hive
AvroRow, with schemaSelf‑describing, schema evolution, streamingNot columnar
Memory hookScanned by Athena or Redshift Spectrum: Parquet or ORC. Flowing through Kafka or a stream with a schema: Avro. Coming from humans: CSV or JSON, converted on arrival.

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.

7

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 many

Millions of tiny folders and files. Listing and opening them costs more than reading them: the small‑files problem.

is_fraud

Too few

Two giant piles. Filtering still scans half the lake, and the split is badly skewed.

year / month

Just right

A 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
8

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.

  1. Create a database in the Data Catalog, for example my_ml_db.
  2. Create a crawler with an IAM role and an S3 path target.
  3. Run it, on demand or on a schedule after new data lands.
  4. Query the table in Athena to check the schema it inferred.

When the upstream file changes

New file arrives withan extra column: discount_code Glue crawler runs Schema change policy? Update tableadds columns,changes types,can undo yourmanual renamesrisky Add newcolumns onlyadds discount_code,keeps your typesand namesgood default Ignore, log onlycatalog frozen,you approvechanges by handlocked production
The Data Catalog keeps earlier table versions, so a bad update can be rolled back.
9

Security in layers

No single control protects the lake. Read the diagram from the outside in: every request has to pass each ring.

Audit: CloudTrail and S3 access logs Network: VPC endpoint in bucket policy Identity: least‑privilege IAM Encryption: SSE‑KMS and TLS Your dataversioning onBlock Public Access on
OptionWho holds the keyWhen the exam wants it
SSE‑S3AWS, fully managedSimplest; on by default for new objects since January 2023
SSE‑KMSKMS key you controlAudit of key use in CloudTrail, separate key permissions, key rotation
DSSE‑KMSKMS, two layersCompliance that demands dual‑layer encryption
SSE‑CYou, sent with every requestYou must keep keys outside AWS
IAM traps
  • Once versioning is on, a role that reads specific versions needs s3:GetObjectVersion, not just s3:GetObject.
  • An ingestion Lambda should be able to write to raw/ and nothing else; no delete.
Also worth knowingWith SSE‑KMS at high request rates, enable S3 Bucket Keys to cut KMS API calls and cost. Lake Formation adds table‑ and column‑level permissions on top of the Glue catalog.
10

Cross‑Region Replication, in order

Each step depends on the one above it, which is why exam questions love to ask what is missing.

  1. Versioning on the source bucket.
  2. Versioning on the destination bucket in another Region. Both are required.
  3. An IAM role S3 can assume, allowed to read source versions (including ACLs and tags) and replicate into the destination.
  4. A replication rule with a filter, a priority and a delete‑marker setting.
  5. Only new objects replicate. For objects that already existed, run S3 Batch Replication.
  6. Test by uploading a file and listing the destination a minute later.
Versioning versus replicationVersioning protects against overwrites and deletes inside one bucket. Replication protects against losing a Region. Use both; replication requires versioning anyway. Replication roughly doubles storage cost, so replicate only the prefixes that matter.
11

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.

  1. Buckets: one each for raw, processed and curated data, with versioning, SSE‑KMS and Block Public Access.
  2. Disaster recovery: replicate the raw bucket to a second Region.
  3. Batch path: land the CSV in raw; a Glue job removes duplicates, adds year, month and day columns and writes compressed Parquet to processed.
  4. 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.
  5. Catalog: crawl the processed bucket and query it in Athena; filter on a partition column and compare the bytes scanned.
  6. Cost: lifecycle rules on raw and processed, plus a budget alert.
  7. Check: a short script that confirms versioning, encryption, replication, partitions and lifecycle on every bucket.
  8. Break it on purpose: opt the replication rule in to KMS‑encrypted objects, but leave kms:Decrypt on 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.
12

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 guideWhere
1.1.1 Extract data from S3, EBS, EFS, RDS, DynamoDB, OpenSearchDeep dive 1
1.1.2 Choose storage by cost, performance, structure, complianceSections 2–4
1.1.3 Troubleshoot ingestion and storage capacity and scaleSection 5, deep dive 3
1.1.4 Stream with Kinesis, Apache Flink, Apache KafkaSection 5, deep dive 2
1.1.5 Pick formats (Parquet, JSON, CSV, ORC) by access patternSection 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, audioDeep dive 7
1.1.9 Ingest data into SageMaker Feature StoreDeep 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.

RDS / Aurorarelational Glue job with a JDBC connectionor zero‑ETL into Redshift for analytics DynamoDBkey‑value DynamoDB export to S3from point‑in‑time recovery, no read capacity used EBSdisk on one EC2 Copy from the instance to S3not shareable across instances like EFS OpenSearchsearch, vectors Query API or snapshot to S3more often a destination than a source S3 raw zone → convert to Parquetthen everything from sections 6–8 applies

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.

Producers: apps, devices, logs Hold Kinesis Data Streamsshards or on‑demand modereplay up to 365 days Amazon MSKmanaged Apache Kafkawhen you already use Kafka Process Managed Service for Apache Flinkwindows, joins, running aggregates, anomaly flagssimple per‑record work: AWS Lambda instead Deliver Amazon Data Firehosebuffers, converts, writes S3RedshiftOpenSearch
Live video from cameras is its own service: Kinesis Video Streams. Firehose can also read straight from MSK.

Deep dive 3: when ingestion chokes (troubleshooting)

SymptomLikely causeFix
ProvisionedThroughputExceeded although total traffic is lowOne 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 shardEnhanced fan‑out, more shards, bigger Lambda batches
Thousands of tiny files in S3Firehose buffer too small, or too many partitionsRaise buffer size or interval; compact with a Glue job
S3 returns 503 Slow DownRequest rate per prefix is too highSpread 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 memorySmall files, too few or too small workersLarger worker type, more workers, fewer bigger input files
Glue job reprocesses old filesNo incremental stateTurn on job bookmarks

Deep dive 4: getting data into a training job

Very commonly tested, and easy to overlook.

Need a shared file system withsub‑ms, parallel reads? Yes FSx for Lustreor EFS if dataalready lives there No Large dataset in S3, and the jobshould start without a full copy? Yes FastFile modestreams S3 objectsas files on demand No File mode (the default)copies everything to the instance’svolume before training starts Pipe mode is the older streaming option; FastFile replaces it for mostjobs. Many built‑in algorithms read RecordIO‑protobuf fastest.

Deep dive 5: merging several sources

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.

Data already in PostgreSQL, oryou need SQL joins with metadata? Yes RDS / Aurora+ pgvectorHNSW index No High query volume, low latency,or keyword + vector (hybrid)? Yes OpenSearchService orServerless No S3 Vectors (vector buckets)huge volumes, lowest cost,fine with sub‑second queries Bedrock KnowledgeBases can create andfill any of these
The exam also asks you to configure them: index type, vector dimension matching the embedding model, and the metadata you store beside each vector for filtering. Chunking and embeddings themselves are Task 1.2.

Deep dive 7: text, images and audio

Deep dive 8: Feature Store ingestion

Module 2 goes deeper, but it sits in Task 1.1, so learn the shape now.

BatchProcessing job, Glue,Data Wrangler, SDK ingest() StreamingLambda or Flink callingthe PutRecord API Feature groupneeds a record identifier and anevent‑time feature in every record Online storelatest value per recordmillisecond GetRecordused at inference Offline storefull history in S3Glue catalog, Athenaused to build training sets Online writes copy to the offline store automatically. Point‑in‑timequeries on event time prevent future data leaking into training.

Other S3 features the exam likes

FeatureWhat it solves
Multipart uploadLarge objects upload in parallel parts; required above 5 GB
Transfer AccelerationFaster uploads from far‑away clients through edge locations
Access PointsOne named entry per team or app, each with its own policy
Object LockWrite‑once storage for compliance; objects can’t be deleted or changed
Event Notifications / EventBridgeNew object lands, pipeline starts (Lambda, Step Functions, Glue)
Athena CTASConvert CSV to partitioned Parquet with one SQL statement
Lake FormationTable‑, column‑ and row‑level permissions on the Glue catalog
MacieScans buckets and flags personal data
13

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.

14

Exam drill

Scenario questions in the exam’s style. Tap an answer to see why.

0 / 0
15

Common traps and outdated advice

Statements that show up often in study material and tutorials but are imprecise or out of date.