ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 18 - DVA-C02 discussion

Report
Export

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 to reach function.

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

A.
Define a maintenance window for the Lambda functions to ensure that the functions get updated copies of the dependencies.
Answers
A.
Define a maintenance window for the Lambda functions to ensure that the functions get updated copies of the dependencies.
B.
Upgrade the Lambda functions to the most recent runtime version.
Answers
B.
Upgrade the Lambda functions to the most recent runtime version.
C.
Define a Lambda layer that contains all of the shared dependencies.
Answers
C.
Define a Lambda layer that contains all of the shared dependencies.
D.
Use an AWS CodeCommit repository to host the dependencies in a centralized location.
Answers
D.
Use an AWS CodeCommit repository to host the dependencies in a centralized location.
Suggested answer: C

Explanation:

This solution allows the developer to keep the dependencies of the Lambda functions up to date with the least additional complexity because it eliminates the need to update each function individually. A Lambda layer is a ZIP archive that contains libraries, custom runtimes, or other dependencies. The developer can create a layer that contains all of the shared dependencies and attach it to multiple Lambda functions. When the developer updates the layer, all of the functions that use the layer will have access to the latest version of the dependencies.

Reference: [AWS Lambda layers]

asked 16/09/2024
Francesco Facco
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first