DynamoDB scenario : On Demand or Provisioned with Autoscaling?

Came across this interesting question. Its using the words “steady and predictable” but also “no traffic at night” and want to “minimize throttling” at the same time “decrease expenditures”. Would this be a usecase for OnDemand which actually ends up saving money (literally scales down to zero at night) but prevents throttling during business hours ? Or would Autoscaling still be the right choice (here capacity would be wasted at night time if you set a provisioned throughput based on predictable daytime workloads) but they do want “decreasing expenditures” so to me Autoscaling may help with throttling but wont help decrease expenditures?

​

Amazon DynamoDB is used as the data repository for an ecommerce website. At night, the website gets little to no traffic, while the bulk of visitors come during the day. On a daily level, traffic increase during peak hours is steady and predictable, but it might be orders of magnitude more than traffic growth during off-peak hours.Initially, the corporation allocated capacity based on its average daily throughput without taking into consideration the fluctuation of traffic patterns. However, the website is significantly throttled during busy hours. The firm want to minimize throttling while also decreasing expenditures.

What actions should a database professional do to ensure compliance with these requirements?

  • A. Use reserved capacity. Set it to the capacity levels required for peak daytime throughput.
  • B. Use provisioned capacity. Set it to the capacity levels required for peak daytime throughput.
  • C. Use provisioned capacity. Create an AWS Application Auto Scaling policy to update capacity based on consumption.

Related discussions:

C, because an auto scaling policy would decrease expenditure by descaling during off-peak hours

Good Point. I had considered that though this point came to me - when we setup Autoscaling policies - we usually set the min RCU/WCU based on the BaseLine Workloads correct?

So Min RCU/WCU would be Provisioned Capacity considering the baseline based on this:

On a daily level, traffic increase during peak hours is steady and predictable

In other words : say baseline was 200RCU/100WCU - wouldnt the AutoscalingPolicy be MINIMUM 200RCU/100WCU with MAXIMUM being say 400RCU/200WCU and TargetUtilization say 70%. If yes - wouldn’t this make no difference to base cost but AutoScaling during additional Load ADD to the costs?

​

am going to strike that out my understanding of AS was wrong. You CAN scale down to zero. Beautfilly explain here. https://www.youtube.com/watch?v=-um\_HJWcHtA

​

Answer definitely should be Provisioned with AutoScaling (C)

Think you might be right, does it give you the answer? Where are these questions from

Its a free question bank with a huge set of DB Specialty questions. Its pretty good except the official answers are mostly wrong and its reliant on people replying on the forums which they are..but many times they are also split on verdict

Since most of their “official” answers (its official in merely name..so people are relying on user discussions ).

Most users are split between (D) and (C)

Sorry I forgot to add there was an option D. Copy paste I didnt even realize it till now..

D. Use on-demand capacity.