A global event ticketing platform hosts its web application on AWS. The static frontend assets, such as seating charts and promotional banners, are stored in an Amazon S3 bucket. The dynamic backend application runs on Amazon EC2 instances behind an Application Load Balancer (ALB) and reads ticket availability data from an Amazon RDS for PostgreSQL database. During popular ticket launches, the platform experiences massive traffic spikes, leading to increased latency and high CPU utilization on the RDS database.
Which combination of actions should a solutions architect recommend to reduce latency and improve the application's overall performance? (Select TWO.)
- Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin to serve the static seating charts and promotional banners.Cevap
- Deploy an Amazon ElastiCache cluster to cache frequent read queries for ticket availability, reducing the query load on the Amazon RDS database.Cevap
- CConfigure an Amazon CloudFront distribution for the static S3 assets, but set the Default TTL and Minimum TTL to seconds in the cache behavior to ensure that users always download the latest seating charts.
- DMigrate the database to Amazon DynamoDB and use a monotonically increasing timestamp as the partition key to ensure seating inventory queries are processed sequentially and quickly.
- EDeploy AWS Shield Standard to inspect incoming HTTPS requests at the Application Load Balancer (ALB) level to automatically filter out SQL injection attempts.
Cevap
Configure an Amazon CloudFront distribution with the Amazon S3 bucket as the origin to serve static assets, and deploy an Amazon ElastiCache cluster to cache database read queries.
The correct architecture leverages Amazon CloudFront to cache static assets (like seating charts and banners) at edge locations close to users, reducing latency and origin request volume. For database queries, Amazon ElastiCache stores the results of ticket availability queries in memory, preventing redundant reads from reaching the Amazon RDS PostgreSQL database and lowering CPU consumption during high-traffic events.
Adım Adım Çözüm
Anahtar Kavram
Multi-tiered caching in AWS involves caching static media assets at the edge using Amazon CloudFront and caching database read queries in-memory using Amazon ElastiCache, which together minimize latency and protect origin databases and storage from overload during traffic spikes.