Soru

Zorluk: KolayHigh-Performing Content Delivery and Caching Solutions

A media company hosts a popular blogging platform on AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). Static images are stored in an Amazon S3 bucket, and dynamic blog posts are stored in an Amazon RDS for MySQL database. During peak hours, the database experiences high CPU utilization due to a high volume of read queries for popular posts, and user page load times increase.

Which combination of actions will reduce the load on the primary database and improve content delivery performance? (Select TWO.)

  1. Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.Cevap
  2. Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin to cache static images.Cevap
  3. C
    Configure an Amazon CloudFront distribution to serve static images, setting the Minimum TTL, Maximum TTL, and Default TTL to 0.
  4. D
    Configure an Amazon S3 lifecycle policy to transition static images to S3 Standard-Infrequent Access (S3 Standard-IA) daily, then delete them after 5 days.
  5. E
    Deploy a NAT Gateway to route all read queries and asset retrieval requests internally to bypass the public internet.

Cevap

Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database, and configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin to cache static images.
Deploying an Amazon ElastiCache cluster caches dynamic database query results in-memory, resolving the RDS database read bottleneck and lowering latency. In parallel, configuring an Amazon CloudFront distribution caches static images at edge locations, offloading traffic from S3 and improving global delivery speed.

Adım Adım Çözüm

1
Analyze the bottlenecks in the current architecture.
The application suffers from high CPU utilization on the RDS MySQL database due to repetitive read queries, and static image delivery from S3 needs acceleration.
Identifying the distinct database read bottleneck and static content delivery bottleneck allows for targeted caching strategies.
2
Select the caching solution for database queries.
Amazon ElastiCache is selected to cache frequent SQL query results.
By serving repetitive queries from in-memory cache, the primary RDS database is relieved of read load, lowering its CPU utilization.
3
Select the content delivery solution for static assets.
Amazon CloudFront is selected to cache and distribute the static images stored in S3.
CloudFront edge locations cache static images closer to users, improving load times and offloading traffic from S3.

Anahtar Kavram

Multi-tier caching using Amazon ElastiCache for database query results and Amazon CloudFront for static asset content delivery.
Bu soruyu puanla