DVA-C02 · Question #142
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…
The correct answer is A. Create a Lambda layer to store the external library. Configure the Lambda function to use the. Create a Lambda layer to store the external library. Configure the Lambda function to use the layer. This will allow the developer to make the external library available to the Lambda execution environment without having to include it in the Lambda package, which will reduce…
Question
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?
Options
- ACreate a Lambda layer to store the external library. Configure the Lambda function to use the
- BCreate an Amazon S3 bucket. Upload the external library into the S3 bucket. Mount the S3
- CLoad the external library to the Lambda function's /tmp directory during deployment of the
- DCreate an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the
How the community answered
(27 responses)- A85% (23)
- B4% (1)
- C7% (2)
- D4% (1)
Explanation
Create a Lambda layer to store the external library. Configure the Lambda function to use the layer. This will allow the developer to make the external library available to the Lambda execution environment without having to include it in the Lambda package, which will reduce the Lambda package space. Using a Lambda layer is a simple and straightforward solution that requires minimal operational overhead. https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
Community Discussion
No community discussion yet for this question.