Learn how to improve the performance and reliability of an AWS-based media storage application facing Lambda concurrency limits and DynamoDB write performance issues during high traffic. Discover the optimal solution architecture and best practices.
Table of Contents
Question
A media storage application uploads user photos to Amazon S3 for processing by AWS Lambda functions. Application state is stored in Amazon DynamoDB tables. Users are reporting that some uploaded photos are not being processed properly. The application developers trace the logs and find that Lambda is experiencing photo processing issues when thousands of users upload photos simultaneously. The issues are the result of Lambda concurrency limits and the performance of DynamoDB when data is saved.
Which combination of actions should a solutions architect take to increase the performance and reliability of the application? (Choose two.)
A. Evaluate and adjust the RCUs for the DynamoDB tables.
B. Evaluate and adjust the WCUs for the DynamoDB tables.
C. Add an Amazon ElastiCache layer to increase the performance of Lambda functions.
D. Add an Amazon Simple Queue Service (Amazon SQS) queue and reprocessing logic between Amazon S3 and the Lambda functions.
E. Use S3 Transfer Acceleration to provide lower latency to users.
Answer
B. Evaluate and adjust the WCUs for the DynamoDB tables.
D. Add an Amazon Simple Queue Service (Amazon SQS) queue and reprocessing logic between Amazon S3 and the Lambda functions.
Explanation
B. Evaluating and adjusting the WCUs for the DynamoDB tables is necessary to handle the high write load when many users upload photos simultaneously. If the WCUs are insufficient, DynamoDB will throttle the write requests, causing delays and potentially contributing to the Lambda processing issues. Increasing the WCUs will improve the write performance of DynamoDB and reduce throttling.
D. Adding an Amazon SQS queue and reprocessing logic between Amazon S3 and the Lambda functions helps decouple the upload and processing stages. When many users upload photos simultaneously, the photos can be added to the SQS queue, and the Lambda functions can process them asynchronously from the queue. This helps overcome the Lambda concurrency limits and ensures that no uploads are missed or lost during high traffic periods.
A. Adjusting the RCUs (Read Capacity Units) for the DynamoDB tables is not relevant in this case, as the issue is related to writes and not reads.
C. Adding an Amazon ElastiCache layer would not directly address the Lambda concurrency limits or the DynamoDB write performance issues described in the scenario.
E. Using S3 Transfer Acceleration would not solve the Lambda concurrency limits or the DynamoDB write performance issues, as it is primarily used to improve file transfer speeds over long distances, but does not address the application’s specific bottlenecks.
Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Solutions Architect – Professional SAP-C02 exam and earn Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification.