A Lambda function asynchronously creates short videos that can take up to 10 minutes. After creation, a download URL is sent to the user's browser and must remain valid for at least 3 hours. Which solution meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Store the video in Amazon S3, create a pre-signed URL for the S3 object, and send the URL to the user..
Why this is the answer
Storing the video in Amazon S3 and generating a pre-signed URL is the correct solution. S3 is a highly durable and scalable object storage service, ideal for storing large video files. S3 pre-signed URLs provide temporary access to private objects, allowing you to control the expiration time (up to 7 days, easily meeting the 3-hour requirement). Incorrect options: The Lambda /tmp directory is ephemeral storage, limited to 512 MB, and its contents are lost after the function execution, making it unsuitable for persistent video storage or direct user access. Amazon EFS is a scalable file system, but generating a pre-signed URL directly from an EFS file is not a standard or efficient mechanism for web access; S3 is designed for this. CloudFront distributions are for content delivery network (CDN) purposes, caching content closer to users. While CloudFront can deliver S3 content, generating a pre-signed URL directly for CloudFront content (without an S3 origin) is not the primary mechanism, and S3 pre-signed URLs are sufficient and simpler for this use case.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed