Google Professional Cloud Developer Practice Test 78
Question 770
A storage inventory report reads only the first API page and silently misses most resource records. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
- Use Workflows to coordinate the required service calls with explicit conditionals and error handling.
- 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.
Explanation
Correct Answer
D:Follow pagination tokens until completion and request only supported required fields to reduce payload volume. Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. Before rollout, inspect response page tokens, page size, requested field masks, and result reconciliation.
Incorrect Answers
A: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. It addresses a different dependency from cloud api pagination and field selection.
B:Use Workflows to coordinate the required service calls with explicit conditionals and error handling. This design addresses Workflows multi-step service orchestration, where Workflows coordinates multi-step application processes; simply placing independent messages on topics does not create a deterministic state machine. It addresses a different dependency from cloud api pagination and field selection.
C: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. It addresses a different dependency from cloud api pagination and field selection.
Question 771
A storage inventory report reads only the first API page and silently misses most resource records. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Set pool size and idle timeouts, then load-test total database connections under maximum intended app instances.
- Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
- Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
Explanation
Correct Answer
C:Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections. Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. Validate the change by checking that the client retrieves every authorized record without assuming a first page is a complete result set.
Incorrect Answers
A:Set pool size and idle timeouts, then load-test total database connections under maximum intended app instances. This action changes a different concern, Cloud SQL connection pooling in serverless workloads. The reported condition is about cloud api pagination and field selection, not this adjacent change.
B: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 reported condition is about cloud api pagination and field selection, not this adjacent change.
D: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 reported condition is about cloud api pagination and field selection, not this adjacent change.
Question 772
A storage inventory report reads only the first API page and silently misses most resource records. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy.
- The service establishes its secure connection and is restricted to permitted database operations.
- The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials.
- The client retrieves every authorized record without assuming a first page is a complete result set.
Explanation
Correct Answer
D:The client retrieves every authorized record without assuming a first page is a complete result set. This is evidence that the particular acceptance condition for Cloud API pagination and field selection has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect response page tokens, page size, requested field masks, and result reconciliation.
Incorrect Answers
A:The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy. In this case, the outcome to verify is that the client retrieves every authorized record without assuming a first page is a complete result set. Applying it first would leave cloud api pagination and field selection unresolved.
B:The service establishes its secure connection and is restricted to permitted database operations. In this case, the outcome to verify is that the client retrieves every authorized record without assuming a first page is a complete result set. Applying it first would leave cloud api pagination and field selection unresolved.
C: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 client retrieves every authorized record without assuming a first page is a complete result set. Applying it first would leave cloud api pagination and field selection unresolved.
Question 773
A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. 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 acknowledgment timing, lease extension, processing transaction order, and repeated message IDs.
- Inspect subscription type, acknowledgment IDs, region and publisher message identity separately.
- Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Explanation
Correct Answer
A:Inspect response page tokens, page size, requested field masks, and result reconciliation. This checks the actual operating conditions relevant to Cloud API pagination and field selection, 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
B:Inspect acknowledgment timing, lease extension, processing transaction order, and repeated message IDs. Pub/Sub normally uses at-least-once delivery; missing or expired acknowledgment permits redelivery and requires consumer-side idempotency. That check does not establish the specific cause behind cloud api pagination and field selection.
C: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 cloud api pagination and field selection.
D: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. That check does not establish the specific cause behind cloud api pagination and field selection.
Question 774
A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. 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.
- Use Cloud Storage lifecycle management for approved expiration while respecting effective retention constraints.
- Use Firestore transactions for supported coordinated document updates with retry-aware application logic.
Explanation
Correct Answer
B:Follow pagination tokens until completion and request only supported required fields to reduce payload volume. Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. Before rollout, inspect response page tokens, page size, requested field masks, and result reconciliation. A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. The team is choosing a sustainable solution.
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 follow pagination tokens until completion and request only supported required fields to reduce payload volume.
C:Use Cloud Storage lifecycle management for approved expiration while respecting effective retention constraints. This design addresses Cloud Storage lifecycle and retention controls, where lifecycle policies automate object management, but enforceable retention controls can prevent deletion until the obligation expires. A more direct response is to recognize that follow pagination tokens until completion and request only supported required fields to reduce payload volume.
D:Use Firestore transactions for supported coordinated document updates with retry-aware application logic. For this case, 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 follow pagination tokens until completion and request only supported required fields to reduce payload volume.
Question 775
A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
- Configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring.
- Activate the intended service and run one authorized request plus a negative permission test.
- Use supported client deadline-extension behavior and a stable operation identifier around the database update.
Explanation
Correct Answer
A:Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections. Cloud APIs frequently paginate collection responses; selecting fewer fields improves efficiency but does not eliminate the need to consume every page. Validate the change by checking that the client retrieves every authorized record without assuming a first page is a complete result set. An approved limited change can be tested in a safe environment.
Incorrect Answers
B:Configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring. This action changes a different concern, Pub/Sub dead-letter handling. The case instead calls for the following: implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
C:Activate the intended service and run one authorized request plus a negative permission test. This action changes a different concern, google Cloud API enablement and service identity. The case instead calls for the following: implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
D:Use supported client deadline-extension behavior and a stable operation identifier around the database update. This action changes a different concern, Pub/Sub acknowledgments and redelivery. The case instead calls for the following: implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
Question 776
A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. 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.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- The client retrieves every authorized record without assuming a first page is a complete result set.
- SQL requests remain responsive without saturating the database connection budget when the app scales.
Explanation
Correct Answer
C:The client retrieves every authorized record without assuming a first page is a complete result set. This is evidence that the particular acceptance condition for Cloud API pagination and field selection has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect response page tokens, page size, requested field masks, and result reconciliation. A mobile client requests complete large resource objects while needing only a few fields and exceeds latency budgets. The team has tried a correction.
Incorrect Answers
A: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: the client retrieves every authorized record without assuming a first page is a complete result set.
B:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this case, the outcome to verify is that the client retrieves every authorized record without assuming a first page is a complete result set. It cannot substitute for the required control: the client retrieves every authorized record without assuming a first page is a complete result set.
D:SQL requests remain responsive without saturating the database connection budget when the app scales. In this case, the outcome to verify is that the client retrieves every authorized record without assuming a first page is a complete result set. It cannot substitute for the required control: the client retrieves every authorized record without assuming a first page is a complete result set.
Question 777
An application retries Google Cloud API HTTP 429 responses instantly and multiplies an upstream rate-limit incident. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect response codes, retry-after guidance, attempt budget, jitter, and idempotency of the failed operation.
- Inspect subscription type, acknowledgment IDs, region and publisher message identity separately.
- Inspect response page tokens, page size, requested field masks, and result reconciliation.
- Inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
Explanation
Correct Answer
A:Inspect response codes, retry-after guidance, attempt budget, jitter, and idempotency of the failed operation. Success requires that temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics.
Incorrect Answers
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. The first evidence should address exponential backoff on transient api errors, not this separate diagnostic path.
C: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 exponential backoff on transient api errors, not this separate diagnostic path.
D: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. The first evidence should address exponential backoff on transient api errors, not this separate diagnostic path.
Question 778
An application retries Google Cloud API HTTP 429 responses instantly and multiplies an upstream rate-limit incident. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Firestore transactions for supported coordinated document updates with retry-aware application logic.
- Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
Explanation
Correct Answer
B:Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors. The expected outcome is that temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics. Before rollout, inspect response codes, retry-after guidance, attempt budget, jitter, and idempotency of the failed operation.
Incorrect Answers
A:Use Firestore transactions for supported coordinated document updates with retry-aware application logic. For this case, backoff reduces coordinated retries after transient failures; not every error is retryable and repeatable side effects need idempotency. The reported condition is about exponential backoff on transient api errors, not this adjacent change.
C:Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces. This design addresses metrics logs and distributed traces correlation, where metrics summarize behavior, logs describe events, and traces connect work across service boundaries; their combined context supports root-cause analysis. The reported condition is about exponential backoff on transient api errors, not this adjacent change.
D:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. For this case, backoff reduces coordinated retries after transient failures; not every error is retryable and repeatable side effects need idempotency. The reported condition is about exponential backoff on transient api errors, not this adjacent change.
Question 779
An application retries Google Cloud API HTTP 429 responses instantly and multiplies an upstream rate-limit incident. 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.
- Propagate trace context across service calls and link request logs to span identifiers while redacting sensitive payloads.
- Activate the intended service and run one authorized request plus a negative permission test.
- Implement capped retry delays with a stable request key and simulate both 429 and permanent invalid-input failures.
Explanation
Correct Answer
D:Implement capped retry delays with a stable request key and simulate both 429 and permanent invalid-input failures. Validate the change by checking that temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics.
Incorrect Answers
A: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. Applying it first would leave exponential backoff on transient api errors unresolved.
B:Propagate trace context across service calls and link request logs to span identifiers while redacting sensitive payloads. This action changes a different concern, metrics logs and distributed traces correlation. Applying it first would leave exponential backoff on transient api errors unresolved.
C:Activate the intended service and run one authorized request plus a negative permission test. This action changes a different concern, google Cloud API enablement and service identity. Applying it first would leave exponential backoff on transient api errors unresolved.
Question 780
An application retries Google Cloud API HTTP 429 responses instantly and multiplies an upstream rate-limit incident. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content.
- 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.
- Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
Explanation
Correct Answer
C:Temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics. This is evidence that the particular acceptance condition for exponential backoff on transient API errors has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect response codes, retry-after guidance, attempt budget, jitter, and idempotency of the failed operation.
Incorrect Answers
A: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. That may help elsewhere, but it does not make the change required for exponential backoff on transient api errors.
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 temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics. That may help elsewhere, but it does not make the change required for exponential backoff on transient api errors.
D:Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence. That result could support testing of error Reporting and AI-assisted observability: Error Reporting groups detected exceptions; AI-assisted observability can aid investigation but does not replace validated diagnosis and authorized change control. That may help elsewhere, but it does not make the change required for exponential backoff on transient api errors.