
Answer-first summary for fast verification
Answer: Use a Cloud Memorystore for Redis instance with 32-GB capacity.
**Correct Answer: B** - Cloud Memorystore for Redis is the optimal choice because it's a fully managed in-memory data store service designed for caching, offering high performance and low latency. It meets the memory requirements (30 GB for cache + 2 GB for processes) efficiently without unnecessary CPU allocation, making it cost-effective for your budget. **Why not others?** - **A**: While it meets memory needs, allocating 6 vCPUs is excessive for a proxy with low CPU usage, leading to unnecessary costs. - **C**: This option doesn't utilize in-memory caching and the n1-standard-1 instance may lack sufficient resources, failing to resolve latency issues. - **D**: Running the proxy on GKE with n1-standard-32 instances is overly complex and costly for the given requirements, especially when a managed service like Cloud Memorystore is available. For more details, visit [Google Cloud Memorystore](https://cloud.google.com/memorystore).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your website is facing latency issues, leading to customer dissatisfaction. A root cause analysis reveals that similar database queries are being repeated, contributing to the latency. To mitigate this, you're considering implementing a single caching HTTP reverse proxy on GCP that requires a 30 GB in-memory cache and an additional 2 GB of memory for other processes, with minimal CPU usage. Given a limited budget, what's the best way to deploy this reverse proxy?
A
Deploy the proxy on Compute Engine with a custom instance type of 6 vCPUs and 32 GB memory.
B
Use a Cloud Memorystore for Redis instance with 32-GB capacity.
C
Run the proxy on Compute Engine with instance type n1-standard-1, and add an SSD persistent disk of 32 GB.
D
Package the proxy in a container image and run it on GKE, using n1-standard-32 instances as nodes.
No comments yet.