Topic 1 Question 191
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?
Store the custom Python scripts in a shared Amazon S3 bucket. Store a pointer to the custom scripts in the execution context object.
Package the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda functions.
Store the custom Python scripts in a shared Amazon S3 bucket. Store a pointer to the customer scripts in environment variables.
Assign the same alias to each Lambda function. Call each Lambda function by specifying the function's alias.
ユーザの投票
コメント(2)
Correct Answer: B
Lambda layers allow you to package common code and dependencies that can be shared across multiple Lambda functions. By placing the custom Python scripts in a layer, you can update the layer once and then update the version used by each Lambda function without needing to modify the function code directly. This approach reduces redundancy, streamlines updates, and ensures that all functions using the layer have access to the latest version of the scripts with minimal manual effort.
👍 3kupo7772024/11/04- 正解だと思う選択肢: B
text book example of Lambda Layers ...
👍 2HagarTheHorrible2024/12/23
シャッフルモード