Q12 — AWS SAP-C02 Ch.2

Question 12 of 75 | ← Chapter 2

Q162. A company is developing a new serverless API by using Amazon API Gateway and AWS Lambda.The company integrated the Lambda functions with API Gateway to use several shared libraries and custom classes. A solutions architect needs to simplify the deployment of the solution and optimize for code reuse. Which solution will meet these requirements?

Correct Answer: D. Deploy the shared libraries,custom classes, and code for the API's Lambda functions to a Docker image. Upload the image to Amazon Elastic Container Registry (Amazon ECR). Configure the API's Lambda functions to use the Docker image as the deployment package