SAP-C02 学习助手

SAP-C02 第 63 题

Lambda DynamoDB S3 EC2 EFS RDS Step Functions Config ECS Fargate

题目

A video processing company has an application that downloads images from an Amazon S3 bucket, processes the images, stores a transformed image in a second S3 bucket, and updates metadata about the image in an Amazon DynamoDB table. The application is written in Node.js and runs by using an AWS Lambda function. The Lambda function is invoked when a new image is uploaded to Amazon S3. The application ran without incident for a while. However, the size of the images has grown significantly. The Lambda function is now failing frequently with timeout errors. The function timeout is set to its maximum value. A solutions architect needs to refactor the application’s architecture to prevent invocation failures. The company does not want to manage the underlying infrastructure. Which combination of steps should the solutions architect take to meet these requirements? (Choose two.)

中文翻译:
视频处理公司有一个应用程序,该应用程序从 Amazon S3 存储桶下载图像、处理图像、将转换后的图像存储在第二个 S3 存储桶中,并更新 Amazon DynamoDB 表中有关图像的元数据。该应用程序是用 Node.js 编写的,并使用 AWS Lambda 函数运行。当新图像上传到 Amazon S3 时,将调用 Lambda 函数。该应用程序运行了一段时间没有发生任何事件。然而,图像的大小显着增加。 Lambda 函数现在经常因超时错误而失败。函数超时设置为其最大值。解决方案架构师需要重构应用程序的架构以防止调用失败。该公司不想管理底层基础设施。解决方案架构师应该采取哪些步骤组合来满足这些要求? (选择两个。)

选项

A. Modify the application deployment by building a Docker image that contains the application code. Publish the image to Amazon Elastic Container Registry (Amazon ECR). ECR)。

中文翻译:
通过构建包含应用程序代码的 Docker 映像来修改应用程序部署。将映像发布到 Amazon Elastic Container Registry (Amazon ECR)。 ECR)。

B. Create a new Amazon Elastic Container Service (Amazon ECS) task definition with a compatibility type of AWS Fargate. Configure the task definition to use the new image in Amazon Elastic Container Registry (Amazon ECR). Adjust the Lambda function to invoke an ECS task by using the ECS task definition when a new file arrives in Amazon S3.

中文翻译:
创建具有 AWS Fargate 兼容性类型的新 Amazon Elastic Container Service (Amazon ECS) 任务定义。配置任务定义以使用 Amazon Elastic Container Registry (Amazon ECR) 中的新映像。调整 Lambda 函数以在新文件到达 Amazon S3 时使用 ECS 任务定义调用 ECS 任务。

C. Create an AWS Step Functions state machine with a Parallel state to invoke the Lambda function. Increase the provisioned concurrency of the Lambda function.

中文翻译:
创建具有并行状态的 AWS Step Functions 状态机以调用 Lambda 函数。增加 Lambda 函数的预置并发数。

D. Create a new Amazon Elastic Container Service (Amazon ECS) task definition with a compatibility type of Amazon EC2. Configure the task definition to use the new image in Amazon Elastic Container Registry (Amazon ECR). Adjust the Lambda function to invoke an ECS task by using the ECS task definition when a new file arrives in Amazon S3.

中文翻译:
创建具有 Amazon EC2 兼容性类型的新 Amazon Elastic Container Service (Amazon ECS) 任务定义。配置任务定义以使用 Amazon Elastic Container Registry (Amazon ECR) 中的新映像。调整 Lambda 函数以在新文件到达 Amazon S3 时使用 ECS 任务定义调用 ECS 任务。

E. Modify the application to store images on Amazon Elastic File System (Amazon EFS) and to store metadata on an Amazon RDS DB instance. Adjust the Lambda function to mount the EFS file share.

中文翻译:
修改应用程序以将图像存储在 Amazon Elastic File System (Amazon EFS) 上并将元数据存储在 Amazon RDS 数据库实例上。调整 Lambda 函数以挂载 EFS 文件共享。

答案

AB

解析

正确答案:AB 解析: 本题应选择 AB。 正确选项: A. 通过构建包含应用程序代码的 Docker 映像来修改应用程序部署。将映像发布到 Amazon Elastic Container Registry (Amazon ECR)。 ECR)。 B. 创建具有 AWS Fargate 兼容性类型的新 Amazon Elastic Container Service (Amazon ECS) 任务定义。配置任务定义以使用 Amazon...

登录后查看完整解析