ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 181 - DVA-C02 discussion

Report
Export

A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution The external library is a collection of files with a total size of 100 MB The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space

Which solution will meet these requirements with the LEAST operational overhead?

A.
Create a Lambda layer to store the external library Configure the Lambda function to use the layer
Answers
A.
Create a Lambda layer to store the external library Configure the Lambda function to use the layer
B.
Create an Amazon S3 bucket Upload the external library into the S3 bucket. Mount the S3 bucket folder in the Lambda function Import the library by using the proper folder in the mount point.
Answers
B.
Create an Amazon S3 bucket Upload the external library into the S3 bucket. Mount the S3 bucket folder in the Lambda function Import the library by using the proper folder in the mount point.
C.
Load the external library to the Lambda function's /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.
Answers
C.
Load the external library to the Lambda function's /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.
D.
Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.
Answers
D.
Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.
Suggested answer: A

Explanation:

Lambda Layers:These are designed to package dependencies that you can share across functions.

How to Use:

Create a layer, upload your 100MB library as a zip.

Attach the layer to your function.

In your function code, import the library from the standard layer path.

Lambda Layers:https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html

asked 16/09/2024
Reselan Govender
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first