Soru

Zorluk: OrtaHigh-Performing Content Delivery and Caching Solutions

A logistics company provides a web-based dashboard where customers query real-time package statuses and download static PDF delivery receipts. The application runs on Amazon EC2 instances behind an Application Load Balancer (ALB), with package data stored in Amazon DynamoDB. During peak shopping events, the system experiences performance degradation. Which strategy should a Solutions Architect implement to achieve the lowest latency for both types of requests while optimizing backend resource utilization?

  1. A
    Deploy an Amazon CloudFront distribution to cache the static PDF receipts, and configure the DynamoDB database using Provisioned Capacity Mode with high write capacity units to handle the sudden, spiky query workloads.
  2. Deploy an Amazon CloudFront distribution in front of the Application Load Balancer to cache the static PDF receipts, and configure an Amazon DynamoDB Accelerator (DAX) cluster to cache package status queries.Cevap
  3. C
    Deploy an Amazon CloudFront distribution in front of the Application Load Balancer, setting the Default, Minimum, and Maximum TTL values to 0 seconds on the static PDF cache behavior, and configure DynamoDB Auto Scaling.
  4. D
    Deploy an Amazon CloudFront distribution to cache the static PDF receipts, and redesign the DynamoDB schema to use monotonically increasing package registration timestamps as partition keys.

Cevap

Deploy an Amazon CloudFront distribution in front of the Application Load Balancer to cache the static PDF receipts, and configure an Amazon DynamoDB Accelerator (DAX) cluster to cache package status queries.
Deploying Amazon CloudFront in front of the Application Load Balancer ensures that static PDF receipts are cached at edge locations, preventing these requests from reaching the EC2 instances. Using Amazon DynamoDB Accelerator (DAX) provides an in-memory cache for the database, reducing read response times to microseconds and preventing read operations from consuming DynamoDB read capacity units.

Adım Adım Çözüm

1
Analyze the request types and identify caching opportunities.
Identified static PDF receipts as candidates for edge caching, and dynamic package status queries as candidates for database caching.
Static assets do not change frequently and are best cached at the edge, while database read queries can be cached in-memory to reduce latency and origin load.
2
Select the appropriate caching service for static content.
Configure Amazon CloudFront with the Application Load Balancer as the origin.
CloudFront delivers static files with low latency from edge locations, offloading the EC2 web servers.
3
Select the appropriate caching service for DynamoDB reads.
Enable Amazon DynamoDB Accelerator (DAX) in front of the DynamoDB table.
DAX is a fully managed, highly available, in-memory cache for DynamoDB that delivers microsecond response times for read-heavy workloads.

Anahtar Kavram

Multi-tier caching using Amazon CloudFront for static assets and Amazon DynamoDB Accelerator (DAX) for database query acceleration.
Bu soruyu puanla