SAP-C02 第 18 题
题目
A company has a web application that allows users to upload short videos. The videos are stored on Amazon EBS volumes and analyzed by custom recognition software for categorization. The website contains static content that has variable traffic with peaks in certain months. The architecture consists of Amazon EC2 instances running in an Auto Scaling group for the web application and EC2 instances running in an Auto Scaling group to process an Amazon SQS queue. The company wants to re-architect the application to reduce operational overhead using AWS managed services where possible and remove dependencies on third-party software. Which solution meets these requirements?
中文翻译:
一家公司有一个网络应用程序,允许用户上传短视频。这些视频存储在 Amazon EBS 卷上,并由自定义识别软件进行分析以进行分类。该网站包含静态内容,流量可变,在某些月份达到峰值。该架构由在 Auto Scaling 组中运行的用于 Web 应用程序的 Amazon EC2 实例和在 Auto Scaling 组中运行的用于处理 Amazon SQS 队列的 EC2 实例组成。该公司希望重新架构应用程序,以尽可能使用 AWS 托管服务减少运营开销,并消除对第三方软件的依赖。哪种解决方案满足这些要求?
选项
A. Use Amazon ECS containers for the web application and Spot instances for the Auto Scaling group that processes the SQS queue. Replace the custom software with Amazon Rekognition to categorize the videos.
中文翻译:
将 Amazon ECS 容器用于 Web 应用程序,并将 Spot 实例用于处理 SQS 队列的 Auto Scaling 组。使用 Amazon Rekognition 替换自定义软件来对视频进行分类。
B. Store the uploaded videos in Amazon EFS and mount the file system to the EC2 instances for the web application. Process the SQS queue with an AWS Lambda function that calls the Amazon Rekognition API to categorize the videos.
中文翻译:
将上传的视频存储在 Amazon EFS 中,并将文件系统挂载到 Web 应用程序的 EC2 实例。使用 AWS Lambda 函数处理 SQS 队列,该函数调用 Amazon Rekognition API 对视频进行分类。
C. Host the web application in Amazon S3. Store the uploaded videos in Amazon S3. Use S3 event notification to publish events to the SQS queue. Process the SQS queue with an AWS Lambda function that calls the Amazon Rekognition API to categorize the videos.
中文翻译:
在 Amazon S3 中托管 Web 应用程序。将上传的视频存储在 Amazon S3 中。使用 S3 事件通知将事件发布到 SQS 队列。使用 AWS Lambda 函数处理 SQS 队列,该函数调用 Amazon Rekognition API 对视频进行分类。
D. Use AWS Elastic Beanstalk to launch EC2 instances in an Auto Scaling group for the web application and launch a worker environment to process the SQS queue. Replace the custom software with Amazon Rekognition to categorize the videos.
中文翻译:
使用 AWS Elastic Beanstalk 在 Web 应用程序的 Auto Scaling 组中启动 EC2 实例,并启动工作线程环境来处理 SQS 队列。使用 Amazon Rekognition 替换自定义软件来对视频进行分类。
答案
C
解析
正确答案:C 解析: 本题应选择 C。 正确选项: C. 在 Amazon S3 中托管 Web 应用程序。将上传的视频存储在 Amazon S3 中。使用 S3 事件通知将事件发布到 SQS 队列。使用 AWS Lambda 函数处理 SQS 队列,该函数调用 Amazon Rekognition API 对视频进行分类。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高...