4.3.7 Optimize Application Resource Usage

Optimize Application Resource Usage

DynamoDB

OptimizationMô tả
On-DemandUnpredictable workloads
Auto ScalingProvisioned + target utilization
Batch operationsReduce API calls
ProjectionExpressionReturn only needed attributes
DAXMicrosecond reads

S3

OptimizationMô tả
Multipart UploadParallel upload (> 100MB)
Transfer AccelerationEdge locations for upload
Byte-range fetchesPartial downloads
S3 SelectQuery in-place
Intelligent-TieringAuto storage class

SQS

OptimizationMô tả
Long PollingWaitTimeSeconds 1-20s
Batch receiveUp to 10 messages
Visibility Timeout≥ function timeout
Max ConcurrencyLimit Lambda executions

Lambda

OptimizationMô tả
Right-size memoryPower Tuning tool
Init outside handlerReuse connections
Minimize packageRemove unused deps
Provisioned ConcurrencyEliminate cold starts

Exam Tip: SQS Long Polling > Short Polling. DynamoDB ProjectionExpression reduces RCU. S3 Multipart for large files. Lambda init outside handler.