Google Professional Cloud Developer Practice Test 7
Question 60
An API rereads the same frequently requested product metadata from its relational database on every page view. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
- Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
Explanation
Correct Answer
B:The origin remains authoritative and read latency improves without losing business records when the cache is empty. This is evidence that the particular acceptance condition for memorystore cache for hot data has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
Incorrect Answers
A: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. A more direct response is to recognize that the origin remains authoritative and read latency improves without losing business records when the cache is empty.
C:Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. That result could support testing of Pub/Sub decoupled processing architecture: Publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. A more direct response is to recognize that the origin remains authoritative and read latency improves without losing business records when the cache is empty.
D:Operational document queries, large objects, and analytic scans use services aligned with their access patterns. That result could support testing of Firestore versus Cloud Storage versus BigQuery: Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. A more direct response is to recognize that the origin remains authoritative and read latency improves without losing business records when the cache is empty.
Question 61
A cache stores the only copy of important customer orders and loses records when entries expire. 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 hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
- Inspect stable request identifiers, processing checkpoints, retry codes, and the atomicity of business side effects.
- Inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity.
Explanation
Correct Answer
B:Inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior. This checks the actual operating conditions relevant to memorystore cache for hot data, rather than changing a service before the failure is understood. A focused follow-up is to introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback. 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. To examine the reported mechanism, the team instead needs to inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
C:Inspect stable request identifiers, processing checkpoints, retry codes, and the atomicity of business side effects. Transient retries and at-least-once event delivery do not imply exactly-once business effects without an idempotent application design. To examine the reported mechanism, the team instead needs to inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
D:Inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity. Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. To examine the reported mechanism, the team instead needs to inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
Question 62
A cache stores the only copy of important customer orders and loses records when entries expire. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore.
- Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
- Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies.
- Use Workload Identity Federation for GKE to provide keyless workload access limited to intended Google resources.
Explanation
Correct Answer
A:Cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore. This is the bounded design decision for memorystore cache for hot data, not a general request to widen access or replace unrelated resources. Before rollout, inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior. A cache stores the only copy of important customer orders and loses records when entries expire. The team is choosing a sustainable solution.
Incorrect Answers
B:Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls. This design addresses service mesh versus network policy, where network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. It cannot substitute for the required control: cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore.
C:Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies. This design addresses backend health and failure routing, where a healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. It cannot substitute for the required control: cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore.
D:Use Workload Identity Federation for GKE to provide keyless workload access limited to intended Google resources. This design addresses GKE Workload Identity Federation, where GKE Workload Identity Federation associates Kubernetes workload identity with Google IAM permissions without embedding service-account private keys in containers. It cannot substitute for the required control: cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore.
Question 63
A cache stores the only copy of important customer orders and loses records when entries expire. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Benchmark representative clients and validate the region of every persistent data replica and downstream dependency.
- Bind the Pod to a dedicated Kubernetes ServiceAccount and grant narrowly scoped cloud permissions to the corresponding principal.
- Configure caller identity to request a token with the intended audience and test authorized and unauthorized calls.
- Introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback.
Explanation
Correct Answer
D:Introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback. An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. Validate the change by checking that the origin remains authoritative and read latency improves without losing business records when the cache is empty. An approved limited change can be tested in a safe environment.
Incorrect Answers
A:Benchmark representative clients and validate the region of every persistent data replica and downstream dependency. This action changes a different concern, regional latency and data placement. It addresses a different dependency from memorystore cache for hot data.
B:Bind the Pod to a dedicated Kubernetes ServiceAccount and grant narrowly scoped cloud permissions to the corresponding principal. This action changes a different concern, GKE Workload Identity Federation. It addresses a different dependency from memorystore cache for hot data.
C:Configure caller identity to request a token with the intended audience and test authorized and unauthorized calls. This action changes a different concern, Cloud Run service-to-service identity tokens. It addresses a different dependency from memorystore cache for hot data.
Question 64
A cache stores the only copy of important customer orders and loses records when entries expire. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
- Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
- The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
Explanation
Correct Answer
D:The origin remains authoritative and read latency improves without losing business records when the cache is empty. This is evidence that the particular acceptance condition for memorystore cache for hot data has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior. A cache stores the only copy of important customer orders and loses records when entries expire. The team has tried a correction.
Incorrect Answers
A: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. The reported condition is about memorystore cache for hot data, not this adjacent change.
B:Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract. That result could support testing of backend health and failure routing: A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. The reported condition is about memorystore cache for hot data, not this adjacent change.
C:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. It would not establish the success condition for memorystore cache for hot data. The reported condition is about memorystore cache for hot data, not this adjacent change.
Question 65
A product price update is committed but users continue seeing an old price stored in a long-lived cache. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect CI issuer claims, Workload Identity Pool provider trust, audience, and target service account permissions.
- Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior.
- Inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical.
- Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
Explanation
Correct Answer
D:Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent. This checks the actual operating conditions relevant to cache freshness and invalidation, rather than changing a service before the failure is understood. A focused follow-up is to invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
Incorrect Answers
A: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. This is not the decisive inspection for cache freshness and invalidation.
B:Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior. Affinity influences routing preferences but cannot guarantee durable state or prevent all changes in backend selection. This is not the decisive inspection for cache freshness and invalidation.
C:Inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. This is not the decisive inspection for cache freshness and invalidation.
Question 66
A product price update is committed but users continue seeing an old price stored in a long-lived cache. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule.
- Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
- Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
- Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal.
Explanation
Correct Answer
A:Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule. Before rollout, inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
Incorrect Answers
B:Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials. This design addresses identity Platform end-user sign-in, where end-user authentication and service-to-service IAM authentication are distinct trust boundaries requiring different tokens and policies. That may help elsewhere, but it does not make the change required for cache freshness and invalidation.
C:Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit. This design addresses API rate limiting and request quota, where rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. That may help elsewhere, but it does not make the change required for cache freshness and invalidation.
D:Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal. For this case, 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 cache freshness and invalidation.
Question 67
A product price update is committed but users continue seeing an old price stored in a long-lived cache. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
- Enforce a bounded API policy and test a normal client alongside an intentionally over-budget client.
- Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
- Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
Explanation
Correct Answer
A:Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content. Cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. Validate the change by checking that the latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
Incorrect Answers
B:Enforce a bounded API policy and test a normal client alongside an intentionally over-budget client. This action changes a different concern, API rate limiting and request quota. A more direct response is to recognize that invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
C:Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors. This action changes a different concern, backend health and failure routing. A more direct response is to recognize that invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
D:Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer. This action changes a different concern, external application load balancer routing. A more direct response is to recognize that invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
Question 68
A product price update is committed but users continue seeing an old price stored in a long-lived cache. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The selected datastore sustains the required transaction and read/write semantics under tested scale and recovery conditions.
- Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material.
- Over-budget requests are throttled while healthy clients remain within the service capacity budget.
- The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
Explanation
Correct Answer
D:The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries. This is evidence that the particular acceptance condition for cache freshness and invalidation has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
Incorrect Answers
A:The selected datastore sustains the required transaction and read/write semantics under tested scale and recovery conditions. That result could support testing of Cloud SQL versus Spanner versus Bigtable: Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. The case instead calls for the following: the latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
B:Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material. The case instead calls for the following: the latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
C:Over-budget requests are throttled while healthy clients remain within the service capacity budget. That result could support testing of API rate limiting and request quota: Rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. The case instead calls for the following: the latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
Question 69
A multitenant API caches a user-specific response under a key containing only the public endpoint path. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
- Inspect stable request identifiers, processing checkpoints, retry codes, and the atomicity of business side effects.
- Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
Explanation
Correct Answer
D:Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent. This checks the actual operating conditions relevant to cache freshness and invalidation, rather than changing a service before the failure is understood. A focused follow-up is to invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy. A product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. It does not isolate the cache freshness and invalidation issue described.
B: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. It does not isolate the cache freshness and invalidation issue described.
C:Inspect stable request identifiers, processing checkpoints, retry codes, and the atomicity of business side effects. Transient retries and at-least-once event delivery do not imply exactly-once business effects without an idempotent application design. It does not isolate the cache freshness and invalidation issue described.
Question 70
A multitenant API caches a user-specific response under a key containing only the public endpoint path. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Keep critical session state in an appropriate shared durable store and use affinity only as a performance optimization where justified.
- Use a dedicated runtime service account with minimum required roles and keyless Application Default Credentials.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
- Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule.
Explanation
Correct Answer
D:Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule. Before rollout, inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent. A multitenant API caches a user-specific response under a key containing only the public endpoint path. The team is choosing a sustainable solution.
Incorrect Answers
A:Keep critical session state in an appropriate shared durable store and use affinity only as a performance optimization where justified. This design addresses stateless service session design, where autoscaled instances can be ephemeral; affinity does not replace durable shared state or safe per-user authorization. It addresses a different dependency from cache freshness and invalidation.
B: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. It addresses a different dependency from cache freshness and invalidation.
C:Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access. This design addresses Cloud SQL versus Spanner versus Bigtable, where Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. It addresses a different dependency from cache freshness and invalidation.