AWS Certified Developer – Associate (DVA-C02)Development with AWS ServicesMedium
A developer is designing an application that requires users to upload large files (up to 100 GB) to an Amazon S3 bucket. To ensure robust uploads, the application must be able to resume uploads after network interruptions and improve overall upload speed by uploading parts of the file concurrently. Which S3 API operation should the developer use to meet these requirements?
- AS3 PutObject
- BS3 Multipart Upload
- CS3 UploadPart
- DS3 CopyObject
Show answer & explanationAnswer & explanation
Correct answer: B. S3 Multipart Upload
S3 Multipart Upload is specifically designed for uploading large files. It allows files to be uploaded in parts, which enables concurrent uploads, pausing and resuming, and improved resilience against network failures, all crucial for large files.
Why the other options are wrong
- A. S3 PutObject is suitable for single-operation uploads up to 5 GB, but not for large files requiring resume capabilities or concurrent parts.
- C. S3 UploadPart is a component of the Multipart Upload process, not the overarching API operation itself that initiates and completes the upload.
- D. S3 CopyObject is for copying existing objects within or between S3 buckets, not for uploading new files from a client.
S3 Multipart Upload
S3 Multipart Upload is a feature that allows you to upload a single object as a set of parts, enabling faster, more flexible, and more fault-tolerant uploads of large files.
- Uploads files in parts concurrently.
- Enables pausing and resuming uploads.
- Recommended for files larger than 100 MB, required for files over 5 GB.
Memory trick: For big S3 files, multipart upload always compiles.