SAP-C02 Question 668
Single answerA large e-commerce company wants to implement a high-performance, scalable, and cost-effective solution for their shopping cart functionality. The shopping cart must provide low-latency access to session data, support fast updates, and scale seamlessly during traffic spikes, such as during flash sales. Which AWS service is the most appropriate choice to meet these requirements?
- A
Amazon DynamoDB
- B
Amazon Aurora Serverless
- C
Amazon ElastiCache for Redis
- D
Amazon RDS with Multi-AZ
Show answer and explanation
Correct answer: C
Explanation
Amazon ElastiCache for Redis is the best solution for a shopping cart use case that requires low-latency access to session data, fast updates, and seamless scaling for traffic spikes. Unlike DynamoDB or Aurora Serverless, ElastiCache is purpose-built for in-memory caching, making it ideal for high-speed, real-time applications such as shopping carts.
- A. Incorrect.
Amazon DynamoDB is a highly scalable NoSQL database that offers low-latency access and is suitable for many use cases, such as key-value and document storage. However, it is not optimized for in-memory caching or ultra-low latency, which is crucial for session data in a shopping cart.
- B. Incorrect.
Amazon Aurora Serverless provides an auto-scaling relational database solution, but it is not designed for high-speed in-memory caching or ultra-low latency operations. It is more suitable for transactional or analytics workloads.
- C. Correct.
Amazon ElastiCache for Redis is specifically designed to provide in-memory caching with ultra-low latency. It is ideal for session data, such as shopping cart functionality, especially during traffic spikes.
- D. Incorrect.
Amazon RDS with Multi-AZ provides high availability for relational databases but is not optimized for the low-latency, in-memory use case required for session caching in a shopping cart.