A logistics company provides a web-based dashboard where customers query real-time package statuses and download static PDF delivery receipts. The application runs on Amazon EC2 instances behind an Application Load Balancer (ALB), with package data stored in Amazon DynamoDB. During peak shopping events, the system experiences performance degradation. Which strategy should a Solutions Architect implement to achieve the lowest latency for both types of requests while optimizing backend resource utilization?
- ADeploy an Amazon CloudFront distribution to cache the static PDF receipts, and configure the DynamoDB database using Provisioned Capacity Mode with high write capacity units to handle the sudden, spiky query workloads.
- Deploy an Amazon CloudFront distribution in front of the Application Load Balancer to cache the static PDF receipts, and configure an Amazon DynamoDB Accelerator (DAX) cluster to cache package status queries.Cevap
- CDeploy an Amazon CloudFront distribution in front of the Application Load Balancer, setting the Default, Minimum, and Maximum TTL values to 0 seconds on the static PDF cache behavior, and configure DynamoDB Auto Scaling.
- DDeploy an Amazon CloudFront distribution to cache the static PDF receipts, and redesign the DynamoDB schema to use monotonically increasing package registration timestamps as partition keys.
Cevap
Deploy an Amazon CloudFront distribution in front of the Application Load Balancer to cache the static PDF receipts, and configure an Amazon DynamoDB Accelerator (DAX) cluster to cache package status queries.
Deploying Amazon CloudFront in front of the Application Load Balancer ensures that static PDF receipts are cached at edge locations, preventing these requests from reaching the EC2 instances. Using Amazon DynamoDB Accelerator (DAX) provides an in-memory cache for the database, reducing read response times to microseconds and preventing read operations from consuming DynamoDB read capacity units.
Adım Adım Çözüm
Anahtar Kavram
Multi-tier caching using Amazon CloudFront for static assets and Amazon DynamoDB Accelerator (DAX) for database query acceleration.