Q9 — AWS SAP-C02 Ch.1

Question 9 of 75 | ← Chapter 1

Q84. A company recently deployed an application on AWS. The application uses Amazon DynamoDB. The company measured the application load and configured the RCUs and WCUs on the DynamoDB table to match the expected peak load. The peak load occurs once a week fora 4-hour period and is double the average load. The application load is close to the average load for the rest of the week. The access pattern includes many more writes to the table than reads of the table. A solutions architect needs to implement a solution to minimize the cost of the table.Which solution will meet these requirements?

Correct Answer: A. Use AWS Application Auto Scaling to increase capacity during the peak period. Purchase reserved RCUs and WCUs to match the average load.

Explanation

Option A: Use AWS Application Auto Scaling to increase capacity during the peak period. By configuring Application Auto Scaling, you can dynamically adjust the provisioned capacity of the DynamoDB table based on the application load. During the peak period, when the load is double the average load, you can scale up the read and write capacity units (RCUs and WCUs) using auto scaling policies. This ensures that the table can handle the increased load during the peak period. Additionally, you can purchase reserved RCUs and WCUs to match the average load, which provides cost savings compared to on-demand capacity. Option B is incorrect because configuring on-demand capacity mode for the table does not consider the peak load and average load requirements. On-demand capacity mode charges per request, which can be expensive for applications with consistent or high load. Option C is incorrect because configuring DynamoDB Accelerator (DAX) in front of the table and reducing the provisioned read capacity does not address the cost optimization requirement. Although DAX can improve read performance, it adds an additional cost and is not specifically focused on minimizing the cost of the table. Option D is incorrect because configuring DynamoDB Accelerator (DAX) in front of the table and using on-demand capacity mode does not provide a cost-optimized solution. DAX is designed to work with provisioned capacity mode and provides caching benefits, so combining it with on-demand capacity mode is not the most cost-efficient approach. Therefore, the correct solution is A: Use AWS Application Auto Scaling to increase capacity during the peak period and purchase reserved RCUs and WCUs to match the average load, ensuring cost optimization while meeting the performance requirements.