Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DVA-C02 Topic 7 Question 31 Discussion

Actual exam question for Amazon's DVA-C02 exam
Question #: 31
Topic #: 7
[All DVA-C02 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

DynamoDB Streams:Capture near real-time changes to DynamoDB tables, triggering downstream actions.

Lambda for Processing:Lambda functions provide a serverless way to execute code in response to events like DynamoDB Stream updates.

Minimal Code Changes:This solution requires the least modifications to the existing application.


DynamoDB Streams:https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html

AWS Lambda:https://aws.amazon.com/lambda/

Contribute your Thoughts:

Cristina
14 days ago
Upgrading the runtime version? What is this, the Stone Age? The Lambda layer is clearly the superior choice here. It's the 21st century, people!
upvoted 0 times
...
Carry
17 days ago
I was leaning towards option D, but the Lambda layer makes a lot more sense. Less complexity and easier to manage in the long run.
upvoted 0 times
...
Nguyet
18 days ago
Haha, imagine the developer trying to manually update each function. That would be a nightmare! The Lambda layer is definitely the way to go here.
upvoted 0 times
...
Tammara
29 days ago
I like the idea of the Lambda layer too. It's a simple way to keep everything in sync without having to maintain multiple copies of the same dependencies.
upvoted 0 times
Kristeen
9 days ago
B) Upgrade the Lambda functions to the most recent runtime version.
upvoted 0 times
...
Leonida
20 days ago
That's a great idea! It would definitely simplify things.
upvoted 0 times
...
Keith
21 days ago
C) Define a Lambda layer that contains all of the shared dependencies.
upvoted 0 times
...
...
Rachael
1 months ago
Option C seems like the best choice to me. A Lambda layer would allow us to manage the dependencies centrally and automatically update the functions as needed.
upvoted 0 times
Alease
20 days ago
That's a good point. It would definitely simplify the process of updating dependencies.
upvoted 0 times
...
Leigha
28 days ago
C) Define a Lambda layer that contains all of the shared dependencies.
upvoted 0 times
...
...
Whitney
2 months ago
That's a good point, Lai. But wouldn't defining a Lambda layer be more efficient in the long run?
upvoted 0 times
...
Lai
2 months ago
I disagree, I believe option B is the way to go. Upgrading the runtime version would automatically update the dependencies.
upvoted 0 times
...
Whitney
2 months ago
I think option C is the best choice. It would reduce duplicated effort and ensure all functions have the same dependencies.
upvoted 0 times
...

Save Cancel