ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept · Builds on SAA-C03

Choosing storage: S3, EFS, EBS, FSx and transfer tools

Pick the store for ML data by structure, access pattern, throughput, cost and residency.

You know from Solutions Architect Associate

  • Object, file and block storage fit different users: S3, EFS and FSx, EBS.
  • An EBS volume lives in one Availability Zone. EFS spans the zones of a Region.
  • DataSync copies files on a schedule. Storage Gateway lets on-premises software use AWS storage.
Read the Solutions Architect Associate lesson
  • S3

    Role in ML
    Data lake, training input, models
    Watch for
    Not a file system
  • EFS

    Role in ML
    Shared datasets and notebooks
    Watch for
    Costs more per GB than S3
  • EBS

    Role in ML
    Volume of one instance
    Watch for
    One instance, one zone
  • FSx for Lustre

    Role in ML
    Fast training reads, linked to S3
    Watch for
    Extra cost, needs a VPC
Four stores and what each does in ML.

1 / 2

  • S3

    Role in ML
    Data lake, training input, models
    Watch for
    Not a file system
  • EFS

    Role in ML
    Shared datasets and notebooks
    Watch for
    Costs more per GB than S3
  • EBS

    Role in ML
    Volume of one instance
    Watch for
    One instance, one zone

2 / 2

  • FSx for Lustre

    Role in ML
    Fast training reads, linked to S3
    Watch for
    Extra cost, needs a VPC
Four stores and what each does in ML.
On premises
DataSync
S3
FSx for Lustre
Training
  1. 1DataSync copies files from the local server on a schedule.
  2. 2The files land in S3, the data lake.
  3. 3FSx for Lustre is linked to the bucket and loads files on first read.
  4. 4Training instances mount the file system and read at high speed.
Files from on premises reach training through S3 and FSx for Lustre.

Step by step

  1. 1DataSync copies files from the local server on a schedule.
  2. 2The files land in S3, the data lake.
  3. 3FSx for Lustre is linked to the bucket and loads files on first read.
  4. 4Training instances mount the file system and read at high speed.

Files from on premises reach training through S3 and FSx for Lustre.

What it is

For ML, S3 is the default home of the data. Training reads it from S3, and every stage of the pipeline can write back to it. Add a faster layer only when training waits on data. Amazon FSx for Lustre can be linked to an S3 bucket: it shows the objects as files, loads them on first read, and serves them at high throughput and sub-millisecond latency. A training job must run in a VPC to mount FSx for Lustre or EFS.

What it is

Amazon EFS holds datasets and code that many people or jobs share, such as the home folders of SageMaker Studio users. Amazon EBS is the volume attached to one instance: a notebook or a training instance copies data to it in File mode. To bring data in from on premises, AWS DataSync copies files over the network on a schedule. For large training datasets moved steadily, AWS Direct Connect gives a dedicated private network link from on premises to AWS, often used with DataSync. AWS Storage Gateway presents S3 as NFS or SMB shares to local software.

What it is

Lake, warehouse and lakehouse describe how the data is organised. A data lake keeps raw and curated files in S3 and queries them with Athena or Spark. A data warehouse such as Amazon Redshift holds structured tables for fast SQL and reports. A lakehouse keeps files in S3 in an open table format such as Apache Iceberg, so both Athena and Redshift can query them.

Residency decides the Region: keep data in the Region that the rules require. Cost decides the class and the layer: S3 holds the bulk, and the fast layers hold only what training reads now.

Remember

  • S3 first: data lake, training input and model output.
  • FSx for Lustre linked to S3: fast, repeated reads for big training jobs.
  • EFS: shared datasets and notebooks. EBS: the volume of one instance.
  • DataSync copies files in on a schedule. Storage Gateway is a local door to S3.

Remember

  • Lake: files in S3. Warehouse: Redshift tables. Lakehouse: open table format on S3.
  • FSx and EFS in training need the job to run in a VPC.

On the exam

  • “Training waits on slow reads of many files in S3” points to FSx for Lustre linked to the bucket.
  • “Move terabytes of files from an on-premises server on a schedule” points to AWS DataSync.
  • “Share one dataset between notebooks of a team” points to Amazon EFS.