exam questions

Exam AWS Certified Data Engineer - Associate DEA-C01 All Questions

View all questions & answers for the AWS Certified Data Engineer - Associate DEA-C01 exam

Exam AWS Certified Data Engineer - Associate DEA-C01 topic 1 question 5 discussion

A data engineer maintains custom Python scripts that perform a data formatting process that many AWS Lambda functions use. When the data engineer needs to modify the Python scripts, the data engineer must manually update all the Lambda functions.
The data engineer requires a less manual way to update the Lambda functions.
Which solution will meet this requirement?

  • A. Store a pointer to the custom Python scripts in the execution context object in a shared Amazon S3 bucket.
  • B. Package the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda functions.
  • C. Store a pointer to the custom Python scripts in environment variables in a shared Amazon S3 bucket.
  • D. Assign the same alias to each Lambda function. Call reach Lambda function by specifying the function's alias.
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
TonyStark0122
Highly Voted 9 months ago
B. Package the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda functions. Explanation: Lambda layers allow you to centrally manage shared code and dependencies across multiple Lambda functions. By packaging the custom Python scripts into a Lambda layer, you can simply update the layer whenever changes are made to the scripts, and all the Lambda functions that use the layer will automatically inherit the updates. This approach reduces manual effort and ensures consistency across the functions.
upvoted 20 times
...
pypelyncar
Most Recent 8 months, 4 weeks ago
Selected Answer: B
Centralized Code Management: Lambda layers allow you to store and manage the custom Python scripts in a central location outside the individual Lambda function code. This eliminates the need to update the script in each Lambda function manually. Reusable Code: Layers provide a way to share code across multiple Lambda functions. Any changes made to the layer code are automatically reflected in all the functions using that layer, streamlining updates. Reduced Deployment Size: By separating core functionality into layers, you can keep the individual Lambda function code focused and smaller. This reduces deployment package size and potentially improves Lambda execution times.
upvoted 4 times
...
JavierEF
9 months, 2 weeks ago
Selected Answer: B
Lambda Layers is a feature created with this literal objective in mind.
upvoted 2 times
...
John2025
12 months ago
B is right
upvoted 2 times
...
4c78df0
1 year ago
Selected Answer: B
B is correct
upvoted 1 times
...
4c78df0
1 year ago
Selected Answer: B
B is correct
upvoted 1 times
...
FunkyFresco
1 year, 1 month ago
Selected Answer: B
Lamba layers
upvoted 1 times
...
ba72eb9
1 year, 2 months ago
Option B
upvoted 2 times
...
kj07
1 year, 3 months ago
Typical use case for Lambda Layers. Option B.
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 ...