Q74 — AWS SAA-C03 Ch.15
Question 74 of 100 | ← Chapter 15
Q1174. A company has developed an online portal that displays the most recent information about its products. The company has deployed the code as AWS Lambda functions and has exposed the code by using Amazon API Gateway. Amazon DynamoDB stores the data for the system.After reviewing its Amazon CloudWatch metrics, the company noticed that some products are more popular and are viewed more often than other products. The company wants the fastest possible read response time for the most popular products without adding operational overhead.Which solution will reduce the number of database calls with the LEAST number of code changes?
- A. Configure DynamoDB Accelerator(DAX). Update the Getltem API calls of the Lambda functions to point to the DAX cluster endpoint. ✓
- B. Create an Amazon OpenSearch Service cluster that uses a cache-aside caching strategy. Update the Getltem APl calls of the Lambda functions to point to the OpenSearch Service endpoint.
- C. Create an Amazon ElastiCache (Redis OSS) cluster. Update the Lambda function code to use a lazy loading caching strategy for the Getltem APl calls to the Redis cluster.
- D. Create an Amazon ElastiCache (Memcached) cluster. Update the Lambda function code to use a write- through caching strategy for the Getltem APl calls to the Memcached cluster.
Correct Answer: A. Configure DynamoDB Accelerator(DAX). Update the Getltem API calls of the Lambda functions to point to the DAX cluster endpoint.
Explanation
To reduce the number of database calls and achieve the fastest possible read response time for the most popular products with the least number of code changes, the best solution is:A. Configure DynamoDB Accelerator (DAX). Update the GetItem API calls of the Lambda functions to point to the DAX cluster endpoint.### Explanation:DynamoDB Accelerator (DAX): DAX is specifically designed to provide in-memory caching for DynamoDB, allowing for fast read performance while seamlessly integrating with existing DynamoDB applications. Minimal Code Changes: Switching to DAX requires only a change in the API endpoint for the GetItem calls, making it a low-effort solution while providing significant performance improvements for read-heavy workloads.### Other Options:B: Using Amazon OpenSearch Service would involve more significant architectural changes and additional management overhead, which is not ideal for minimizing code changes.C: Using Amazon ElastiCache (Redis) would require implementing a caching strategy in the application code, which increases the complexity and operational overhead.D: Similar to option C, using Amazon ElastiCache (Memcached) would also necessitate changes to the Lambda function code for caching, which is more complex than using DAX.Thus, option A is the most efficient and effective solution for enhancing read performance with minimal operational overhead.