Question

Difficulty: Very hardHigh-Performing Content Delivery and Caching Solutions

A global retail company is deploying a product catalog application. Mobile client devices query a REST API hosted on Amazon API Gateway, which retrieves catalog data from a backend Amazon DynamoDB table. Users frequently query the same popular product categories, resulting in repeated read operations on DynamoDB that threaten to exceed the read capacity during flash sales. Additionally, static product images are stored in an Amazon S3 bucket and suffer from high retrieval latencies in remote regions. Which combination of architectural modifications will provide the lowest latency for users and optimize database performance under peak loads? (Select TWO.)

  1. Enable Amazon API Gateway caching for the catalog search API stages to cache responses and reduce the read load on the backend Amazon DynamoDB table.Answer
  2. Deploy an Amazon CloudFront distribution with the Amazon S3 bucket configured as the origin to cache and serve static product images from edge locations closer to users.Answer
  3. C
    Configure the CloudFront distribution's cache behavior for static images with a Minimum TTL, Maximum TTL, and Default TTL of 0 seconds to ensure clients always retrieve the latest image versions from the S3 bucket.
  4. D
    Provision a DynamoDB Accelerator (DAX) cluster in a private subnet, and configure the API Gateway integration to route all query traffic to the DAX cluster through a NAT Gateway.
  5. E
    Switch the DynamoDB table to Provisioned Capacity Mode and set the Read Capacity Units (RCUs) to a high static limit to handle the unpredictable search traffic spikes.

Answer

Enable Amazon API Gateway caching for the catalog search API stages, and deploy an Amazon CloudFront distribution with the Amazon S3 bucket configured as the origin.
To optimize the application for performance and cost under peak load, a multi-tiered caching approach is required. Enabling Amazon API Gateway caching at the API stage level reduces read requests to Amazon DynamoDB by returning cached responses for identical queries. Simultaneously, deploying an Amazon CloudFront distribution with the Amazon S3 bucket as the origin caches static product images at edge locations globally, which minimizes retrieval latency for remote users and protects the S3 bucket from request overload.

Step-by-Step Solution

1
Analyze the workload characteristics for dynamic catalog queries.
Identify that many searches target the same popular product categories, suggesting that caching at the API layer will drastically reduce database read operations.
This offloads read traffic from Amazon DynamoDB and reduces API response times.
2
Address static asset delivery latency.
Determine that static product images stored in S3 should be cached closer to global users.
Deploying Amazon CloudFront provides global caching at edge locations to minimize latency.
3
Evaluate the proposed caching modifications for dynamic and static content.
Confirm that combining API Gateway caching and S3-backed CloudFront distribution satisfies both performance and database offloading requirements.
This combination addresses both dynamic API queries and static image delivery.

Key Concept

Multi-tier caching configurations to optimize read latency and origin database load.
Estimated Time:3m 0s
Rate this question