Google Cloud Associate Cloud Engineer — Question 55
You want to run a single caching HTTP reverse proxy on GCP for a latency-sensitive website. This specific reverse proxy consumes almost no CPU. You want to have a 30-GB in-memory cache, and need an additional 2 GB of memory for the rest of the processes. You want to minimize cost. How should you run this reverse proxy?
Answer options
- A. Create a Cloud Memorystore for Redis instance with 32-GB capacity.
- B. Run it on Compute Engine, and choose a custom instance type with 6 vCPUs and 32 GB of memory.
- C. Package it in a container image, and run it on Kubernetes Engine, using n1-standard-32 instances as nodes.
- D. Run it on Compute Engine, choose the instance type n1-standard-1, and add an SSD persistent disk of 32 GB.
Correct answer: A
Explanation
The correct answer is A because Cloud Memorystore for Redis is specifically designed for low-latency, in-memory caching, which meets the requirements of your reverse proxy. Option B is incorrect as it involves unnecessary CPU resources, and C is more complex and costly than needed. Option D does not utilize in-memory caching effectively and adds unnecessary disk costs.