Lesson 2 of 3 Amazon S3 Performance and Data Transfer

Moving Data with Multipart Upload, Transfer Acceleration and DataSync

This lesson explains how object size, distance from the Region and the source of the data decide the right technique for moving data into and out of S3.

Learning outcomes

After completing this lesson, you will be able to:

  • Use multipart upload for large objects.
  • Speed up long-distance transfers with Transfer Acceleration.
  • Migrate and synchronise data with AWS DataSync.

Multipart upload

Multipart upload splits an object into parts (5 MiB to 5 GiB each, up to 10,000 parts) that are uploaded independently and in parallel and then assembled. It improves throughput, allows a failed part to be retried without restarting, and allows uploads to be paused and resumed. AWS recommends it for objects over 100 MB, and it is required for objects over 5 GB (the single PUT limit); the maximum object size is 50 TB. The AWS CLI aws s3 cp and aws s3 sync commands use multipart upload automatically above a configurable threshold. Parts of uploads that are never completed are stored and charged until they are aborted, so a lifecycle rule with AbortIncompleteMultipartUpload should clean them up.

aws configure set default.s3.multipart_threshold 64MB
aws configure set default.s3.multipart_chunksize 64MB
aws configure set default.s3.max_concurrent_requests 20
aws s3 cp ./backup.tar s3://acme-backups/2026/backup.tar

The following diagram shows a large file uploaded in parts.

Multipart upload. An object is split into parts of 5 MiB to 5 GiB, up to 10,000, uploaded in parallel and retried individually, then assembled by CompleteMultipartUpload. Parts of uploads that are never completed are stored and charged, so a lifecycle rule with AbortIncompleteMultipartUpload removes them.
The sizes and the seven-day period are illustrative.

100MB

Size above which multipart upload is recommended

5GB

Single PUT limit; multipart is required above it

10,000parts

Maximum parts in one upload

50TB

Maximum object size

True or false

Multipart upload

Exam skills 1.3.3

Check facts about multipart upload.

Log in to try this activity Interactive activities are free with an account.

S3 Transfer Acceleration

S3 Transfer Acceleration speeds up transfers over long distances. Clients upload to the nearest CloudFront edge location using a distinct endpoint (<bucket>.s3-accelerate.amazonaws.com), and the data travels to the bucket's Region over the AWS network. It is enabled per bucket, the bucket name must be DNS-compliant without dots, and you pay an extra per-GB fee only when acceleration actually improves the transfer. The Speed Comparison tool shows the benefit from a client's location. It suits users uploading from other continents; it does not help clients in the same Region.

Scenario questions

Moving data to S3

Exam skills 1.3.3

Choose the transfer method for each scenario.

Log in to try this activity Interactive activities are free with an account.

AWS DataSync

AWS DataSync transfers large amounts of file and object data between on-premises storage (NFS, SMB, HDFS, object storage), other clouds and AWS storage (S3, EFS, FSx). An agent deployed as a VM on premises (not needed for AWS-to-AWS transfers or some cloud sources) reads the source, and a task defines source and destination locations, options such as data verification, bandwidth limits, include and exclude filters, and a schedule. DataSync uses a purpose-built protocol with parallelism and compression, copies metadata and permissions, transfers only changed data on later runs, and logs to CloudWatch. It can run over the internet, Direct Connect or a VPC endpoint.

The following table helps choose a transfer method.

SituationBest method
Large objects uploaded by an applicationMultipart upload (parallel parts)
Users far from the bucket's RegionS3 Transfer Acceleration
Recurring copy of NFS/SMB shares to S3, EFS or FSx with verificationAWS DataSync
Ad hoc copy between buckets or foldersaws s3 sync or S3 Batch Operations
Ongoing low-latency file access from on premises backed by S3Storage Gateway (S3 File Gateway)
Worked example

Migrating a file share

A company must move 60 TB from an on-premises NFS server to S3 over a 1 Gbps link, then keep S3 in sync nightly until cut-over, without saturating the link during business hours. The team deploys a DataSync agent VM, creates an NFS source location and an S3 destination location, and schedules a task every night with a bandwidth limit during the day for the initial copy. Verification checks transferred data, and later runs copy only changed files. A custom script with aws s3 sync would lack scheduling, bandwidth control and integrity verification without extra work.

Check yourself

How are storage charges for abandoned multipart uploads prevented?

Show answer

With a lifecycle rule that aborts incomplete multipart uploads.

Exam Tips

Remember for the exam

  • Use multipart upload above 100 MB; it is required above 5 GB.
  • Abort incomplete multipart uploads with a lifecycle rule.
  • Transfer Acceleration helps distant clients through edge locations.
  • DataSync moves and synchronises large on-premises datasets with scheduling, verification and bandwidth limits.