Topic 1 Question 156
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?
Deploy the shared libraries and custom classes into a Docker image. Store the image in an S3 bucket. Create a Lambda layer that uses the Docker image as the source. Deploy the API's Lambda functions as Zip packages. Configure the packages to use the Lambda layer.
Deploy the shared libraries and custom classes to a Docker image. Upload the image to Amazon Elastic Container Registry (Amazon ECR). Create a Lambda layer that uses the Docker image as the source. Deploy the API's Lambda functions as Zip packages. Configure the packages to use the Lambda layer.
Deploy the shared libraries and custom classes to a Docker container in Amazon Elastic Container Service (Amazon ECS) by using the AWS Fargate launch type. Deploy the API's Lambda functions as Zip packages. Configure the packages to use the deployed container as a Lambda layer.
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.
ユーザの投票
コメント(17)
- 正解だと思う選択肢: D
Don't understand why so many people are choosing B. Read up. A container image cannot be used with Lambda layers. That means A B C are out instantly. Its literally one of the first things they mention about Lamba layers. Answer is D and ABC simply impossible to configure.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
👍 17lunt2023/02/16 - 正解だと思う選択肢: D
Option A, B and C are wrong. An AWS Lambda Layer does not support a Docker image or a deployed container as the source. https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html https://aws.amazon.com/blogs/compute/working-with-lambda-layers-and-extensions-in-container-images/
👍 5Untamables2023/01/28 - 正解だと思う選択肢: B
"use several shared libraries and custom classes" => Use Lambda layer to optimize code reuse. => A & B are matched but A is saving Image into S3, not good. Should use ECR. So the answer is B
👍 4tatdatpham2023/02/01
シャッフルモード