SAP-C02 第 288 题
题目
A company is building an image service on the web that will allow users to upload and search random photos. At peak usage, up to 10,000 users worldwide will upload their images. The will then overlay text on the uploaded images, which will then be published on the company website. Which design should a solutions architect implement?
中文翻译:
一家公司正在网络上构建图像服务,允许用户上传和搜索随机照片。在使用高峰期,全球多达 10,000 位用户将上传他们的图像。然后,将在上传的图像上覆盖文本,然后将其发布在公司网站上。解决方案架构师应该实施哪种设计?
选项
A. Store the uploaded images in Amazon Elastic File System (Amazon EFS). Send application log information about each image to Amazon CloudWatch Logs. Create a fleet of Amazon EC2 instances that use CloudWatch Logs to determine which images need to be processed. Place processed images in another directory in Amazon EFS. Enable Amazon CloudFront and configure the origin to be the one of the EC2 instances in the fleet.
中文翻译:
将上传的图像存储在 Amazon Elastic File System (Amazon EFS) 中。将有关每个图像的应用程序日志信息发送到 Amazon CloudWatch Logs。创建一组 Amazon EC2 实例,这些实例使用 CloudWatch Logs 来确定需要处理哪些图像。将处理后的图像放置在 Amazon EFS 中的另一个目录中。启用 Amazon CloudFront 并将源配置为队列中的 EC2 实例之一。
B. Store the uploaded images in an Amazon S3 bucket and configure an S3 bucket event notification to send a message to Amazon Simple Notification Service (Amazon SNS). Create a fleet of Amazon EC2 instances behind an Application Load Balancer (ALB) to pull messages from Amazon SNS to process the images and place them in Amazon Elastic File System (Amazon EFS). Use Amazon CloudWatch metrics for the SNS message volume to scale out EC2 instances. Enable Amazon CloudFront and configure the origin to be the ALB in front of the EC2 instances.
中文翻译:
将上传的图像存储在 Amazon S3 存储桶中,并配置 S3 存储桶事件通知以将消息发送到 Amazon Simple notification Service (Amazon SNS)。在 Application Load Balancer (ALB) 后面创建一组 Amazon EC2 实例,以从 Amazon SNS 拉取消息来处理图像并将其放置在 Amazon Elastic File System (Amazon EFS) 中。使用 SNS 消息量的 Amazon CloudWatch 指标来扩展 EC2 实例。启用 Amazon CloudFront 并将源配置为 EC2 实例前面的 ALB。
C. Store the uploaded images in an Amazon S3 bucket and configure an S3 bucket event notification to send a message to the Amazon Simple Queue Service (Amazon SQS) queue. Create a fleet of Amazon EC2 instances to pull messages from the SQS queue to process the images and place them in another S3 bucket. Use Amazon CloudWatch metrics for queue depth to scale out EC2 instances. Enable Amazon CloudFront and configure the origin to be the S3 bucket that contains the processed images. bucket。
中文翻译:
将上传的图像存储在 Amazon S3 存储桶中,并配置 S3 存储桶事件通知以将消息发送到 Amazon Simple Queue Service (Amazon SQS) 队列。创建一组 Amazon EC2 实例以从 SQS 队列中提取消息来处理图像并将它们放入另一个 S3 存储桶中。使用 Amazon CloudWatch 队列深度指标来扩展 EC2 实例。启用 Amazon CloudFront 并将源配置为包含已处理图像的 S3 存储桶。桶。
D. Store the uploaded images on a shared Amazon Elastic Block Store (Amazon EBS) volume mounted to a fleet of Amazon EC2 Spot instances. Create an Amazon DynamoDB table that contains information about each uploaded image and whether it has been processed. Use an Amazon EventBridge rule to scale out EC2 instances. Enable Amazon CloudFront and configure the origin to reference an Elastic Load Balancer in front of the fleet of EC2 instances.
中文翻译:
将上传的图像存储在安装到 Amazon EC2 Spot 实例队列的共享 Amazon Elastic Block Store (Amazon EBS) 卷上。创建一个 Amazon DynamoDB 表,其中包含有关每个上传图像及其是否已处理的信息。使用 Amazon EventBridge 规则扩展 EC2 实例。启用 Amazon CloudFront 并配置源以引用 EC2 实例队列前面的弹性负载均衡器。
答案
C
解析
正确答案:C 解析: 本题应选择 C。 正确选项: C. 将上传的图像存储在 Amazon S3 存储桶中,并配置 S3 存储桶事件通知以将消息发送到 Amazon Simple Queue Service (Amazon SQS) 队列。创建一组 Amazon EC2 实例以从 SQS 队列中提取消息来处理图像并将它们放入另一个 S3 存储桶中。使用 Amazon CloudWatch 队列深度指标来扩展 EC2 实例。启用 Amaz...