Q70 — AWS SAA-C03 Ch.14

Question 70 of 100 | ← Chapter 14

Q1070. A company is migrating an online marketplace application from a mainframe system to an Auto Scaling group of Amazon EC2 instances. The EC2 instances access an Amazon Aurora cluster. The application requires a scalable, persistent caching solution to store the results of in-progress transactions and SQL queries.Which solution will meet these requirements?

Correct Answer: A. Use an Amazon ElastiCache (Redis OSS) cluster to serve transaction and query results.

Explanation

The best solution to provide a scalable, persistent caching solution for the online marketplace applicationis:A. Use an Amazon ElastiCache (Redis OSS) cluster to serve transaction and query results.Explanation:- Amazon ElastiCache (Redis OSS): Redis is well-suited for caching both transaction data and SQL query results due to its in-memory data structure store, which provides low-latency access. It also supports persistence options, allowing you to save data to disk if needed, making it suitable for storing in-progress transactions.Other Options:- B. Use an Amazon CloudFront distribution with an Amazon S3 bucket as the origin: CloudFront is primarily used for content delivery and is not ideal for caching database query results or transaction data. Additionally, S3 is not suited for real-time transactional data.- C. Use an Amazon ElastiCache (Memcached) cluster: While Memcached can also be used for caching, it does not provide the persistence features that Redis offers. For in-progress transactions, Redis is a more suitable choice.- D. Use an Amazon ElastiCache (Redis OSS) cluster to cache the transactions. Add an Amazon EC2 instance store volume to the EC2 instances for query result caching: This option introduces unnecessary complexity. Using both Redis and an instance store volume may not be needed since Redis can serve both purposes effectively.Conclusion:Option A is the most appropriate choice, as it utilizes a managed caching solution that offers the necessary scalability, persistence, and low-latency access for both transaction and query results in the application.