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 127 discussion

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.
  • 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.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
MrTee
Highly Voted 2 years ago
Selected Answer: A
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.
upvoted 13 times
...
sumanshu
Most Recent 3 months, 4 weeks ago
Selected Answer: A
Layers are managed separately from the Lambda function. They reduce the size of the deployment package. Layers are easy to use, and there is no need for complex infrastructure or manual management.
upvoted 1 times
...
Saurabh04
8 months, 3 weeks ago
Option B is correct because it is straightforward with lesser operation overhead than managing layers. Option A and C are incorrect. While Option A approach allows you to separate library from your function code, it introduces some operational overhead in managing layers. Option C is simple but doesn't separate library from your function code.
upvoted 1 times
...
tsangckl
10 months, 1 week ago
This appear at 17 Jun exam
upvoted 1 times
frangesk
8 months, 1 week ago
Do you remember the answer?
upvoted 1 times
...
...
65703c1
11 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
KillThemWithKindness
1 year, 2 months ago
Selected Answer: A
You can add up to five layers to a Lambda function. The total unzipped size of the function and all layers cannot exceed the unzipped deployment package size quota of 250 MB. For more information, see Lambda quotas.
upvoted 4 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: A
A. Create a Lambda layer to store the external library. Configure the Lambda function to use the layer: This is the most suitable solution. Lambda layers allow you to include libraries and other dependencies without including them in the deployment package of your Lambda function. By creating a layer with the external library and configuring the Lambda function to use this layer, the developer can easily manage and update the library independently of the Lambda function code, reducing the package size and operational overhead.
upvoted 2 times
...
CalvinL4
1 year, 3 months ago
One lambda layer only allows 50 mb for storage. The file is 100 MB. So I will vote for D unless the library can break down into less than 5 layers.
upvoted 1 times
...
loctong
1 year, 11 months ago
Selected Answer: A
By creating a Lambda layer, you can separate the external library from the Lambda function code itself and make it available to multiple functions. This approach offers the following benefits:
upvoted 2 times
...
dan80
1 year, 12 months ago
Selected Answer: A
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago