New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DVA-C02 Exam - 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:

0/2000 characters
Markus
3 months ago
Is it really that easy to manage dependencies with layers?
upvoted 0 times
...
Janine
3 months ago
Wow, I didn't know Lambda layers could simplify dependency management!
upvoted 0 times
...
Willodean
3 months ago
A maintenance window? Sounds like a hassle.
upvoted 0 times
...
Felicidad
4 months ago
I disagree, D could work too, but it's more complex.
upvoted 0 times
...
Ollie
4 months ago
C is the best option! Lambda layers are super handy.
upvoted 0 times
...
Rutha
4 months ago
Upgrading the runtime version sounds tempting, but I don’t think it directly addresses the dependency management issue.
upvoted 0 times
...
Ezekiel
4 months ago
I think we practiced a similar question where using a centralized repository was mentioned, but I’m not convinced that CodeCommit is the right answer here.
upvoted 0 times
...
Nydia
4 months ago
I'm not entirely sure, but I feel like defining a maintenance window could just add more complexity instead of reducing it.
upvoted 0 times
...
Cathrine
5 months ago
I remember discussing Lambda layers in class, and I think option C might be the best choice since it centralizes the dependencies.
upvoted 0 times
...
Marica
5 months ago
Interesting, I hadn't considered using an AWS CodeCommit repository to host the dependencies. That could work, but I'm not sure if it would be less complex than the Lambda layer approach. Hmm, I'll have to think this one through a bit more.
upvoted 0 times
...
Nadine
5 months ago
Hmm, I'm a bit unsure about this one. Defining a maintenance window could work, but that might not be the most efficient approach. Upgrading the runtime version could be an option, but I'm not sure if that's the "least additional complexity" as the question asks for.
upvoted 0 times
...
Jerry
5 months ago
This seems like a straightforward question about managing dependencies in AWS Lambda. I think the key is to find a solution that minimizes the complexity of updating the dependencies across multiple functions.
upvoted 0 times
...
Azalee
5 months ago
Ah, I think the answer is to use a Lambda layer. That way, I can centralize the dependencies and update them in one place, instead of having to update each function individually. Seems like the simplest solution to me.
upvoted 0 times
...
Lai
5 months ago
Wait, I'm a little confused. Let me re-read this and make sure I understand what they're asking.
upvoted 0 times
...
Luisa
5 months ago
Hmm, I'm a bit confused by the wording of this question. Let me re-read it a few times.
upvoted 0 times
...
Charlene
5 months ago
I think the key here is to focus on aligning the supplier SLAs with the overall service management plans. That seems like the most logical approach.
upvoted 0 times
...
Lashawnda
5 months ago
I'm feeling pretty confident about this one. Streaming the data to BigQuery and conducting a bulk scan using the DLP API seems like the most straightforward and efficient approach.
upvoted 0 times
...
Cristina
9 months 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
9 months 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
9 months 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
Lacey
8 months ago
User 4: Upgrading the Lambda functions to the most recent runtime version could also help in keeping the dependencies up to date.
upvoted 0 times
...
Freeman
8 months ago
User 3: I agree, defining a Lambda layer with shared dependencies would simplify the process.
upvoted 0 times
...
Tess
8 months ago
User 2: Tess is right, the Lambda layer is definitely the way to go.
upvoted 0 times
...
Jenise
8 months ago
User 1: Haha, updating each function manually would be a nightmare!
upvoted 0 times
...
Belen
8 months ago
Agreed, using a Lambda layer is a much more efficient way to manage shared dependencies.
upvoted 0 times
...
Lavonne
8 months ago
That's a great idea! It would definitely save the developer a lot of time and effort.
upvoted 0 times
...
Luisa
9 months ago
C) Define a Lambda layer that contains all of the shared dependencies.
upvoted 0 times
...
...
Tammara
10 months 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 months ago
B) Upgrade the Lambda functions to the most recent runtime version.
upvoted 0 times
...
Leonida
9 months ago
That's a great idea! It would definitely simplify things.
upvoted 0 times
...
Keith
9 months ago
C) Define a Lambda layer that contains all of the shared dependencies.
upvoted 0 times
...
...
Rachael
10 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
Tamesha
8 months ago
Agreed. It would save a lot of time and effort in the long run.
upvoted 0 times
...
Alease
9 months ago
That's a good point. It would definitely simplify the process of updating dependencies.
upvoted 0 times
...
Leigha
10 months ago
C) Define a Lambda layer that contains all of the shared dependencies.
upvoted 0 times
...
...
Whitney
11 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
11 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
11 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