Google Cloud Professional Cloud Developer — Question 323

Your company manages an application that captures stock data in an internal database. You need to create an API that provides real-time stock data to users. You want to return stock data to users as quickly as possible, and you want your solution to be highly scalable. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because using Memorystore for Redis allows for quick access to frequently requested stock data, enhancing performance. This approach minimizes latency by serving from Redis first and only querying the internal database if the data isn't available, which is more efficient than querying a slower database for every request. The other options either do not prioritize speed or scalability as effectively as option D.