AWS Certified Data Engineer – Associate (DEA-C01) — Question 17

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?

Answer options

Correct answer: B

Explanation

The correct answer is B because packaging the custom Python scripts into Lambda layers allows for a single update to the layer, which is then reflected across all Lambda functions using it. Options A and C involve manually updating references, which does not reduce the effort required for updates. Option D does not address the need to modify the scripts themselves, only how to invoke the functions.