Implementing Auto Scaling in DynamoDB for KindleYou: Critical Steps

Implementing Auto Scaling in DynamoDB for KindleYou

Question

KindleYou is a location-based social search mobile app that allows users to like or dislike other users, and allows users to chat if both parties liked each other in the app.

It has more than 1 billion customers across the world. They use DynamoDB to support the mobile application and S3 to host the images and other documents shared between users. KindleYou has collection named Interactions bulk-loaded with data infrequently; it doesn't incur very much write activity but always experience a high degree of read activity, which varies over time.

KindleYou is looking at implementing Auto Scaling in DynamoDB.

Please advise on the critical steps! select 3 options.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

Answer: B, D,F.

Option A is incorrect - the metrics are published to CloudWatch.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

Option B is correct - the metrics are published to CloudWatch.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

Option C is incorrect - cloudwatch triggers the alarm.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

Option D is correct -the alarm on the AWS Management Console and receive notifications using Amazon Simple Notification Service.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

Option E is incorrect -the user is notified using SNS.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

Option F is correct -The CloudWatch alarm invokes Application Auto Scaling to evaluate your scaling policy using SNS which issues an UpdateTable request to adjust your table's provisioned throughput.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html#AutoScaling.HowItWorks

KindleYou is looking to implement Auto Scaling in DynamoDB to handle varying read activity on their Interactions table. Here are the critical steps that they need to take:

  1. Publish consumed capacity metrics: KindleYou needs to publish the consumed capacity metrics for their Interactions table to Amazon CloudWatch. This is done using the AWS SDK or the AWS Management Console.

  2. Set up an alarm: KindleYou needs to set up an alarm on the Interactions table in CloudWatch. The alarm should trigger when the consumed capacity exceeds or falls below the target utilization for a specific length of time. The alarm can be set up to trigger a notification using SNS or SQS.

  3. Configure scaling policy: KindleYou needs to configure a scaling policy for their Interactions table using Application Auto Scaling. The scaling policy should specify how to scale up or down the number of read capacity units based on the alarm triggered by CloudWatch.

  4. UpdateTable: The scaling policy should invoke the UpdateTable API action in DynamoDB to change the read capacity units of the Interactions table. The scaling policy can be configured to either add or remove read capacity units based on the alarm triggered by CloudWatch.

In summary, the critical steps for implementing Auto Scaling in DynamoDB for KindleYou's Interactions table are to publish consumed capacity metrics to CloudWatch, set up an alarm to trigger when the consumed capacity exceeds or falls below the target utilization, configure a scaling policy using Application Auto Scaling, and use the UpdateTable API action to change the read capacity units based on the alarm triggered by CloudWatch.