AWS Certified Solutions Architect – Professional (SAP-C02) — Question 285
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.)
Answer options
- 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.
Correct answer: B, D
Explanation
To resolve the DynamoDB performance issues when saving application state, the Write Capacity Units (WCUs) must be adjusted since saving data is a write operation. To handle Lambda concurrency bottlenecks during traffic spikes, introducing an Amazon SQS queue between S3 and Lambda buffers the incoming requests and allows Lambda to process them at a controlled rate with built-in reprocessing logic. Adjusting RCUs does not help with write performance, ElastiCache does not address the write or concurrency issues, and S3 Transfer Acceleration only speeds up uploads but does not fix the backend processing bottleneck.