Soru

Zorluk: KolayHigh-Performing Content Delivery and Caching Solutions

A company hosts a web application on AWS that uses an Amazon Aurora PostgreSQL database. Global users are experiencing slow load times when requesting static images stored in Amazon S3. Additionally, the database is experiencing high CPU utilization due to a large volume of repetitive read queries for product catalog details. Which two configurations should a solutions architect implement to reduce latency and improve performance? (Select TWO.)

  1. Deploy Amazon ElastiCache to cache database query results for the product catalog details.Cevap
  2. Configure an Amazon CloudFront distribution with the Amazon S3 bucket containing the static images as the origin.Cevap
  3. C
    Deploy an Amazon CloudFront distribution for the static images and set the default Time to Live (TTL) value to 0.
  4. D
    Implement Amazon Route 53 latency-based routing to direct database read queries to the nearest Aurora instance.
  5. E
    Route private EC2 instance traffic to Amazon S3 through a NAT Gateway to cache static assets.

Cevap

Deploy Amazon ElastiCache to cache database query results and configure an Amazon CloudFront distribution with the Amazon S3 bucket containing static images as the origin.
Deploying Amazon ElastiCache caches repetitive read queries, reducing database load and response times. Creating an Amazon CloudFront distribution caches static images at edge locations, resolving global page load delays.

Adım Adım Çözüm

1
Identify the performance bottlenecks for both static assets and database queries.
The bottlenecks are static image retrieval latency and database CPU utilization caused by repetitive read queries.
Resolving these requires targeted caching strategies at both the presentation layer and the database layer.
2
Select the appropriate caching solution for static assets.
Amazon CloudFront caches static images closer to global users.
CloudFront edge locations reduce latency and offload requests from the S3 origin.
3
Select the appropriate caching solution for the relational database.
Amazon ElastiCache caches frequent read query results in-memory.
ElastiCache decreases database CPU usage and accelerates query responses by bypassing the database engine for cached data.

Anahtar Kavram

Multi-tier caching using Amazon CloudFront for static edge delivery and Amazon ElastiCache for database query acceleration.
Bu soruyu puanla