mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: A Cloud Run service calls external third-party…
A Cloud Run service calls external third-party APIs that have rate limits. Under burst traffic, the service spawns many concurrent instances, each making direct API calls, causing rate limit errors. What GCP pattern reduces API call volume without adding infrastructure?
⚠ Common exam trap
Many exam-takers confuse caching inbound responses (Cloud CDN) with caching outbound API responses (a pattern using Memorystore or similar), leading them to select Cloud CDN even though it cannot cache server-to-server calls.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Cache third-party API responses in Cloud Memorystore (Redis) with appropriate TTL
Caching third-party API responses in Cloud Memorystore (Redis) with an appropriate TTL reduces the number of outbound API calls by serving cached data to multiple concurrent Cloud Run instances. This directly addresses rate-limit errors without adding new infrastructure, as Memorystore is a managed in-memory cache that integrates seamlessly with Cloud Run via a VPC connector.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set Cloud Run max-concurrency to 1 so each instance handles one request
Why it's wrong here
Setting Cloud Run max-concurrency to 1 means each instance can handle only one request at a time, which forces the autoscaler to instantiate more instances to accommodate the same request volume. With each instance running its own copy of the application logic and making its own third-party API calls, the total number of outbound calls actually increases due to duplicated requests across instances. This magnifies the problem by multiplying the number of cold instances and independent API calls. It does nothing to reduce the number of calls per request, so it is the opposite of the desired effect.
- ✓
Cache third-party API responses in Cloud Memorystore (Redis) with appropriate TTL
Why this is correct
Caching third-party API responses in Cloud Memorystore (Redis) with an appropriate TTL is the correct solution because Memorystore is a shared, in-memory data store accessible to all Cloud Run instances. When one instance fetches a third-party response and caches it, subsequent requests from any instance can read the cached value, eliminating redundant outbound API calls and reducing both latency and API consumption. Setting a TTL (e.g., 60 seconds) balances data freshness with cache hit ratio, directly addressing the root cause of duplicate external requests. This is particularly effective for high-traffic services where the same third-party data is requested repeatedly.
- ✗
Enable Cloud CDN on the Cloud Run service to cache outbound requests
Why it's wrong here
Enabling Cloud CDN on the Cloud Run service only caches responses to inbound client requests that pass through the CDN before reaching Cloud Run. It has no visibility into outbound requests that Cloud Run instances make to third-party APIs, because those connections originate from inside the Google network and never traverse the CDN edge. Therefore, Cloud CDN cannot reduce the number of outbound third-party API calls; it would merely serve cached HTTP responses to your own users. The correct approach for outbound caching is a shared distributed cache like Cloud Memorystore.
- ✗
Migrate to Cloud Functions with a lower default concurrency limit
Why it's wrong here
Migrating to Cloud Functions with a lower default concurrency limit changes the execution model but does not alter the fact that every request still triggers a third-party API call unless responses are cached. A lower concurrency limit simply increases the number of function instances running in parallel, which can lead to even more duplicate outbound calls. The root cause—repeated identical API calls for the same data—remains untouched by migration or concurrency tuning. Only a shared cache, such as Cloud Memorystore, addresses the root cause by allowing multiple instances to reuse previously fetched responses.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
Key term
VPC
A Virtual Private Cloud (VPC) is a logically isolated section of a cloud provider's network where you can launch and manage resources like servers and databases with complete control over IP addressing, subnets, route tables, and security.
About these practice questions
This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.