Q60 — AWS SAA-C03 第3章

第 60/65 题 | ← 返回第3章

Q190.一家公司创建了一个图像分析应用程序,用户可以在其中上传照片并将相框添加到他们的图像中.用户上传图像和元数据以指示他们想要将哪些相框添加到他们的图像中.该应用程序使用单个 Amazon EC2 实例和 Amazon DynamoDB 来存储元数据.该应用程序变得越来越流行,用户数量也在增加.该公司预计并发用户的数量会根据一天中的时间和一周中的日期而有很大差异.公司必须确保应用程序可以扩展以满足不断增长的用户群的需求.哪个解决方案满足这些要求?

正确答案: C. 使用 AWS Lambda 处理照片.将照片存储在 Amazon S3 中.保留 DynamoDB 来存储元数据

解析

To ensure that the image analysis application can scale to meet the needs of a growing user base, a company should use AWS Lambda to process the photos, store the photos in Amazon S3, and retain DynamoDB to store the metadata. Therefore, option C is the correct answer.Option A suggests using AWS Lambda to process the photos and store both the photos and metadata in DynamoDB. While this approach could work, it may not provide sufficient scalability for storing large amounts of data in DynamoDB.Option B suggests using Amazon Kinesis Data Firehose to process the photos and store both the photos and metadata. While this approach could work, it may not be necessary given the relatively simple processing requirements of the application.Option D suggests increasing the number of EC2 instances to three and using Provisioned IOPS SSD (io2) Amazon Elastic Block Store (Amazon EBS) volumes to store the photos and metadata. While this approach could work, it requires additional infrastructure management compared to using AWS Lambda and Amazon S3.By using AWS Lambda to process the photos and store the photos in Amazon S3, the company can take advantage of Lambda's automatic scaling capabilities to handle varying levels of user activity. Storing the metadata in DynamoDB provides high availability and durability without requiring any server management. This approach meets the requirements stated in the question and provides a highly scalable and cost-effective solution.为了确保图像分析应用程序可以扩展以满足不断增长的用户群的需求,公司应该使用AWS Lambda来处理照片,将照片存储在Amazon S3中,并保留DynamoDB来存储元数据。因此,选项C是正确答案。选项A建议使用AWS Lambda处理照片,并在DynamoDB中存储照片和元数据。虽然这种方法可以工作,但它可能无法为在DynamoDB中存储大量数据提供足够的可伸缩性。选项B建议使用Amazon Kinesis Data Firehose来处理照片并存储照片和元数据。虽然这种方法可以工作,但是考虑到应用程序相对简单的处理需求,它可能不是必需的。选项D建议将EC2实例的数量增加到3个,并使用预置IOPS SSD (io2) Amazon Elastic Block Store (Amazon EBS)卷来存储照片和元数据。虽然这种方法可以工作,但与使用AWS Lambda和Amazon S3相比,它需要额外的基础设施管理。通过使用AWS Lambda处理照片并将照片存储在Amazon S3中,公司可以利用Lambda的自动扩展功能来处理不同级别的用户活动。在DynamoDB中存储元数据提供了高可用性和持久性,而不需要任何服务器管理。此方法满足问题中所述的需求,并提供高度可扩展且具有成本效益的解决方案。