Q62 — AWS SAA-C03 第3章
第 62/65 题 | ← 返回第3章
Q192.一家公司计划使用 Amazon DynamoDB 表进行数据存储.公司关注成本优化.大多数早晨不会使用这张桌子.在晚上,读写流量往往不可预测.当出现流量高峰时,它们会很快发生.解决方案架构师应该推荐什么?
- A. 在按需容量模式下创建 DynamoDB 表. ✓
- B. 创建一个带有全局二级索引的 DynamoDB 表.
- C. 创建一个具有配置容量和自动缩放的 DynamoDB 表.
- D. 以预配置容量模式创建 DynamoDB 表,并将其配置为全局表.
正确答案: A. 在按需容量模式下创建 DynamoDB 表.
解析
Option B suggests creating a DynamoDB table with a global secondary index. While this approach may be useful for improving query performance, it does not address the requirement of optimizing cost and handling traffic spikes.Option C suggests creating a DynamoDB table with provisioned capacity and auto scaling enabled, which can handle sudden traffic spikes while minimizing costs during periods of low traffic. However, this approach may not be cost-effective when the table is mostly unused on most mornings.Option D suggests creating a DynamoDB table in provisioned capacity mode and configuring it as a global table. While this approach can provide high availability and disaster recovery capabilities, it may not be necessary or cost-effective for optimizing cost and handling traffic spikes.By creating a DynamoDB table in on-demand capacity mode, the company can ensure that the table is only billed for the resources it consumes, providing significant cost savings during periods of low traffic. The on-demand capacity mode automatically scales to meet the demands of unpredictable traffic spikes and avoids the need to provision resources in advance, which can also reduce costs. This solution meets the requirements stated in the question and provides a cost-optimized approach to using DynamoDB with low utilization.选项B建议创建一个具有全局二级索引的DynamoDB表。虽然这种方法可能有助于提高查询性能,但它不能解决优化成本和处理流量峰值的需求。选项C建议创建一个已配置容量并启用自动伸缩的DynamoDB表,这样可以处理突发的流量峰值,同时在低流量期间将成本降至最低。然而,这种方法可能不符合成本效益,因为大多数早晨的桌子都是闲置的。选项D建议在已配置容量模式下创建DynamoDB表,并将其配置为全局表。虽然这种方法可以提供高可用性和灾难恢复功能,但对于优化成本和处理流量峰值来说,它可能不是必要的,也不是经济有效的。通过在按需容量模式下创建DynamoDB表,公司可以确保只对表所消耗的资源收费,从而在低流量期间显著节省成本。按需容量模式可以自动扩展,以满足不可预测的流量峰值需求,避免了提前发放资源的需要,也可以降低成本。该解决方案满足问题中所述的需求,并为使用低利用率的DynamoDB提供了一种成本优化的方法。