An existing serverless application processes uploaded image files. The process currently uses a single Lambda function that takes an image file, performs the processing, and stores the file in Amazon S3. Users of the application now require thumbnail generation of the images. Users want to avoid any impact to the time it takes to perform the image uploads. How can thumbnail generation be added to the application, meeting user requirements while minimizing changes to existing code?
A) Change the existing Lambda function handling the uploads to create thumbnails at the time of upload. Have the function store both the image and thumbnail in Amazon S3.
B) Create a second Lambda function that handles thumbnail generation and storage. Change the existing Lambda function to invoke it asynchronously.
C) Create an S3 event notification with a Lambda function destination. Create a new Lambda function to generate and store thumbnails.
D) Create an S3 event notification to an SQS Queue. Create a scheduled Lambda function that processes the queue, and generates and stores thumbnails.
Correct Answer:
Verified
Q19: A deployment package uses the AWS CLI
Q20: When writing a Lambda function, what is
Q21: An application is real-time processing millions of
Q22: The Developer for a retail company must
Q23: An on-premises application is implemented using a
Q25: A Developer must trigger an AWS Lambda
Q26: When a Developer tries to run an
Q27: A website's page load times are gradually
Q28: A set of APIs are exposed to
Q29: A customer wants to deploy its source
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents