Google Professional Cloud Developer Practice Test 12
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.
Question 111
A team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. 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.
- Deploy the new revision without full cutover, send a limited traffic share, and monitor error and latency differences.
- Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
- Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances.
Explanation
Correct Answer
C:Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events. In this scenario, a team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. Validate the change by checking that only expected events invoke the handler and their metadata is validated before a side effect occurs.
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: create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
B:Deploy the new revision without full cutover, send a limited traffic share, and monitor error and latency differences. This action changes a different concern, Cloud Run revision traffic splitting. It cannot substitute for the required control: create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
D: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. It cannot substitute for the required control: create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
Question 112
A team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Only expected events invoke the handler and their metadata is validated before a side effect occurs.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
- The Pod reaches authorized APIs but cannot access unrelated data after secrets containing static keys are removed.
- Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
Explanation
Correct Answer
A: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. A team sends every infrastructure event to one handler then discovers it cannot distinguish intended event types or destinations. The team has tried a correction.
Incorrect Answers
B: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. It addresses a different dependency from eventarc event routing design.
C:The Pod reaches authorized APIs but cannot access unrelated data after secrets containing static keys are removed. That result could support testing of GKE Workload Identity Federation: GKE Workload Identity Federation associates Kubernetes workload identity with Google IAM permissions without embedding service-account private keys in containers. It addresses a different dependency from eventarc event routing design.
D: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 eventarc event routing design.
Question 113
An application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
- Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics.
- Inspect client interoperability requirements, message schemas, transport capabilities, latency, and streaming needs.
- Inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
Explanation
Correct Answer
D:Inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out. This checks the actual operating conditions relevant to Workflows versus Cloud Tasks versus Scheduler, rather than changing a service before the failure is understood. A focused follow-up is to implement the matching service, record its retry or schedule settings, and verify failure and completion paths.
Incorrect Answers
A:Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. The relevant dependency is workflows versus cloud tasks versus scheduler, which this inspection alone does not establish.
B: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 relevant dependency is workflows versus cloud tasks versus scheduler, which this inspection alone does not establish.
C:Inspect client interoperability requirements, message schemas, transport capabilities, latency, and streaming needs. REST and gRPC are different interface and transport approaches; a protocol choice must match actual client support and the API contract. The relevant dependency is workflows versus cloud tasks versus scheduler, which this inspection alone does not establish.
Question 114
An application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
- Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage.
- Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
- Choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers.
Explanation
Correct Answer
D:Choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers. In this scenario, an application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. Before rollout, inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
Incorrect Answers
A:Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary. This design addresses API Gateway versus Apigee responsibilities, where a basic managed gateway and a full API management platform overlap in routing but differ in breadth of policy, analytics, and developer lifecycle. Applying it first would leave workflows versus cloud tasks versus scheduler unresolved.
B:Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage. Applying it first would leave workflows versus cloud tasks versus scheduler unresolved.
C:Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies. This design addresses external application load balancer routing, where application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. Applying it first would leave workflows versus cloud tasks versus scheduler unresolved.
Question 115
An application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. 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.
- Bind the Pod to a dedicated Kubernetes ServiceAccount and grant narrowly scoped cloud permissions to the corresponding principal.
- Implement the matching service, record its retry or schedule settings, and verify failure and completion paths.
- Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior.
Explanation
Correct Answer
C:Implement the matching service, record its retry or schedule settings, and verify failure and completion paths. In this scenario, an application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. Validate the change by checking that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
Incorrect Answers
A: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. That may help elsewhere, but it does not make the change required for workflows versus cloud tasks versus scheduler.
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. That may help elsewhere, but it does not make the change required for workflows versus cloud tasks versus scheduler.
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. That may help elsewhere, but it does not make the change required for workflows versus cloud tasks versus scheduler.
Question 116
An application must run a multi-step approval process, but developers consider firing independent cron requests in arbitrary order. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Measured production traffic follows the configured split and can be restored to a prior healthy revision.
- Only authorized workloads retrieve approved secret versions, and the service adopts rotations according to policy.
- Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
- The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
Explanation
Correct Answer
D:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. This is evidence that the particular acceptance condition for Workflows versus Cloud Tasks versus Scheduler has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
Incorrect Answers
A: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. A more direct response is to recognize that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
B:Only authorized workloads retrieve approved secret versions, and the service adopts rotations according to policy. In this case, the outcome to verify is that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. A more direct response is to recognize that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
C: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. A more direct response is to recognize that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
Question 117
A user asks to enqueue one HTTP task with retry and backoff, yet a team chooses a globally broadcast event topic. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
- Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity.
- Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
- Inspect artifact signatures or attestations, policy enforcement point, provenance, and admitted image digest.
Explanation
Correct Answer
A:Inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out. This checks the actual operating conditions relevant to Workflows versus Cloud Tasks versus Scheduler, rather than changing a service before the failure is understood. A focused follow-up is to implement the matching service, record its retry or schedule settings, and verify failure and completion paths. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B:Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity. End-user authentication and service-to-service IAM authentication are distinct trust boundaries requiring different tokens and policies. To examine the reported mechanism, the team instead needs to inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
C: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. To examine the reported mechanism, the team instead needs to inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
D:Inspect artifact signatures or attestations, policy enforcement point, provenance, and admitted image digest. Artifact storage and verified deployment authorization are separate; Binary Authorization enforces policy based on artifact trust evidence. To examine the reported mechanism, the team instead needs to inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
Question 118
A user asks to enqueue one HTTP task with retry and backoff, yet a team chooses a globally broadcast event topic. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization.
- Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
- Choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers.
- Choose REST for broad HTTP compatibility or gRPC with protobuf when supported typed service contracts and streaming matter.
Explanation
Correct Answer
C:Choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers. The expected outcome is that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. Before rollout, inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out.
Incorrect Answers
A:Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization. This design addresses Cloud Run service-to-service identity tokens, where 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: choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers.
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. It cannot substitute for the required control: choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers.
D:Choose REST for broad HTTP compatibility or gRPC with protobuf when supported typed service contracts and streaming matter. This design addresses REST and gRPC contract choice, where REST and gRPC are different interface and transport approaches; a protocol choice must match actual client support and the API contract. It cannot substitute for the required control: choose Workflows for coordinated steps, Cloud Tasks for rate-controlled targeted jobs, and Cloud Scheduler for time-based triggers.
Question 119
A user asks to enqueue one HTTP task with retry and backoff, yet a team chooses a globally broadcast event topic. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Implement the matching service, record its retry or schedule settings, and verify failure and completion paths.
- Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances.
- Benchmark representative transactions and hot-key patterns in the chosen datastore before production migration.
- Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
Explanation
Correct Answer
A:Implement the matching service, record its retry or schedule settings, and verify failure and completion paths. Validate the change by checking that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
Incorrect Answers
B: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. It addresses a different dependency from workflows versus cloud tasks versus scheduler.
C:Benchmark representative transactions and hot-key patterns in the chosen datastore before production migration. This action changes a different concern, Cloud SQL versus Spanner versus Bigtable. It addresses a different dependency from workflows versus cloud tasks versus scheduler.
D:Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy. This action changes a different concern, Pub/Sub decoupled processing architecture. It addresses a different dependency from workflows versus cloud tasks versus scheduler.
Question 120
A user asks to enqueue one HTTP task with retry and backoff, yet a team chooses a globally broadcast event topic. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Checkout returns promptly and downstream jobs recover from subscriber outages without duplicate business effects.
- Measured production traffic follows the configured split and can be restored to a prior healthy revision.
- Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
- The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
Explanation
Correct Answer
D:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. This is evidence that the particular acceptance condition for Workflows versus Cloud Tasks versus Scheduler has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect whether the requirement is orchestration, point-to-point durable work, a fixed schedule, or an event fan-out. A user asks to enqueue one HTTP task with retry and backoff, yet a team chooses a globally broadcast event topic. The team has tried a correction.
Incorrect Answers
A: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. The reported condition is about workflows versus cloud tasks versus scheduler, not this adjacent change.
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. The reported condition is about workflows versus cloud tasks versus scheduler, not this adjacent change.
C:Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. In this case, the outcome to verify is that the workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. The reported condition is about workflows versus cloud tasks versus scheduler, not this adjacent change.