Soru

Zorluk: OrtaHigh-Performing Content Delivery and Caching Solutions

A real estate platform hosts a global portal on AWS. The portal allows users to search for property listings and view high-resolution property images. The search queries are processed by an Amazon RDS for PostgreSQL database, while the images are stored in an Amazon S3 bucket. The company wants to optimize performance for global users, minimize load on both the database and the S3 bucket, and keep costs optimized. Which combination of services should a solutions architect recommend to meet these requirements?

  1. Configure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, utilizing a default cache TTL of 86400 seconds. Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.Cevap
  2. B
    Configure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, but set the Default TTL and Maximum TTL to 0 seconds on the cache behavior to ensure instant updates. Use Amazon RDS Read Replicas to handle all search queries.
  3. C
    Move the property images to an Amazon S3 Standard-Infrequent Access (S3 Standard-IA) bucket and have users download them directly. Delete the images daily when listings are updated to minimize storage charges.
  4. D
    Configure Amazon Route 53 latency-based routing to distribute user requests directly to the application servers and database without using CloudFront or ElastiCache.

Cevap

Configure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, utilizing a default cache TTL of 86400 seconds. Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.
Implementing Amazon CloudFront with a non-zero cache TTL caches static images at edge locations, reducing S3 request costs and user latency. Amazon ElastiCache stores the results of common read-heavy queries in memory, offloading the RDS database and accelerating responses.

Adım Adım Çözüm

1
Analyze the traffic and data types in the application.
Identify static assets (property images in S3) and dynamic query results (property searches in RDS).
Determining data volatility allows for the selection of appropriate caching layers.
2
Design the caching strategy for the static images.
Place Amazon CloudFront in front of the S3 bucket with a non-zero cache TTL.
This offloads read requests from the origin S3 bucket and reduces global latency.
3
Design the caching strategy for the database search queries.
Implement Amazon ElastiCache to cache frequently requested property listings.
This prevents redundant read-heavy queries from hitting the Amazon RDS database, improving response times.

Anahtar Kavram

Multi-tier caching using Amazon CloudFront and Amazon ElastiCache
Bu soruyu puanla