A company hosts a website with static images stored in an Amazon S3 bucket and uses an Amazon DynamoDB table to store product catalog details. The company wants to optimize performance by caching both static and database content to reduce read latency for users. Which two configurations should the solutions architect recommend to meet these requirements?
- Deploy an Amazon CloudFront distribution to cache and serve the static assets from the Amazon S3 bucket.Cevap
- Implement Amazon DynamoDB Accelerator (DAX) in front of the database to cache read requests.Cevap
- CConfigure the CloudFront distribution with a default Time-To-Live (TTL) of seconds for all static behaviors.
- DConfigure Amazon DynamoDB in provisioned capacity mode with high provisioned capacity limits to handle read spikes without using a cache.
- EStore frequently queried database results in Amazon S3 Standard-IA for less than days to serve as a caching layer.
Cevap
Deploy an Amazon CloudFront distribution to cache and serve the static assets from the Amazon S3 bucket, and implement Amazon DynamoDB Accelerator (DAX) in front of the database to cache read requests.
Deploying Amazon CloudFront in front of the Amazon S3 bucket caches static assets at edge locations closer to users, reducing latency. Implementing Amazon DynamoDB Accelerator (DAX) provides an in-memory cache directly in front of DynamoDB tables, reducing database read latencies from milliseconds to microseconds.
Adım Adım Çözüm
Anahtar Kavram
Using Amazon CloudFront and Amazon DynamoDB Accelerator (DAX) to implement high-performing, multi-tiered caching for static assets and database reads.