exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 276 discussion

A developer needs to implement a custom machine learning (ML) library in an application. The size of the library is 15 GB. The size of the library is increasing. The application uses AWS Lambda functions. All the Lambda functions must have access to the library.

Which solution will meet these requirements?

  • A. Save the library in Lambda layers. Attach the layers to all Lambda functions.
  • B. Save the library in Amazon S3. Download the library from Amazon S3 inside the Lambda function.
  • C. Save the library as a Lambda container image. Redeploy the Lambda functions with the new image.
  • D. Save the library in an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in all the Lambda functions.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
nder
Highly Voted 1 year, 3 months ago
Selected Answer: D
Quick google will tell you the max size of a lambda layer is 250mb.
upvoted 13 times
...
preachr
Most Recent 8 months, 3 weeks ago
Selected Answer: D
https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/ Sharing large code packages with Lambda EFS is useful for sharing software packages or binaries that are otherwise too large for Lambda layers. You can copy these to EFS and have Lambda use these packages as if there are installed in the Lambda deployment package.
upvoted 1 times
...
65703c1
1 year ago
Selected Answer: D
D is the correct answer.
upvoted 2 times
...
DeaconStJohn
1 year, 2 months ago
Selected Answer: D
I've been going back and forward on this one for a few days. I have settled for EFS primarily based off a blog I read from an AWS community builder who specializes in lambda. https://betterdev.blog/serverless-ml-on-aws-lambda/#overcoming_lambda_size_limitations:~:text=the%20DynamoDB%20table.-,Overcoming%20Lambda%20size%20limitations,-If%20we%20package 250mb limit per lambda, although the layers capacity is 75gb this covers your whole environment and breaches the single lambda limit. The blog uses a container solution, the limit here is 10GB which is still to small for our use case. EFS fits this use case even though it is a tad more troublesome to implement. Granted the blog is 2 years old, I'm hoping not much has changed since.
upvoted 3 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: D
D. Save the library in an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in all the Lambda functions. This approach allows Lambda functions to access large libraries or datasets that exceed the size limits of Lambda's deployment package. By using Amazon EFS, a fully managed elastic file storage, the library can be stored once and mounted onto multiple Lambda functions simultaneously. This eliminates the need to package the library with each Lambda function, which would not be feasible given the size constraints of Lambda layers and deployment packages. Additionally, this method requires minimal code changes, focusing only on configuring the Lambda functions to mount the EFS file system, providing a scalable and efficient solution for making large libraries available to serverless applications.
upvoted 3 times
...
Abdullah22
1 year, 3 months ago
Selected Answer: D
just the layer limitation 250 mb .
upvoted 2 times
...
KarBiswa
1 year, 3 months ago
Selected Answer: A
Upto 75 GB can be accommodated. https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
upvoted 4 times
...
ANDRES715
1 year, 3 months ago
Selected Answer: A
La solución recomendada para este caso es guardar la biblioteca en capas Lambda y adjuntar esas capas a todas las funciones Lambda. Esto permitirá que todas las funciones Lambda tengan acceso a la biblioteca sin necesidad de duplicarla en cada función. Las capas Lambda son una forma de compartir código y bibliotecas comunes entre varias funciones Lambda. Puedes crear una capa Lambda que contenga la biblioteca de aprendizaje automático y luego adjuntar esa capa a todas las funciones Lambda que necesiten acceder a ella. Al utilizar capas Lambda, puedes reducir el tamaño de las funciones Lambda y simplificar su mantenimiento. Además, si el tamaño de la biblioteca está aumentando, puedes actualizar la capa Lambda sin tener que modificar y volver a implementar todas las funciones Lambda.
upvoted 4 times
...
CrescentShared
1 year, 3 months ago
Selected Answer: D
S3 takes too long.
upvoted 2 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 ...