Q39 — AWS SAA-C03 第2章
第 39/65 题 | ← 返回第2章
Q104.一家公司在 AWS 上运行其基础设施,其文档管理应用程序拥有 700000 名注册用户.该公司打算创建一种将大型 .pdf 文件转换为 .jpg 图像文件的产品. .pdf 文件的平均大小为 5 MB.公司需要存储原始文件和转换后的文件.解决方案架构师必须设计一个可扩展的解决方案,以满足随着时间的推移快速增长的需求.哪种解决方案能够最经济有效地满足这些要求?
- A. 将 .pdf 文件保存到 Amazon S3.配置 S3 PUT 事件以调用 AWS Lambda 函数将文件转换为 .jpg 格式并将它们存储回 Amazon S3. ✓
- B. 将 .pdf 文件保存到 Amazon DynamoDB.使用 DynamoDB Strcams 功能调用 AWS Lambda 函数将文件转换为 jpg 格式并将它们存储回 DynamoDB.
- C. 将 .pdf 文件上传到 AWS Elastic Beanstalk 应用程序,其中包括 Amazon EC2 实例. Amazon Elastic Block Store (Amazon EBS) 存储和 Auto Scaling 组.使用 EC2 实例中的程序将文件转换为 .jpg 格式.将 .pdf 文件和 .jpg 文件保存在 EBS 存储中.
- D. 将 .pdf 文件上传到 AWS Elastic Beanstalk 应用程序,其中包括 Amazon EC2 实例. Amazon Elastic File System (Amazon EFS) 存储和 Auto Scaling 组.使用 EC2 实例中的程序将文件转换为 jpg 格式.将 pdf 文件和 jpg 文件保存在 EBS 商店中
正确答案: A. 将 .pdf 文件保存到 Amazon S3.配置 S3 PUT 事件以调用 AWS Lambda 函数将文件转换为 .jpg 格式并将它们存储回 Amazon S3.
解析
Saving the .pdf files to Amazon S3 allows for scalable storage that can accommodate large amounts of data and high levels of traffic. Configuring an S3 PUT event to invoke an AWS Lambda function to convert the files to .jpg format and store them back in S3 leverages the power of serverless computing, eliminating the need to manage or provision additional infrastructure resources. This approach can also help reduce costs by only executing the Lambda function when needed. Option B is not a suitable solution as DynamoDB is not designed for storing large binary objects like PDF or image files. Moreover, DynamoDB charges for read/write operations and storage based on per GB/month usage, which can become expensive at scale. Option C and D involve using Elastic Beanstalk with EC2 instances, which requires managing and provisioning the underlying infrastructure. It can be costly to operate an application at scale and maintain auto-scaling configurations to meet varying demand levels. Additionally, EBS and EFS storage are priced based on the amount of storage used and number of requests made, which can become expensive at scale. Therefore, Option A is the most cost-effective and efficient solution for storing and processing large PDF files while meeting the scalability requirements of the company's document management application.