Your company is planning to develop an application where the front end is in .Net and the backend is in DynamoDB.
There is an expectation of a high load on the application.
How could you ensure the scalability of the application to reduce the load on the DynamoDB database? Choose an answer from the options below.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - C.
When the idea comes for scalability and decoupling, then SQS is the best option.
Amazon Simple Queue Service (SQS) is a fully-managed message queuing service for reliably communicating among distributed software components and microservices - at any scale.
Building applications from individual components that perform a discrete function improves scalability and reliability and is the best practice design for modern applications.
SQS makes it simple to decouple and coordinate the components of a cloud application.
Using SQS, you can send, store, and receive messages between software components at any volume without losing messages or requiring other services to be always available.
For more information on SQS, please refer to the below URL:
https://aws.amazon.com/sqs/The correct answer to ensure the scalability of the application to reduce the load on the DynamoDB database would be C - Use SQS to assist and let the application pull messages and then perform the relevant operation in DynamoDB.
Here's why:
A. Adding more DynamoDB databases to handle the load might work but it can become difficult to manage and can be costly. Additionally, it may not be necessary if you can optimize your usage of DynamoDB with the other options available.
B. Increasing the write capacity of DynamoDB can help meet peak loads but it's not a scalable solution in the long term. It can also be expensive if the peak load is not consistent.
D. Launching DynamoDB in Multi-AZ configuration with a global index to balance writes is a good option to ensure high availability and durability, but it doesn't address the scalability issue of reducing load on DynamoDB.
C. Using SQS to assist can help you reduce the load on the DynamoDB database. Amazon SQS is a fully managed message queuing service that enables decoupling of the components of a cloud application. By using SQS, you can separate the read and write operations of the application from the database operations. The application can send write requests to SQS, which acts as a buffer, and then reads messages from the queue to perform the relevant operation in DynamoDB. This way, you can decouple the read and write operations from the database, reducing the load on DynamoDB and making the application more scalable.
In summary, the best way to ensure the scalability of the application to reduce the load on the DynamoDB database is to use SQS to assist and let the application pull messages and then perform the relevant operation in DynamoDB.