Google Professional Cloud Developer Practice Test 11
Question 100
A checkout endpoint waits for slow reporting and notification services before confirming an otherwise successful order. 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.
- Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
- Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
Explanation
Correct Answer
B:Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. This is evidence that the particular acceptance condition for Pub/Sub decoupled processing architecture has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation.
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. Applying it first would leave pub/sub decoupled processing architecture unresolved.
C: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. Applying it first would leave pub/sub decoupled processing architecture unresolved.
D:The origin remains authoritative and read latency improves without losing business records when the cache is empty. That result could support testing of memorystore cache for hot data: An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. Applying it first would leave pub/sub decoupled processing architecture unresolved.
Question 101
An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
- Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation.
Explanation
Correct Answer
D:Inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation. This checks the actual operating conditions relevant to Pub/Sub decoupled processing architecture, rather than changing a service before the failure is understood. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect backend health status, health-check behavior, dependency errors, and actual request distribution. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. That check does not establish the specific cause behind pub/sub decoupled processing architecture.
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. That check does not establish the specific cause behind pub/sub decoupled processing architecture.
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. That check does not establish the specific cause behind pub/sub decoupled processing architecture.
Question 102
An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Treat session affinity as a best-effort routing optimization and keep correctness independent of instance or revision attachment.
- Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
- Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements.
- Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage.
Explanation
Correct Answer
B:Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously. The expected outcome is that checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. Before rollout, inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation. An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. The team is choosing a sustainable solution.
Incorrect Answers
A:Treat session affinity as a best-effort routing optimization and keep correctness independent of instance or revision attachment. This design addresses session affinity limitations, where affinity influences routing preferences but cannot guarantee durable state or prevent all changes in backend selection. A more direct response is to publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
C:Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements. This design addresses regional latency and data placement, where a product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. A more direct response is to publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
D:Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage. For this case, publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. A more direct response is to publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
Question 103
An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances.
- Implement the matching service, record its retry or schedule settings, and verify failure and completion paths.
- Persist a unique operation key before the side effect and test repeated messages and interrupted acknowledgments.
- Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
Explanation
Correct Answer
D:Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy. Publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. Validate the change by checking that checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. An approved limited change can be tested in a safe environment.
Incorrect Answers
A: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: persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
B:Implement the matching service, record its retry or schedule settings, and verify failure and completion paths. This action changes a different concern, Workflows versus Cloud Tasks versus Scheduler. The case instead calls for the following: persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
C:Persist a unique operation key before the side effect and test repeated messages and interrupted acknowledgments. This action changes a different concern, retry-safe application side effects. The case instead calls for the following: persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
Question 104
An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- 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.
- Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
- The allowed caller invokes the private service successfully while requests without valid identity are denied.
Explanation
Correct Answer
C:Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. This is evidence that the particular acceptance condition for Pub/Sub decoupled processing architecture has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation. An engineer wants a publisher to fail if an optional analytics consumer is temporarily offline, coupling unrelated services. The team has tried a correction.
Incorrect Answers
A:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. In this case, the outcome to verify is that checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects. It cannot substitute for the required control: checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
B:The origin remains authoritative and read latency improves without losing business records when the cache is empty. That result could support testing of memorystore cache for hot data: An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. It cannot substitute for the required control: checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
D:The allowed caller invokes the private service successfully while requests without valid identity are denied. That result could support testing of Cloud Run service-to-service identity tokens: Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. It cannot substitute for the required control: checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
Question 105
An application needs to react when an eligible Cloud Storage object is created without polling every bucket. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical.
- Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
- Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Explanation
Correct Answer
B:Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization. This checks the actual operating conditions relevant to Eventarc event routing design, rather than changing a service before the failure is understood.
Incorrect Answers
A: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. The first evidence should address eventarc event routing design, not this separate diagnostic path.
C: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 first evidence should address eventarc event routing design, 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 eventarc event routing design, not this separate diagnostic path.
Question 106
An application needs to react when an eligible Cloud Storage object is created without polling every bucket. 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.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
- Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
- Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
Explanation
Correct Answer
C:Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling. In this scenario, an application needs to react when an eligible Cloud Storage object is created without polling every bucket. Before rollout, inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
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. The reported condition is about eventarc event routing design, not this adjacent change.
B: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. The reported condition is about eventarc event routing design, not this adjacent change.
D:Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously. This design addresses Pub/Sub decoupled processing architecture, where publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. The reported condition is about eventarc event routing design, not this adjacent change.
Question 107
An application needs to react when an eligible Cloud Storage object is created without polling every bucket. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
- Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior.
- Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
- Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
Explanation
Correct Answer
A:Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events. In this scenario, an application needs to react when an eligible Cloud Storage object is created without polling every bucket. Validate the change by checking that only expected events invoke the handler and their metadata is validated before a side effect occurs.
Incorrect Answers
B: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 eventarc event routing design unresolved.
C: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. Applying it first would leave eventarc event routing design unresolved.
D: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 eventarc event routing design unresolved.
Question 108
An application needs to react when an eligible Cloud Storage object is created without polling every bucket. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
- The client can perform only the permitted operation before expiry, without direct bucket-wide IAM credentials.
- Only expected events invoke the handler and their metadata is validated before a side effect occurs.
- Authorized operations succeed while unrelated resource access is rejected under least privilege.
Explanation
Correct Answer
C:Only expected events invoke the handler and their metadata is validated before a side effect occurs. This is evidence that the particular acceptance condition for Eventarc event routing design has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
Incorrect Answers
A: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 eventarc event routing design.
B:The client can perform only the permitted operation before expiry, without direct bucket-wide IAM credentials. In this case, the outcome to verify is that only expected events invoke the handler and their metadata is validated before a side effect occurs. That may help elsewhere, but it does not make the change required for eventarc event routing design.
D:Authorized operations succeed while unrelated resource access is rejected under least privilege. That result could support testing of service account and least-privilege API identity: Service identities and IAM roles authorize Google Cloud APIs; embedding reusable private keys is not necessary for managed runtime credentials. That may help elsewhere, but it does not make the change required for eventarc event routing design.
Question 109
A team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. 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 hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
- Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
- Inspect CI issuer claims, Workload Identity Pool provider trust, audience, and target service account permissions.
Explanation
Correct Answer
C:Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization. This checks the actual operating conditions relevant to Eventarc event routing design, rather than changing a service before the failure is understood. 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. The more informative check is to inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
B:Inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior. An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. The more informative check is to inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
D: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 more informative check is to inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
Question 110
A team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
- Use Workload Identity Federation to exchange trusted external identity for short-lived Google credentials without downloaded keys.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
- Use revision-specific traffic allocation to stage releases with an available rollback to the previous working revision.
Explanation
Correct Answer
A:Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling. In this scenario, a team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. Before rollout, inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
Incorrect Answers
B:Use Workload Identity Federation to exchange trusted external identity for short-lived Google credentials without downloaded keys. This design addresses external CI Workload Identity Federation, where federation trusts verified external identity claims under explicit conditions instead of exposing long-lived service account private keys. The case instead calls for the following: use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
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. The case instead calls for the following: use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
D: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 case instead calls for the following: use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.