exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 113 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 113
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is designing a serverless application with two AWS Lambda functions to process photos. One Lambda function stores objects in an Amazon S3 bucket and stores the associated metadata in an Amazon DynamoDB table. The other Lambda function fetches the objects from the S3 bucket by using the metadata from the DynamoDB table. Both Lambda functions use the same Python library to perform complex computations and are approaching the quota for the maximum size of zipped deployment packages.
What should the developer do to reduce the size of the Lambda deployment packages with the LEAST operational overhead?

  • A. Package each Python library in its own .zip file archive. Deploy each Lambda function with its own copy of the library.
  • B. Create a Lambda layer with the required Python library. Use the Lambda layer in both Lambda functions.
  • C. Combine the two Lambda functions into one Lambda function. Deploy the Lambda function as a single .zip file archive.
  • D. Download the Python library to an S3 bucket. Program the Lambda functions to reference the object URLs.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ibrahim24
1 year, 3 months ago
Selected Answer: B
https://docs.aws.amazon.com/lambda/latest/dg/chapter-layers.html
upvoted 1 times
...
jayvarma
1 year, 11 months ago
Option B is the answer. Since both the lambda functions use the same Python library to perform complex computations, we can create a lambda layer with the required python library. Lambda layers are used to store the code dependencies, custom runtimes, configuration files etc. We create a .zip file archive that contains supplementary code or data. This will help to reduce the size of deployment packages.
upvoted 1 times
...
rcaliandro
2 years ago
Selected Answer: B
B is correct since both functions share the same Python library and the perfect place to put shared code between lambdas is the Layer.
upvoted 1 times
...
d2b0
2 years, 6 months ago
Right answer is B for me
upvoted 1 times
...
MeenuSingla
2 years, 6 months ago
Lamba layers is useful in this case . Right answer is B for me
upvoted 1 times
...
habros
2 years, 9 months ago
Selected Answer: B
B. Lambda layers are reusable across modules when required too
upvoted 1 times
habros
2 years, 9 months ago
Functions*
upvoted 1 times
...
...
haazybanj
2 years, 9 months ago
Selected Answer: B
Answer is B https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
upvoted 1 times
...
colintkn
2 years, 9 months ago
B is the answer. Use layers for dependencies
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...