Question

Difficulty: EasyHigh-Performing Content Delivery and Caching Solutions

A gaming company is launching a new web-based multiplayer game. The application's static assets, such as images and audio files, are stored in an Amazon S3 bucket. The game also retrieves leaderboard data and user profile configurations from an Amazon RDS MySQL database, which is experiencing performance degradation due to high read traffic. A Solutions Architect needs to implement a caching strategy to reduce latency for players globally and decrease the load on the origin servers.

Which combination of actions should the Solutions Architect take to meet these requirements? (Select TWO.)

  1. Create an Amazon CloudFront distribution to serve the static assets from the Amazon S3 bucket.Answer
  2. Deploy an Amazon ElastiCache cluster to cache the frequently accessed database query results from the Amazon RDS database.Answer
  3. C
    Configure the Amazon CloudFront distribution with a default Time to Live (TTL) of 0 seconds for all static assets.
  4. D
    Route traffic to the Amazon S3 bucket through a NAT Gateway in a private subnet to cache static assets and reduce data transfer costs.
  5. E
    Implement Amazon Route 53 latency-based routing to cache dynamic database queries at the DNS level.

Answer

To meet these requirements, the Solutions Architect should create an Amazon CloudFront distribution to serve the static assets from the S3 bucket, and deploy an Amazon ElastiCache cluster to cache frequently accessed database query results from the RDS database.
The correct strategy combines Amazon CloudFront to cache static files (images, audio) at edge locations close to users and Amazon ElastiCache to cache database queries, reducing latency and reducing the load on the Amazon RDS origin database.

Step-by-Step Solution

1
Identify the performance bottlenecks for both the static and dynamic components of the application.
Static assets (images/audio) in S3 suffer from latency when accessed globally, and the RDS database suffers from performance degradation due to high read query volume.
Resolving both issues requires separate caching strategies targeted at different layers (CDN caching for S3 static files, in-memory caching for database queries).
2
Address static asset latency by implementing an edge content delivery network.
Amazon CloudFront is selected to cache static S3 content at global edge locations.
This reduces response latency for global users and offloads get requests from the S3 origin.
3
Address database query performance by deploying an in-memory cache.
Amazon ElastiCache is selected to store slow, frequent database query results.
In-memory query caching prevents frequent read requests from reaching the Amazon RDS instance directly, optimizing response times.

Key Concept

Multi-tier caching involves using CDN caching (Amazon CloudFront) for edge distribution of static files and in-memory caching (Amazon ElastiCache) for database read optimization.
Rate this question