SAP-C02 学习助手

SAP-C02 第 42 题

Lambda S3 EC2 EFS SQS Config Auto Scaling

题目

A solutions architect needs to advise a company on how to migrate its on-premises data processing application to the AWS Cloud. Currently, users upload input files through a web portal. The web server then stores the uploaded files on NAS and messages the processing server over a message queue. Each media file can take up to 1 hour to process. The company has determined that the number of media files awaiting processing is significantly higher during business hours, with the number of files rapidly declining after business hours. What is the MOST cost-effective migration recommendation?

中文翻译:
解决方案架构师需要就如何将其本地数据处理应用程序迁移到 AWS 云向公司提供建议。目前,用户通过门户网站上传输入文件。然后,Web 服务器将上传的文件存储在 NAS 上,并通过消息队列向处理服务器发送消息。每个媒体文件最多可能需要 1 小时来处理。该公司已确定,在工作时间内等待处理的媒体文件数量显着增加,而在工作时间之后文件数量迅速下降。最具成本效益的迁移建议是什么?

选项

A. Create a queue using Amazon SQS. Configure the existing web server to publish to the new queue. When there are messages in the queue, invoke an AWS Lambda function to pull requests from the queue and process the files. Store the processed files in an Amazon S3 bucket.

中文翻译:
使用 Amazon SQS 创建队列。配置现有 Web 服务器以发布到新队列。当队列中有消息时,调用 AWS Lambda 函数从队列中提取请求并处理文件。将处理后的文件存储在 Amazon S3 存储桶中。

B. Create a queue using Amazon MQ. Configure the existing web server to publish to the new queue. When there are messages in the queue, create a new Amazon EC2 instance to pull requests from the queue and process the files. Store the processed files in Amazon EFS. Shut down the EC2 instance after the task is complete.

中文翻译:
使用 Amazon MQ 创建队列。配置现有 Web 服务器以发布到新队列。当队列中有消息时,创建一个新的 Amazon EC2 实例以从队列中提取请求并处理文件。将处理后的文件存储在 Amazon EFS 中。任务完成后关闭 EC2 实例。

C. Create a queue using Amazon MQ. Configure the existing web server to publish to the new queue. When there are messages in the queue, invoke an AWS Lambda function to pull requests from the queue and process the files. Store the processed files in Amazon EFS.

中文翻译:
使用 Amazon MQ 创建队列。配置现有 Web 服务器以发布到新队列。当队列中有消息时,调用 AWS Lambda 函数从队列中提取请求并处理文件。将处理后的文件存储在 Amazon EFS 中。

D. Create a queue using Amazon SQS. Configure the existing web server to publish to the new queue. Use Amazon EC2 instances in an EC2 Auto Scaling group to pull requests from the queue and process the files. Scale the EC2 instances based on the SQS queue length. Store the processed files in an Amazon S3 bucket.

中文翻译:
使用 Amazon SQS 创建队列。配置现有 Web 服务器以发布到新队列。使用 EC2 Auto Scaling 组中的 Amazon EC2 实例从队列中提取请求并处理文件。根据 SQS 队列长度扩展 EC2 实例。将处理后的文件存储在 Amazon S3 存储桶中。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 使用 Amazon SQS 创建队列。配置现有 Web 服务器以发布到新队列。使用 EC2 Auto Scaling 组中的 Amazon EC2 实例从队列中提取请求并处理文件。根据 SQS 队列长度扩展 EC2 实例。将处理后的文件存储在 Amazon S3 存储桶中。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例...

登录后查看完整解析