SAP-C02 学习助手

SAP-C02 第 145 题

Lambda S3 EC2 EFS SQS SNS Config Auto Scaling

题目

An international delivery company hosts a delivery management system on AWS. Drivers use the system to upload confirmation of delivery. Confirmation includes the recipient’s signature or a photo of the package with the recipient. The driver’s handheld device uploads signatures and photos through FTP to a single Amazon EC2 instance. Each handheld device saves a file in a directory based on the signed-in user, and the file name matches the delivery number. The EC2 instance then adds metadata to the file after querying a central database to pull delivery information. The file is then placed in Amazon S3 for archiving. As the company expands, drivers report that the system is rejecting connections. The FTP server is having problems because of dropped connections and memory issues in response to these problems, a system engineer schedules a cron task to reboot the EC2 instance every 30 minutes. The billing team reports that files are not always in the archive and that the central system is not always updated. A solutions architect needs to design a solution that maximizes scalability to ensure that the archive always receives the files and that systems are always updated. The handheld devices cannot be modified, so the company cannot deploy a new application. Which solution will meet these requirements?

中文翻译:
一家国际配送公司在 AWS 上托管一个配送管理系统。司机使用该系统上传交货确认信息。确认包括收件人的签名或收件人与包裹的照片。驾驶员的手持设备通过 FTP 将签名和照片上传到单个 Amazon EC2 实例。每个手持设备根据登录用户在目录中保存一个文件,文件名与发货编号匹配。然后,EC2 实例在查询中央数据库以提取传递信息后将元数据添加到文件中。然后该文件被放置在 Amazon S3 中进行存档。随着公司的扩张,司机报告说系统拒绝连接。由于连接丢失和内存问题,FTP 服务器出现问题,为了应对这些问题,系统工程师安排了一个 cron 任务,每 30 分钟重新启动一次 EC2 实例。计费团队报告说,文件并不总是在存档中,并且中央系统并不总是更新。解决方案架构师需要设计一个能够最大限度提高可扩展性的解决方案,以确保存档始终接收文件并且系统始终更新。手持设备无法修改,因此公司无法部署新的应用程序。哪种解决方案可以满足这些要求?

选项

A. Create an AMI of the existing EC2 instance. Create an Auto Scaling group of EC2 instances behind an Application Load Balancer. Configure the Auto Scaling group to have a minimum of three instances.

中文翻译:
创建现有 EC2 实例的 AMI。在 Application Load Balancer 后面创建 EC2 实例的 Auto Scaling 组。将 Auto Scaling 组配置为至少具有三个实例。

B. Use AWS Transfer Family to create an FTP server that places the files in Amazon Elastic File System (Amazon EFS). Mount the EFS volume to the existing EC2 instance. Point the EC2 instance to the new path for file processing.

中文翻译:
使用 AWS Transfer Family 创建将文件放置在 Amazon Elastic File System (Amazon EFS) 中的 FTP 服务器。将 EFS 卷挂载到现有 EC2 实例。将 EC2 实例指向文件处理的新路径。

C. Use AWS Transfer Family to create an FTP server that places the files in Amazon S3. Use an S3 event notification through Amazon Simple Notification Service (Amazon SNS) to invoke an AWS Lambda function. Configure the Lambda function to add the metadata and update the delivery system.

中文翻译:
使用 AWS Transfer Family 创建将文件放置在 Amazon S3 中的 FTP 服务器。通过 Amazon Simple Notification Service (Amazon SNS) 使用 S3 事件通知来调用 AWS Lambda 函数。配置 Lambda 函数以添加元数据并更新交付系统。

D. Update the handheld devices to place the files directly in Amazon S3. Use an S3 event notification through Amazon Simple Queue Service (Amazon SQS) to invoke an AWS Lambda function. Configure the Lambda function to add the metadata and update the delivery system.

中文翻译:
更新手持设备以将文件直接放入 Amazon S3 中。通过 Amazon Simple Queue Service (Amazon SQS) 使用 S3 事件通知来调用 AWS Lambda 函数。配置 Lambda 函数以添加元数据并更新交付系统。

答案

C

解析

正确答案:C 解析: 本题应选择 C。 正确选项: C. 使用 AWS Transfer Family 创建将文件放置在 Amazon S3 中的 FTP 服务器。通过 Amazon Simple Notification Service (Amazon SNS) 使用 S3 事件通知来调用 AWS Lambda 函数。配置 Lambda 函数以添加元数据并更新交付系统。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C0...

登录后查看完整解析