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.)
- Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.Cevap
- Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin to cache static images.Cevap
- CConfigure an Amazon CloudFront distribution to serve static images, setting the Minimum TTL, Maximum TTL, and Default TTL to 0.
- DConfigure an Amazon S3 lifecycle policy to transition static images to S3 Standard-Infrequent Access (S3 Standard-IA) daily, then delete them after 5 days.
- EDeploy 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
Anahtar Kavram
Multi-tier caching using Amazon ElastiCache for database query results and Amazon CloudFront for static asset content delivery.