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 is trying to train some of their new hires on DynamoDB and asked your help to define the different read/write capacity modes for processing reads and writes of the table.
Please advice.
Select 2 options.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: A,D.
Option A is correct - On-demand Mode enables billing option capable of serving thousands of requests per second without capacity planning thereby offering pay-per-request pricing for read and write requests.
Option B is incorrect - Provisioned Mode enables to specify the number of reads and writes per second that is required for the application and also allow use auto scaling to adjust your table's provisioned capacity automatically in response to traffic changes.
Option C is incorrect -On-demand Mode enables billing option capable of serving thousands of requests per second without capacity planning thereby offering pay-per-request pricing for read and write requests.
Option D is correct -Provisioned Mode enables to specify the number of reads and writes per second that is required for the application and also allow use auto scaling to adjust your table's provisioned capacity automatically in response to traffic changes.
Sure, I'd be happy to explain the different read/write capacity modes for DynamoDB.
DynamoDB is a fully managed NoSQL database service provided by AWS that allows you to store and retrieve any amount of data, and it automatically scales up or down to meet your workload demands. It offers two capacity modes for processing reads and writes of the table, which are On-demand Mode and Provisioned Mode.
On-demand Mode: In On-demand Mode, you pay only for the read and write requests that you make against your DynamoDB tables. There are no capacity units to manage, and you don't need to specify the number of reads and writes per second that your application requires. You can use auto scaling to adjust your table's provisioned capacity automatically in response to traffic changes.
On-demand Mode is mostly used for unknown workloads and unpredictable application traffic. It is suitable for applications that have infrequent or unpredictable access patterns, and do not require sustained high throughput or provisioned capacity. On-demand Mode is ideal for applications that are still in development, or those that experience sudden spikes in traffic, or have unpredictable usage patterns.
Provisioned Mode: In Provisioned Mode, you specify the number of reads and writes per second that your application requires, and DynamoDB provisions sufficient capacity to handle that workload. You pay for the provisioned capacity, regardless of whether you use it all or not. Provisioned Mode offers two types of capacity units: read capacity units (RCUs) and write capacity units (WCUs).
RCUs and WCUs represent the number of reads and writes that DynamoDB can perform per second, based on an item size of 1KB. You can adjust the provisioned capacity up or down as needed, and use auto scaling to adjust your table's provisioned capacity automatically in response to traffic changes.
Provisioned Mode is mostly used for known workloads and predictable application traffic. It is suitable for applications that require sustained high throughput or provisioned capacity, and have predictable usage patterns. Provisioned Mode is ideal for applications that are in production, or those that require consistent, low-latency response times.
In summary, On-demand Mode is suitable for applications with unpredictable or unknown workloads, while Provisioned Mode is suitable for applications with known and predictable workloads. Both modes offer pay-per-request pricing for read and write requests, but Provisioned Mode also requires you to pay for the provisioned capacity, while On-demand Mode does not.