exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 62 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 62
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jzh
Highly Voted 4 years, 6 months ago
Go to cloud console and create instance select Memorystore with Basic tier, select us-central1 and us-central1-a, and capacity 32GB, the cost estimate is $0.023/GB/hr select VM instance with custom machine type with 6 vCPUs and 32 GB memory, the same region and zone as Memorystore setting, the cost estimate is $0.239/hr Option B will definitely cost more as it adds on CPU usage cost even it uses little in this scenario, but still charge you. So answer is A from real practice example.
upvoted 55 times
SSPC
4 years, 6 months ago
I agree with you
upvoted 1 times
...
Rothmansua
3 years, 4 months ago
and what about HTTP, how are you supporting that with Redis?
upvoted 2 times
obeythefist
3 years ago
A quick Bing search shows a number of solutions for caching HTTP services with Redis.
upvoted 2 times
smarty_arse
2 years, 8 months ago
Who uses Bing at this present day and age?
upvoted 12 times
RNSS
2 years, 3 months ago
believe me it is very good and clean. When I was doing my research I have used both google and bing. and find bing as more trusted and complete answer.
upvoted 2 times
...
...
...
...
mexblood1
4 years, 5 months ago
Using pricing calculator matching 730 hrs per month for both.. Memorystore is 537.28 per month and vm (6 cpus 32 gb memory) is 174.41 per month. So vm is still cheaper even with 6 cpus.
upvoted 8 times
[Removed]
4 years, 5 months ago
I agree its cheaper, but 2 drawbacks, 1 hit latency, 2 you need to install cache plain won't help even if check. So still think A.
upvoted 3 times
[Removed]
4 years, 5 months ago
Typo correct my statements. There are 2 issues If you create a VM how every cheap there will be a hit with latency when communicating with it. Second, you will need to install/implement a caching system on that. Whereas cloud memorystore for redis is designed for the sole purpose of HTTP caching which has very low latency compared to any other solution we are thinking of doing.
upvoted 3 times
...
...
...
FenixRa73
4 years, 1 month ago
$0.023 * 32 = $0.736 is it cheaper?
upvoted 4 times
...
...
ESP_SAP
Highly Voted 4 years, 6 months ago
Correct Answer should be A: The question mention "You want to have a 30-GB in-memory cache, and need an additional 2 GB of memory for the rest of the processes" What is Google Cloud Memorystore? Overview. Cloud Memorystore for Redis is a fully managed Redis service for Google Cloud Platform. Applications running on Google Cloud Platform can achieve extreme performance by leveraging the highly scalable, highly available, and secure Redis service without the burden of managing complex Redis deployments.
upvoted 35 times
ESP_SAP
4 years, 6 months ago
Just to complement the answer: We are looking for "latency-sensitive website" What it's good for Memorystore for Redis provides a fast, in-memory store for use cases that require fast, real-time processing of data. From simple caching use cases to real time analytics, Memorystore for Redis provides the performance you need. Caching: Cache is an integral part of modern application architectures. Memorystore for Redis provides low latency access and high throughput for heavily accessed data, compared to accessing the data from a disk based backend store. Session management, frequently accessed queries, scripts, and pages are common examples of caching. https://cloud.google.com/memorystore/docs/redis/redis-overview#what_its_good_for
upvoted 21 times
[Removed]
4 years, 5 months ago
I agree with your reasoning. Given that the question stresses that this is for a 'latency sensitive website', that's a clue that Redis is part of the answer. Even if spinning up a similarly sized VM were more cost effective, I can't find any documentation that this would provide sufficiently low latency as a memory cache. Yes, you want to keep costs low, but not if it causes your latency-sensitive website problems. Thus I agree that option A is the answer.
upvoted 2 times
magistrum
4 years, 2 months ago
Agree, don't think anything you create with the Compute Engine will meet the "You want to have a 30-GB in-memory cache" requirement...that's a very different technology
upvoted 2 times
...
...
...
...
vaclavbenes1
Most Recent 3 weeks, 4 days ago
Selected Answer: B
Both Gemini and Claude.ai wotes for B. You need to run a reverse proxy server in this can you can eliminate A.
upvoted 1 times
...
Sekar_1992
2 months ago
Selected Answer: B
You need 30 GB of in-memory cache plus an additional 2 GB for other processes. The solution should minimize cost while fulfilling the memory requirements. Option Analysis: A. Create a Cloud Memorystore for Redis instance with 32-GB capacity: Incorrect: While Memorystore is designed for caching, it does not meet the requirement to host an HTTP reverse proxy. Memorystore is only a caching layer, not a compute platform for running processes. B. Run it on Compute Engine with a custom instance type: Correct: Compute Engine allows you to specify a custom machine type tailored to your exact resource requirements (e.g., 6 vCPUs and 32 GB of memory). This minimizes cost compared to using a predefined machine type. The reverse proxy can run directly on the Compute Engine instance, and the memory requirements are fulfilled.
upvoted 2 times
...
mnasruul
2 months, 3 weeks ago
Selected Answer: B
Im choice B because the question is `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`, they need additional 2 GB of memory for the rest of the processes and maybe cannot running at Redis.
upvoted 2 times
...
Noni_11
3 months ago
Selected Answer: D
Las razones por las que cada opción es o no adecuada: A: INCORRECTA. Cloud Memorystore es un servicio de caché administrado, no puede ejecutar un proxy HTTP. B: INCORRECTA. 6 vCPUs es excesivo ya que se especifica que consume casi nada de CPU. Sería un desperdicio de recursos y dinero. C: INCORRECTA. GKE sería una sobrecarga innecesaria para una única instancia y n1-standard-32 es extremadamente sobredimensionado. D: CORRECTA. Una n1-standard-1 (1 vCPU, 3.75GB RAM) con un disco SSD de 32GB es la opción más económica que cumple los requisitos mínimos necesarios para el proxy. La D es la correcta porque es la opción más económica que proporciona los recursos necesarios. Un SSD persistente puede usarse para swap si se necesita más memoria, aunque no será tan rápido como la memoria RAM.
upvoted 1 times
...
user263263
3 months, 1 week ago
Selected Answer: B
A. Redis isn't used as storage for caching proxies - it is a kind of key-value store. B. fulfills the requirements, e.g. take nginx use a RAM disk for caching C. wrong machine type (32 vCPU), don't need k8s D. technically possible, but does not fulfill "in memory" requirement
upvoted 1 times
...
nubelukita45852
5 months, 2 weeks ago
Selected Answer: D
La n1-standard-1 es una instancia de bajo costo con 1 vCPU y 3.75 GB de memoria, suficiente para los procesos adicionales del proxy. Dado que el proxy inverso prácticamente no consume CPU, no es necesario optar por una instancia más grande. El disco persistente SSD de 32 GB puede actuar como almacenamiento para la caché en lugar de usar costosas soluciones en memoria, lo que ayuda a minimizar costos, mientras proporciona un almacenamiento rápido, suficiente para el sitio sensible a la latencia.
upvoted 2 times
...
spatters
7 months, 1 week ago
A might be a fine answer, except that Redis is not an http reverse proxy. It is a data cache. So A, regardless of the cost, does not work for this use case.
upvoted 1 times
...
subha.elumalai
9 months, 2 weeks ago
Correct Answer:B
upvoted 1 times
...
gsmasad
1 year, 4 months ago
Selected Answer: A
A is correct because The question mention "You want to have a 30-GB in-memory cache, and Redis is inmemory
upvoted 1 times
...
ekta25
1 year, 5 months ago
B. Run it on Compute Engine, and choose a custom instance type with 6 vCPUs and 32 GB of memory.
upvoted 1 times
...
Captain1212
1 year, 6 months ago
Selected Answer: A
A is the correct as redis for low latency
upvoted 1 times
...
marcus021
1 year, 8 months ago
Selected Answer: A
Low latency should be A.
upvoted 2 times
...
sana_sree
1 year, 9 months ago
correct answer is A https://www.youtube.com/watch?v=a1p1pB375Ik
upvoted 1 times
...
Selected Answer: A
ANSWER A is the most cost-effective solution for running a caching HTTP reverse proxy on GCP. Cloud Memorystore for Redis is a managed service that provides an in-memory cache for your applications. It offers a high throughput and low latency access to the Redis protocol. Cloud Memorystore offers an SLA of 99.9% availability and automatic failover for Redis instances. In this case, a 32-GB Redis instance is sufficient to accommodate the 30-GB cache and the additional 2 GB of memory required for the rest of the processes. This solution is highly scalable and allows you to increase the size of the Redis instance as your needs grow.
upvoted 7 times
INCORRECT: ANSWER B is not a cost-effective solution since it requires a custom instance type with 6 vCPUs and 32 GB of memory, which is over-provisioned for a caching HTTP reverse proxy. ANSWER C is also not a cost-effective solution since it uses Kubernetes Engine, which has a higher management overhead and may not be necessary for a single caching HTTP reverse proxy. Additionally, using n1-standard-32 instances as nodes is over-provisioned for the requirements of the caching HTTP reverse proxy. ANSWER D is not a viable solution since the instance type n1-standard-1 only provides 3.75 GB of memory, which is insufficient for the 30-GB cache and the additional 2 GB of memory required for the rest of the processes. Adding an SSD persistent disk of 32 GB will not provide enough memory for the reverse proxy.
upvoted 4 times
...
...
kaisehhop
2 years ago
Selected Answer: A
A. Create a Cloud Memorystore for Redis instance with 32-GB capacity is the recommended option. This option provides the required memory and is cost-effective since the proxy requires almost no CPU. Cloud Memorystore for Redis is designed specifically for in-memory caching, making it the best choice for your use case.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago