SAP-C02 学习助手

SAP-C02 第 376 题

Lambda S3 SQS EventBridge Step Functions

题目

A company that provides image storage services wants to deploy a customer-facing solution to AWS. Millions of individual customers will use the solution. The solution will receive batches of large image files, resize the files, and store the files in an Amazon S3 bucket for up to 6 months. The solution must handle significant variance in demand. The solution must also be reliable at enterprise scale and have the ability to rerun processing jobs in the event of failure. Which solution will meet these requirements MOST cost-effectively?

中文翻译:
一家提供图像存储服务的公司希望将面向客户的解决方案部署到 AWS。数百万个人客户将使用该解决方案。该解决方案将接收批量大型图像文件,调整文件大小,并将文件存储在 Amazon S3 存储桶中长达 6 个月。该解决方案必须能够处理需求的显着变化。该解决方案还必须在企业规模上可靠,并且能够在发生故障时重新运行处理作业。哪种解决方案能够最具成本效益地满足这些要求?

选项

A. Use AWS Step Functions to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.

中文翻译:
使用 AWS Step Functions 处理用户存储图像时发生的 S3 事件。运行 AWS Lambda 函数,调整图像大小并替换 S3 存储桶中的原始文件。创建 S3 生命周期过期策略,使所有存储的图像在 6 个月后过期。

B. Use Amazon EventBridge to process the S3 event that occurs when a user uploads an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.

中文翻译:
使用 Amazon EventBridge 处理用户上传图像时发生的 S3 事件。运行 AWS Lambda 函数,调整图像大小并替换 S3 存储桶中的原始文件。创建 S3 生命周期过期策略,使所有存储的图像在 6 个月后过期。

C. Use S3 Event Notifications to invoke an AWS Lambda function when a user stores an image. Use the Lambda function to resize the image in place and to store the original file in the S3 bucket. Create an S3 Lifecycle policy to move all stored images to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months. IA)。

中文翻译:
当用户存储图像时,使用 S3 事件通知调用 AWS Lambda 函数。使用 Lambda 函数就地调整图像大小并将原始文件存储在 S3 存储桶中。创建 S3 生命周期策略,以在 6 个月后将所有存储的图像移至 S3 标准-不频繁访问 (S3 标准-IA)。 IA)。

D. Use Amazon Simple Queue Service (Amazon SQS) to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image and stores the resized file in an S3 bucket that uses S3 Standard-Infrequent Access (S3 Standard-IA). Create an S3 Lifecycle policy to move all stored images to S3 Glacier Deep Archive after 6 months.

中文翻译:
使用 Amazon Simple Queue Service (Amazon SQS) 处理用户存储图像时发生的 S3 事件。运行 AWS Lambda 函数来调整图像大小并将调整后的文件存储在使用 S3 标准-不频繁访问 (S3 标准-IA) 的 S3 存储桶中。创建 S3 生命周期策略,以在 6 个月后将所有存储的图像移至 S3 Glacier Deep Archive。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 使用 Amazon Simple Queue Service (Amazon SQS) 处理用户存储图像时发生的 S3 事件。运行 AWS Lambda 函数来调整图像大小并将调整后的文件存储在使用 S3 标准-不频繁访问 (S3 标准-IA) 的 S3 存储桶中。创建 S3 生命周期策略,以在 6 个月后将所有存储的图像移至 S3 Glacier Deep Archive。 选...

登录后查看完整解析