
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A social media company is building a feature for its website. The feature will give users the ability to upload photos. The company expects significant increases in demand during large events and must ensure that the website can handle the upload traffic from users.
Which solution meets these requirements with the MOST scalability?
A
Upload files from the user's browser to the application servers. Transfer the files to an Amazon S3 bucket.
B
Provision an AWS Storage Gateway file gateway. Upload files directly from the user's browser to the file gateway.
C
Generate Amazon S3 presigned URLs in the application. Upload files directly from the user's browser into an S3 bucket.
D
Provision an Amazon Elastic File System (Amazon EFS) file system. Upload files directly from the user's browser to the file system.
Explanation:
Option C is the most scalable solution because it uses Amazon S3 presigned URLs to allow direct uploads from users' browsers to S3, bypassing the application servers entirely.
Option A: Uploading to application servers first creates a bottleneck - application servers would need to be scaled to handle upload traffic, which is inefficient and expensive.
Option B: AWS Storage Gateway is designed for hybrid cloud storage, not for direct web uploads at scale. It's not optimized for handling massive concurrent uploads from web browsers.
Option D: Amazon EFS is a network file system that requires mounting to EC2 instances. Direct browser uploads to EFS are not supported, and even if they were, EFS doesn't scale as automatically or cost-effectively as S3 for this use case.
This architecture pattern is commonly used for media uploads, file sharing, and other scenarios requiring scalable file upload capabilities.