ExamQuestions.com

Register
Login
AWS Certified Solutions Architect Professional Exam Questions

Amazon

AWS Certified Solutions Architect Professional

420 / 465

Question 420:

You are developing a Lambda function by packaging the Python code and dependencies in a container image which is stored in an AWS ECR repository. There is a requirement to add extensions to the Lambda function for the integration with governance tools. You have already prepared the extension code as my-extension.zip. What is the correct way to add the extensions to the Lambda function?

Answer options:

A.In the Lambda console, edit the Lambda function code and add the my-extension.zip file to the /opt/extensions/ folder to install the governance tools.
B.In the Dockerfile, add the my-extension.zip file to the /opt folder. Rebuild the Docker image and deploy the Docker container image to the Lambda function.
C.Use AWS Lambda CLI update-function-code or update-function-configuration command to upload the my-extension.zip file, unzip it and install the extensions.
D.Lambda extensions cannot be added to a container image. Instead, the Lambda function should use Lambda layers and the extension zip file should be added as a layer.