AWS Certified Developer – Associate — Question 334

A developer has an application that is composed of many different AWS Lambda functions. The Lambda functions all use some of the same dependencies. To avoid security issues, the developer is constantly updating the dependencies of all of the Lambda functions. The result is duplicated effort for each function.

How can the developer keep the dependencies of the Lambda functions up to date with the LEAST additional complexity?

Answer options

Correct answer: C

Explanation

AWS Lambda layers allow you to pull common dependencies out of your function code and manage them as a single, reusable resource. By placing shared libraries in a Lambda layer, you can update the dependencies in one place and reference them across multiple functions, significantly reducing duplicated maintenance effort. Other options, like upgrading runtimes or using maintenance windows, do not address the duplication of dependency management, while hosting in CodeCommit adds unnecessary integration complexity.