nerdexam
AmazonAmazon

DEA-C01 · Question #201

DEA-C01 Question #201: Real Exam Question with Answer & Explanation

The correct answer is B: Package the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda. Lambda layers allow you to package external libraries, custom scripts, or dependencies (like Python scripts) separately from the Lambda function code. By using Lambda layers, you can update the custom Python scripts in one central place (the layer) without manually updating each

Data Operations and Support

Question

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?

Options

  • AStore the custom Python scripts in a shared Amazon S3 bucket. Store a pointer to the custom
  • BPackage the custom Python scripts into Lambda layers. Apply the Lambda layers to the Lambda
  • CStore the custom Python scripts in a shared Amazon S3 bucket. Store a pointer to the customer
  • DAssign the same alias to each Lambda function. Call each Lambda function by specifying the

Explanation

Lambda layers allow you to package external libraries, custom scripts, or dependencies (like Python scripts) separately from the Lambda function code. By using Lambda layers, you can update the custom Python scripts in one central place (the layer) without manually updating each Lambda function. When the layer is updated, all Lambda functions that use the layer automatically get the latest version of the scripts.

Topics

#AWS Lambda#Lambda Layers#Code Reusability#Dependency Management

Community Discussion

No community discussion yet for this question.

Full DEA-C01 PracticeBrowse All DEA-C01 Questions