nerdexam
AmazonAmazon

DVA-C02 · Question #20

DVA-C02 Question #20: Real Exam Question with Answer & Explanation

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #20. The question stem and answer options stay visible for context.

Submitted by anjalisingh· Mar 5, 2026Refactoring

Question

A developer is designing a serverless application with two AWS Lambda functions to process photos. One Lambda function stores objects in an Amazon S3 bucket and stores the associated metadata in an Amazon DynamoDB table. The other Lambda function fetches the objects from the S3 bucket by using the metadata from the DynamoDB table. Both Lambda functions use the same Python library to perform complex computations and are approaching the quota for the maximum size of zipped deployment packages. What should the developer do to reduce the size of the Lambda deployment packages with the LEAST operational overhead?

Options

  • APackage each Python library in its own .zip file archive. Deploy each Lambda function with its
  • BCreate a Lambda layer with the required Python library. Use the Lambda layer in both Lambda
  • CCombine the two Lambda functions into one Lambda function. Deploy the Lambda function as a
  • DDownload the Python library to an S3 bucket. Program the Lambda functions to reference the

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions