SAP-C02 第 433 题
题目
A company uses a mobile app on AWS to run online contests. The company selects a winner at random at the end of each contest. The contests run for variable lengths of time. The company does not need to retain any data from a contest after the contest is finished. The company uses custom code that is hosted on Amazon EC2 instances to process the contest data and select a winner. The EC2 instances run behind an Application Load Balancer and store contest entries on Amazon RDS DB instances. The company must design a new architecture to reduce the cost of running the contests. Which solution will meet these requirements MOST cost-effectively?
中文翻译:
一家公司使用 AWS 上的移动应用程序来举办在线竞赛。公司在每次比赛结束时随机选出一名获胜者。比赛的持续时间长短不一。比赛结束后,公司不需要保留比赛的任何数据。该公司使用托管在 Amazon EC2 实例上的自定义代码来处理竞赛数据并选择获胜者。 EC2 实例在应用程序负载均衡器后面运行,并将竞赛条目存储在 Amazon RDS 数据库实例上。该公司必须设计一种新的架构来降低举办竞赛的成本。哪种解决方案能够最具成本效益地满足这些要求?
选项
A. Migrate storage of the contest entries to Amazon DynamoDB. Create a DynamoDB Accelerator (DAX) cluster. Rewrite the code to run as Amazon Elastic Container Service (Amazon ECS) containers that use the Fargate launch type. At the end of the contest, delete the DynamoDB table.
中文翻译:
将竞赛条目的存储迁移到 Amazon DynamoDB。创建 DynamoDB Accelerator (DAX) 集群。重写代码以作为使用 Fargate 启动类型的 Amazon Elastic Container Service (Amazon ECS) 容器运行。比赛结束时,删除 DynamoDB 表。
B. Migrate the storage of the contest entries to Amazon Redshift. Rewrite the code as AWS Lambda functions. At the end of the contest, delete the Redshift cluster.
中文翻译:
将竞赛条目的存储迁移到 Amazon Redshift。将代码重写为 AWS Lambda 函数。比赛结束后,删除 Redshift 集群。
C. Add an Amazon ElastiCache for Redis cluster in front of the RDS DB instances to cache the contest entries. Rewrite the code to run as Amazon Elastic Container Service (Amazon ECS) containers that use the Fargate launch type. Set the ElastiCache TTL attribute on each entry to expire each entry at the end of the contest.
中文翻译:
在 RDS 数据库实例前面添加 Amazon ElastiCache for Redis 集群以缓存竞赛条目。重写代码以作为使用 Fargate 启动类型的 Amazon Elastic Container Service (Amazon ECS) 容器运行。在每个条目上设置 ElastiCache TTL 属性,以使每个条目在比赛结束时过期。
D. Migrate the storage of the contest entries to Amazon DynamoDB. Rewrite the code as AWS Lambda functions. Set the DynamoDB TTL attribute on each entry to expire each entry at the end of the contest.
中文翻译:
将竞赛条目的存储迁移到 Amazon DynamoDB。将代码重写为 AWS Lambda 函数。在每个条目上设置 DynamoDB TTL 属性,以使每个条目在比赛结束时过期。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 将竞赛条目的存储迁移到 Amazon DynamoDB。将代码重写为 AWS Lambda 函数。在每个条目上设置 DynamoDB TTL 属性,以使每个条目在比赛结束时过期。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相...