
Answer-first summary for fast verification
Answer: Package the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda functions.
Option B is CORRECT because packaging the custom Python scripts into Lambda layers and applying the Lambda layers to the Lambda functions provides a centralized way to manage and update the scripts. When the Python scripts need to be modified, the data engineer only needs to update the Lambda layer, and all Lambda functions that use that layer will automatically use the updated scripts.
Author: Ritesh Yadav
Ultimate access to all questions.
Question 10/60
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 each Lambda function by specifying the function's alias.
No comments yet.