认证考题 | 使用 Amazon Aurora Serverless 确保应用的自动伸缩


  题目

A company is developing a new application that uses a relational database to store user data and application configurations. The company expects the application to have steady user growth. The company expects the database usage to be variable and read-heavy, with occasional writes. The company wants to cost-optimize the database solution. The company wants to use an AWS managed database solution that will provide the necessary performance.
Which solution will meet these requirements MOST cost-effectively?
A. Deploy the database on Amazon RDS. Use Provisioned IOPS SSD storage to ensure consistent performance for read and write operations.
B. Deploy the database on Amazon Aurora Serverless to automatically scale the database capacity based on actual usage to accommodate the workload.
C. Deploy the database on Amazon DynamoDB. Use on-demand capacity mode to automatically scale throughput to accommodate the workload.
D. Deploy the database on Amazon RDS. Use magnetic storage and use read replicas to accommodate the workload.

  参考答案

B

  参考解析

技巧:排除明显错误选项,在没有明显错误的选项中选择最合理的选项。

A. 不正确。在 Amazon RDS 上部署数据库。使用预配置 IOPS 固态硬盘(SSD)存储,以确保读写操作的一致性能。Provisioned IOPS SSD 存储能提供高性能的 I/O 操作,可满足读写性能需求,但成本较高。对于以读为主且使用情况多变的应用程序,可能会造成资源浪费,因为大部分时间是读取操作,不需要一直维持高写入性能的存储,所以不是最具成本效益的方案。
B. 正确。在 Amazon Aurora Serverless 上部署数据库,根据实际使用情况自动扩展数据库容量以适应工作负载。Amazon Aurora Serverless 能根据实际负载自动调整数据库容量,对于以读为主且使用情况多变的应用程序非常合适。它可以按使用量付费,在负载较低时减少资源使用,降低成本;在负载增加时自动扩展资源,保证性能,能以最具成本效益的方式满足要求。
C. 不正确。在 Amazon DynamoDB 上部署数据库。使用按需容量模式自动扩展吞吐量以适应工作负载。本题要求使用关系型数据库,而 DynamoDB 是 NoSQL 数据库,不符合题目基本要求。该选项不正确。
D. 不正确。在 Amazon RDS 上部署数据库。使用磁性存储并使用读副本以适应工作负载。
磁性存储成本低,但性能较差,而且也存在不支持存储自动伸缩等限制,在用户增长和读取负载增加的情况下,无法满足应用程序的性能需求。虽然读副本可以分担读取负载,但由于存储性能限制,整体性能可能仍不理想,所以不是最佳的成本效益方案。