Google Professional Cloud Developer Practice Test 75
Question 740
A nightly reconciliation must start at an agreed local business time, but the current cron job assumes UTC. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials.
- Temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics.
- The reconciliation triggers on the expected business schedule without duplicate side effects across instances.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
Explanation
Correct Answer
C:The reconciliation triggers on the expected business schedule without duplicate side effects across instances. This is evidence that the particular acceptance condition for Cloud Scheduler recurring trigger design has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once.
Incorrect Answers
A:The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials. In this case, the outcome to verify is that the reconciliation triggers on the expected business schedule without duplicate side effects across instances. The case instead calls for the following: the reconciliation triggers on the expected business schedule without duplicate side effects across instances.
B:Temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics. That result could support testing of exponential backoff on transient API errors: Backoff reduces coordinated retries after transient failures; not every error is retryable and repeatable side effects need idempotency. The case instead calls for the following: the reconciliation triggers on the expected business schedule without duplicate side effects across instances.
D:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this case, the outcome to verify is that the reconciliation triggers on the expected business schedule without duplicate side effects across instances. The case instead calls for the following: the reconciliation triggers on the expected business schedule without duplicate side effects across instances.
Question 741
A team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
- Inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services.
- Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
- Inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once.
Explanation
Correct Answer
D:Inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once. This checks the actual operating conditions relevant to Cloud Scheduler recurring trigger design, rather than changing a service before the failure is understood. A focused follow-up is to create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope. Spanner is a managed distributed relational database with strong transaction semantics, distinct from simple regional SQL instances and wide-column stores. It does not isolate the cloud scheduler recurring trigger design issue described.
B:Inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services. Metrics summarize behavior, logs describe events, and traces connect work across service boundaries; their combined context supports root-cause analysis. It does not isolate the cloud scheduler recurring trigger design issue described.
C:Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements. Client libraries wrap Google Cloud API transport and credentials, while documented REST and gRPC remain supported integration interfaces when applicable. It does not isolate the cloud scheduler recurring trigger design issue described.
Question 742
A team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Enable the required Google Cloud API in the correct project and separately grant minimum caller access.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
- Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
Explanation
Correct Answer
B:Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery. Before rollout, inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once.
Incorrect Answers
A:Enable the required Google Cloud API in the correct project and separately grant minimum caller access. This design addresses google Cloud API enablement and service identity, where service enablement and IAM authorization are separate prerequisites for Google Cloud API calls; one does not substitute for the other. It addresses a different dependency from cloud scheduler recurring trigger design.
C:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. For this case, Cloud Scheduler supplies scheduled triggers; exactly-once business execution still requires receiver-level idempotency. It addresses a different dependency from cloud scheduler recurring trigger design.
D:Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload. For this case, Cloud Scheduler supplies scheduled triggers; exactly-once business execution still requires receiver-level idempotency. It addresses a different dependency from cloud scheduler recurring trigger design.
Question 743
A team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
- Implement capped retry delays with a stable request key and simulate both 429 and permanent invalid-input failures.
- Wrap stock validation and update in a transaction and test parallel competing purchases.
- Define versioned workflow steps and exercise a successful path plus a downstream failure branch.
Explanation
Correct Answer
A:Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key. In this scenario, a team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. Validate the change by checking that the reconciliation triggers on the expected business schedule without duplicate side effects across instances.
Incorrect Answers
B:Implement capped retry delays with a stable request key and simulate both 429 and permanent invalid-input failures. This action changes a different concern, exponential backoff on transient API errors. The reported condition is about cloud scheduler recurring trigger design, not this adjacent change.
C:Wrap stock validation and update in a transaction and test parallel competing purchases. This action changes a different concern, Firestore transactional document updates. The reported condition is about cloud scheduler recurring trigger design, not this adjacent change.
D:Define versioned workflow steps and exercise a successful path plus a downstream failure branch. This action changes a different concern, Workflows multi-step service orchestration. The reported condition is about cloud scheduler recurring trigger design, not this adjacent change.
Question 744
A team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The reconciliation triggers on the expected business schedule without duplicate side effects across instances.
- The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content.
Explanation
Correct Answer
A:The reconciliation triggers on the expected business schedule without duplicate side effects across instances. This is evidence that the particular acceptance condition for Cloud Scheduler recurring trigger design has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once. A team duplicates a scheduled task on multiple app instances and creates several reconciliation runs for one day. The team has tried a correction.
Incorrect Answers
B:The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials. In this case, the outcome to verify is that the reconciliation triggers on the expected business schedule without duplicate side effects across instances. Applying it first would leave cloud scheduler recurring trigger design unresolved.
C:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this case, the outcome to verify is that the reconciliation triggers on the expected business schedule without duplicate side effects across instances. Applying it first would leave cloud scheduler recurring trigger design unresolved.
D:An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content. That result could support testing of metrics logs and distributed traces correlation: Metrics summarize behavior, logs describe events, and traces connect work across service boundaries; their combined context supports root-cause analysis. Applying it first would leave cloud scheduler recurring trigger design unresolved.
Question 745
A storage-triggered Cloud Run handler receives unexpected object-delete notifications because the trigger is not scoped correctly. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect object naming, authorized HTTP operation, expiry period, and identity allowed to generate signatures.
- Inspect subscription type, acknowledgment IDs, region and publisher message identity separately.
- Inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
- Inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
Explanation
Correct Answer
D:Inspect source provider, event type filters, service destination, trigger identity, and permission bindings. Success requires that only approved source events reach the endpoint with the expected authentication context. A focused follow-up is to configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
Incorrect Answers
A:Inspect object naming, authorized HTTP operation, expiry period, and identity allowed to generate signatures. Signed URLs grant time-limited object-level request capability, not durable user credentials or blanket public bucket access. That check does not establish the specific cause behind eventarc event-type filtering and authorization.
B:Inspect subscription type, acknowledgment IDs, region and publisher message identity separately. Pub/Sub exactly-once delivery applies to supported pull subscriptions within documented scope and cannot prevent independent duplicate publishes. That check does not establish the specific cause behind eventarc event-type filtering and authorization.
C:Inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change. Firestore transactions provide atomic coordinated document operations, but transaction retries require side-effect-safe application code. That check does not establish the specific cause behind eventarc event-type filtering and authorization.
Question 746
A storage-triggered Cloud Run handler receives unexpected object-delete notifications because the trigger is not scoped correctly. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Acknowledge only after durable processing and make the handler idempotent to expected redelivery.
- Follow pagination tokens until completion and request only supported required fields to reduce payload volume.
- Filter the supported event types and authorize the routing identity for only the intended service.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
Explanation
Correct Answer
C:Filter the supported event types and authorize the routing identity for only the intended service. Before rollout, inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
Incorrect Answers
A:Acknowledge only after durable processing and make the handler idempotent to expected redelivery. This design addresses Pub/Sub acknowledgments and redelivery, where Pub/Sub normally uses at-least-once delivery; missing or expired acknowledgment permits redelivery and requires consumer-side idempotency. A more direct response is to recognize that filter the supported event types and authorize the routing identity for only the intended service.
B:Follow pagination tokens until completion and request only supported required fields to reduce payload volume. This design addresses Cloud API pagination and field selection, where Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. A more direct response is to recognize that filter the supported event types and authorize the routing identity for only the intended service.
D:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. For this case, Eventarc event filters constrain selection while destination IAM controls delivery; a matching event does not bypass invoker authorization. A more direct response is to recognize that filter the supported event types and authorize the routing identity for only the intended service.
Question 747
A storage-triggered Cloud Run handler receives unexpected object-delete notifications because the trigger is not scoped correctly. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
- Model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
- Configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
Explanation
Correct Answer
D:Configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation. Validate the change by checking that only approved source events reach the endpoint with the expected authentication context.
Incorrect Answers
A:Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries. This action changes a different concern, Cloud SQL Auth Proxy and database authorization. The case instead calls for the following: configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
B:Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key. This action changes a different concern, Cloud Scheduler recurring trigger design. The case instead calls for the following: configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
C:Model relational keys and transaction boundaries, and measure cross-region latency on representative commits. This action changes a different concern, Spanner distributed relational transactions. The case instead calls for the following: configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
Question 748
A storage-triggered Cloud Run handler receives unexpected object-delete notifications because the trigger is not scoped correctly. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Only approved source events reach the endpoint with the expected authentication context.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
- The client retrieves every authorized record without assuming a first page is a complete result set.
- The reconciliation triggers on the expected business schedule without duplicate side effects across instances.
Explanation
Correct Answer
A:Only approved source events reach the endpoint with the expected authentication context. The original diagnosis should have included this step: inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
Incorrect Answers
B:Malformed messages are isolated with traceable failure evidence while valid messages continue processing. That result could support testing of Pub/Sub dead-letter handling: Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. It cannot substitute for the required control: only approved source events reach the endpoint with the expected authentication context.
C:The client retrieves every authorized record without assuming a first page is a complete result set. That result could support testing of Cloud API pagination and field selection: Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. It cannot substitute for the required control: only approved source events reach the endpoint with the expected authentication context.
D:The reconciliation triggers on the expected business schedule without duplicate side effects across instances. That result could support testing of Cloud Scheduler recurring trigger design: Cloud Scheduler supplies scheduled triggers; exactly-once business execution still requires receiver-level idempotency. It cannot substitute for the required control: only approved source events reach the endpoint with the expected authentication context.
Question 749
An event consumer fails with forbidden errors despite a matching Eventarc event because its delivery identity lacks invoker rights. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect response page tokens, page size, requested field masks, and result reconciliation.
- Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
- Inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
Explanation
Correct Answer
D:Inspect source provider, event type filters, service destination, trigger identity, and permission bindings. Success requires that only approved source events reach the endpoint with the expected authentication context. A focused follow-up is to configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect response page tokens, page size, requested field masks, and result reconciliation. Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. The first evidence should address eventarc event-type filtering and authorization, not this separate diagnostic path.
B:Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately. Cloud SQL connectors and proxy handle authenticated connectivity, while database-level identities and grants still govern SQL actions. The first evidence should address eventarc event-type filtering and authorization, not this separate diagnostic path.
C:Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope. Spanner is a managed distributed relational database with strong transaction semantics, distinct from simple regional SQL instances and wide-column stores. The first evidence should address eventarc event-type filtering and authorization, not this separate diagnostic path.
Question 750
An event consumer fails with forbidden errors despite a matching Eventarc event because its delivery identity lacks invoker rights. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Filter the supported event types and authorize the routing identity for only the intended service.
- Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
- Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
Explanation
Correct Answer
A:Filter the supported event types and authorize the routing identity for only the intended service. Before rollout, inspect source provider, event type filters, service destination, trigger identity, and permission bindings. An event consumer fails with forbidden errors despite a matching Eventarc event because its delivery identity lacks invoker rights. The team is choosing a sustainable solution.
Incorrect Answers
B:Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants. For this case, Eventarc event filters constrain selection while destination IAM controls delivery; a matching event does not bypass invoker authorization. The reported condition is about eventarc event-type filtering and authorization, not this adjacent change.
C:Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy. This design addresses Pub/Sub dead-letter handling, where dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. The reported condition is about eventarc event-type filtering and authorization, not this adjacent change.
D:Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery. This design addresses Cloud Scheduler recurring trigger design, where Cloud Scheduler supplies scheduled triggers; exactly-once business execution still requires receiver-level idempotency. The reported condition is about eventarc event-type filtering and authorization, not this adjacent change.