AWS Certified Developer – Associate (DVA-C02) — Question 297

A company has built an AWS Lambda function to convert large image files into output files that can be used in a third-party viewer application. The company recently added a new module to the function to improve the output of the generated files. However, the new module has increased the bundle size and has increased the time that is needed to deploy changes to the function code.

How can a developer increase the speed of the Lambda function deployment?

Answer options

Correct answer: B

Explanation

Using Lambda layers allows developers to separate the core function code from its heavy dependencies and modules, which drastically reduces the deployment package size and speeds up code updates. AWS CodeDeploy manages deployment traffic shifting but does not reduce the deployment package size or upload time. Increasing memory affects execution performance rather than deployment speed, and hosting dependencies directly on Amazon S3 is not the standard mechanism for managing Lambda runtimes compared to layers.