4.3.7 Optimize Application Resource Usage
Optimize Application Resource Usage
DynamoDB
| Optimization | Mô tả |
|---|
| On-Demand | Unpredictable workloads |
| Auto Scaling | Provisioned + target utilization |
| Batch operations | Reduce API calls |
| ProjectionExpression | Return only needed attributes |
| DAX | Microsecond reads |
S3
| Optimization | Mô tả |
|---|
| Multipart Upload | Parallel upload (> 100MB) |
| Transfer Acceleration | Edge locations for upload |
| Byte-range fetches | Partial downloads |
| S3 Select | Query in-place |
| Intelligent-Tiering | Auto storage class |
SQS
| Optimization | Mô tả |
|---|
| Long Polling | WaitTimeSeconds 1-20s |
| Batch receive | Up to 10 messages |
| Visibility Timeout | ≥ function timeout |
| Max Concurrency | Limit Lambda executions |
Lambda
| Optimization | Mô tả |
|---|
| Right-size memory | Power Tuning tool |
| Init outside handler | Reuse connections |
| Minimize package | Remove unused deps |
| Provisioned Concurrency | Eliminate cold starts |
Exam Tip: SQS Long Polling > Short Polling. DynamoDB ProjectionExpression reduces RCU. S3 Multipart for large files. Lambda init outside handler.