Google Professional Cloud Developer Practice Test 14
Question 130
A low-traffic API pays for always-warm capacity far beyond its latency service-level objective. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal.
- Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
- Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
- Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access.
Explanation
Correct Answer
C:Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance. In this scenario, a low-traffic API pays for always-warm capacity far beyond its latency service-level objective. Before rollout, inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
Incorrect Answers
A:Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal. A more direct response is to set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
B:Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries. This design addresses Firestore versus Cloud Storage versus BigQuery, where document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. A more direct response is to set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
D:Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access. This design addresses private VPC egress from Cloud Run, where private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. A more direct response is to set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
Question 131
A low-traffic API pays for always-warm capacity far beyond its latency service-level objective. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances.
- Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
Explanation
Correct Answer
A:Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls. In this scenario, a low-traffic API pays for always-warm capacity far beyond its latency service-level objective. Validate the change by checking that traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
Incorrect Answers
B:Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. This action changes a different concern, Firestore versus Cloud Storage versus BigQuery. The case instead calls for the following: measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
C:Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances. This action changes a different concern, stateless service session design. The case instead calls for the following: measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
D:Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements. This action changes a different concern, API Gateway versus Apigee responsibilities. The case instead calls for the following: measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
Question 132
A low-traffic API pays for always-warm capacity far beyond its latency service-level objective. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
- Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material.
- The application reaches authorized private resources without unintended public exposure or blanket networking changes.
- The service meets throughput and latency targets without overloading a single container or creating unnecessary instances.
Explanation
Correct Answer
A:Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. This is evidence that the particular acceptance condition for Cloud Run scaling and cost guardrails has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
Incorrect Answers
B:Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material. In this case, the outcome to verify is that traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. It cannot substitute for the required control: traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
C:The application reaches authorized private resources without unintended public exposure or blanket networking changes. That result could support testing of private VPC egress from Cloud Run: Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. It cannot substitute for the required control: traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
D:The service meets throughput and latency targets without overloading a single container or creating unnecessary instances. In this case, the outcome to verify is that traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. It cannot substitute for the required control: traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
Question 133
An expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect secret resource permissions, runtime version selection, rotation timing, and how the application loads values.
- Inspect CI issuer claims, Workload Identity Pool provider trust, audience, and target service account permissions.
- Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Explanation
Correct Answer
C:Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing. This checks the actual operating conditions relevant to Cloud Run scaling and cost guardrails, rather than changing a service before the failure is understood. A focused follow-up is to measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect secret resource permissions, runtime version selection, rotation timing, and how the application loads values. Secret Manager stores and versions application secret values; ordinary source repositories and world-readable configuration are unsuitable secret stores. The first evidence should address cloud run scaling and cost guardrails, not this separate diagnostic path.
B:Inspect CI issuer claims, Workload Identity Pool provider trust, audience, and target service account permissions. Federation trusts verified external identity claims under explicit conditions instead of exposing long-lived service account private keys. The first evidence should address cloud run scaling and cost guardrails, not this separate diagnostic path.
D:Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives. Spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The first evidence should address cloud run scaling and cost guardrails, not this separate diagnostic path.
Question 134
An expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use revision-specific traffic allocation to stage releases with an available rollback to the previous working revision.
- Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
- Use a dedicated runtime service account with minimum required roles and keyless Application Default Credentials.
- Distribute eligible components across failure domains and plan data failover matching actual service replication guarantees.
Explanation
Correct Answer
B:Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance. In this scenario, an expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. Before rollout, inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
Incorrect Answers
A:Use revision-specific traffic allocation to stage releases with an available rollback to the previous working revision. This design addresses Cloud Run revision traffic splitting, where Cloud Run revisions are immutable; traffic splitting and revision tags let teams stage, test, and reverse changes without editing an existing revision. The reported condition is about cloud run scaling and cost guardrails, not this adjacent change.
C:Use a dedicated runtime service account with minimum required roles and keyless Application Default Credentials. This design addresses service account and least-privilege API identity, where service identities and IAM roles authorize Google Cloud APIs; embedding reusable private keys is not necessary for managed runtime credentials. The reported condition is about cloud run scaling and cost guardrails, not this adjacent change.
D:Distribute eligible components across failure domains and plan data failover matching actual service replication guarantees. This design addresses zonal and regional resiliency, where spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The reported condition is about cloud run scaling and cost guardrails, not this adjacent change.
Question 135
An expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
- Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior.
Explanation
Correct Answer
B:Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls. In this scenario, an expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. Validate the change by checking that traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
Incorrect Answers
A:Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles. This action changes a different concern, identity Platform end-user sign-in. Applying it first would leave cloud run scaling and cost guardrails unresolved.
C:Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. This action changes a different concern, Firestore versus Cloud Storage versus BigQuery. Applying it first would leave cloud run scaling and cost guardrails unresolved.
D:Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior. This action changes a different concern, REST and gRPC contract choice. Applying it first would leave cloud run scaling and cost guardrails unresolved.
Question 136
An expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
- Measured production traffic follows the configured split and can be restored to a prior healthy revision.
- The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
- Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
Explanation
Correct Answer
D:Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. This is evidence that the particular acceptance condition for Cloud Run scaling and cost guardrails has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing. An expensive data export endpoint scales uncontrollably when a burst of requests consumes high memory per instance. The team has tried a correction.
Incorrect Answers
A:Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated. That result could support testing of regional latency and data placement: A product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. That may help elsewhere, but it does not make the change required for cloud run scaling and cost guardrails.
B:Measured production traffic follows the configured split and can be restored to a prior healthy revision. That result could support testing of Cloud Run revision traffic splitting: Cloud Run revisions are immutable; traffic splitting and revision tags let teams stage, test, and reverse changes without editing an existing revision. That may help elsewhere, but it does not make the change required for cloud run scaling and cost guardrails.
C:The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries. That result could support testing of cache freshness and invalidation: Cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. That may help elsewhere, but it does not make the change required for cloud run scaling and cost guardrails.
Question 137
A single-zone worker fleet becomes unavailable when the underlying availability zone experiences a failure. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
- Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics.
Explanation
Correct Answer
A:Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives. This checks the actual operating conditions relevant to zonal and regional resiliency, rather than changing a service before the failure is understood. A focused follow-up is to test the supported failover path with representative dependent services and measure recovery time and data loss.
Incorrect Answers
B:Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent. Cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. The more informative check is to inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
C:Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. The more informative check is to inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
D:Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics. Cloud Run concurrency bounds concurrent requests handled by an instance; optimal settings depend on whether its code is CPU-bound, I/O-bound, or stateful. The more informative check is to inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Question 138
A single-zone worker fleet becomes unavailable when the underlying availability zone experiences a failure. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required.
- Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
- Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity.
- Distribute eligible components across failure domains and plan data failover matching actual service replication guarantees.
Explanation
Correct Answer
D:Distribute eligible components across failure domains and plan data failover matching actual service replication guarantees. Spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. Before rollout, inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Incorrect Answers
A:Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required. For this case, spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The case instead calls for the following: distribute eligible components across failure domains and plan data failover matching actual service replication guarantees.
B:Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance. For this case, spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The case instead calls for the following: distribute eligible components across failure domains and plan data failover matching actual service replication guarantees.
C:Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity. For this case, spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The case instead calls for the following: distribute eligible components across failure domains and plan data failover matching actual service replication guarantees.
Question 139
A single-zone worker fleet becomes unavailable when the underlying availability zone experiences a failure. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Enable supported affinity only for an evaluated benefit, and test revision migration with independent session persistence.
- Configure the intended network and selected egress policy, then validate access to private and public dependencies.
- Test the supported failover path with representative dependent services and measure recovery time and data loss.
- Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
Explanation
Correct Answer
C:Test the supported failover path with representative dependent services and measure recovery time and data loss. Spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. Validate the change by checking that the application can recover from the specified fault within its recovery-time and recovery-point objectives.
Incorrect Answers
A:Enable supported affinity only for an evaluated benefit, and test revision migration with independent session persistence. This action changes a different concern, session affinity limitations. It cannot substitute for the required control: test the supported failover path with representative dependent services and measure recovery time and data loss.
B:Configure the intended network and selected egress policy, then validate access to private and public dependencies. This action changes a different concern, private VPC egress from Cloud Run. It cannot substitute for the required control: test the supported failover path with representative dependent services and measure recovery time and data loss.
D:Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls. This action changes a different concern, Cloud Run scaling and cost guardrails. It cannot substitute for the required control: test the supported failover path with representative dependent services and measure recovery time and data loss.
Question 140
A single-zone worker fleet becomes unavailable when the underlying availability zone experiences a failure. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
- Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
- The application can recover from the specified fault within its recovery-time and recovery-point objectives.
- Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
Explanation
Correct Answer
C:The application can recover from the specified fault within its recovery-time and recovery-point objectives. This is evidence that the particular acceptance condition for zonal and regional resiliency has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Incorrect Answers
A:Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. That result could support testing of external application load balancer routing: Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. It addresses a different dependency from zonal and regional resiliency.
B:Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. That result could support testing of identity Platform end-user sign-in: End-user authentication and service-to-service IAM authentication are distinct trust boundaries requiring different tokens and policies. It addresses a different dependency from zonal and regional resiliency.
D:Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property. That result could support testing of service mesh versus network policy: Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. It addresses a different dependency from zonal and regional resiliency.