Google Professional Cloud Developer Practice Test 67
Question 660
A global product needs consistent SQL transactions over multiple regions but a team assumes a single regional database replica offers the same behavior. 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.
- The workload preserves required transaction integrity and meets accepted global-latency targets.
Explanation
Correct Answer
D:The workload preserves required transaction integrity and meets accepted global-latency targets. This is evidence that the particular acceptance condition for Spanner distributed relational transactions has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
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. Applying it first would leave spanner distributed relational transactions unresolved.
B:The client uploads or downloads only its authorized object during the permitted period without bucket-wide credentials. Applying it first would leave spanner distributed relational transactions unresolved.
C: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. Applying it first would leave spanner distributed relational transactions unresolved.
Question 661
A payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect acknowledgment timing, lease extension, processing transaction order, and repeated message IDs.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
- Inspect task dependencies, branching logic, retry policy, state transitions, and auditability requirements.
- Inspect task destination, retry policy, rate limits, authentication, and deadline requirements.
Explanation
Correct Answer
B:Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope. This checks the actual operating conditions relevant to Spanner distributed relational transactions, rather than changing a service before the failure is understood. A focused follow-up is to model relational keys and transaction boundaries, and measure cross-region latency on representative commits. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A: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 spanner distributed relational transactions.
C:Inspect task dependencies, branching logic, retry policy, state transitions, and auditability requirements. Workflows coordinates multi-step application processes; simply placing independent messages on topics does not create a deterministic state machine. That check does not establish the specific cause behind spanner distributed relational transactions.
D:Inspect task destination, retry policy, rate limits, authentication, and deadline requirements. Cloud Tasks queues target-specific work with scheduled delivery, retries, and rate control; it differs from Pub/Sub broadcast subscriptions. That check does not establish the specific cause behind spanner distributed relational transactions.
Question 662
A payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows.
- Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
- Use Workflows to coordinate the required service calls with explicit conditionals and error handling.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
Explanation
Correct Answer
B:Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload. In this scenario, a payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. Before rollout, inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
Incorrect Answers
A:Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows. A more direct response is to use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
C: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. A more direct response is to use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
D: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. A more direct response is to use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
Question 663
A payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Create an authenticated task queue and verify a temporary HTTP failure leads to bounded retry without duplicate business effects.
- Model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
- Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
Explanation
Correct Answer
B:Model relational keys and transaction boundaries, and measure cross-region latency on representative commits. In this scenario, a payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. Validate the change by checking that the workload preserves required transaction integrity and meets accepted global-latency targets.
Incorrect Answers
A:Create an authenticated task queue and verify a temporary HTTP failure leads to bounded retry without duplicate business effects. This action changes a different concern, Cloud Tasks targeted HTTP retry work. The case instead calls for the following: model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
C: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: model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
D:Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections. This action changes a different concern, Cloud API pagination and field selection. The case instead calls for the following: model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
Question 664
A payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The service establishes its secure connection and is restricted to permitted database operations.
- Per-entity operations preserve intended order without unnecessarily serializing all customers.
- The workload preserves required transaction integrity and meets accepted global-latency targets.
- The client retrieves every authorized record without assuming a first page is a complete result set.
Explanation
Correct Answer
C:The workload preserves required transaction integrity and meets accepted global-latency targets. This is evidence that the particular acceptance condition for Spanner distributed relational transactions has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope. A payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. The team has tried a correction.
Incorrect Answers
A:The service establishes its secure connection and is restricted to permitted database operations. In this scenario, a payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. It cannot substitute for the required control: the workload preserves required transaction integrity and meets accepted global-latency targets.
B:Per-entity operations preserve intended order without unnecessarily serializing all customers. In this scenario, a payment workflow requires transactional integrity across related rows while a wide-column key-value design lacks expected query semantics. It cannot substitute for the required control: the workload preserves required transaction integrity and meets accepted global-latency targets.
D: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: the workload preserves required transaction integrity and meets accepted global-latency targets.
Question 665
A telemetry service inserts timestamp-increasing row keys and concentrates writes on a narrow subset of Bigtable tablets. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect task destination, retry policy, rate limits, authentication, and deadline requirements.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
- Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
- Inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification.
Explanation
Correct Answer
C:Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality. This checks the actual operating conditions relevant to Bigtable row-key hotspot avoidance, rather than changing a service before the failure is understood. A focused follow-up is to create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution.
Incorrect Answers
A:Inspect task destination, retry policy, rate limits, authentication, and deadline requirements. Cloud Tasks queues target-specific work with scheduled delivery, retries, and rate control; it differs from Pub/Sub broadcast subscriptions. The first evidence should address bigtable row-key hotspot avoidance, not this separate diagnostic path.
B: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 bigtable row-key hotspot avoidance, not this separate diagnostic path.
D:Inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification. Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. The first evidence should address bigtable row-key hotspot avoidance, not this separate diagnostic path.
Question 666
A telemetry service inserts timestamp-increasing row keys and concentrates writes on a narrow subset of Bigtable tablets. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use supported exactly-once pull delivery where its tradeoffs fit, while retaining publisher and business idempotency.
- Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors.
- Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
- Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy.
Explanation
Correct Answer
C:Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace. Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. Before rollout, inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
Incorrect Answers
A:Use supported exactly-once pull delivery where its tradeoffs fit, while retaining publisher and business idempotency. This design addresses Pub/Sub exactly-once feature scope, where Pub/Sub exactly-once delivery applies to supported pull subscriptions within documented scope and cannot prevent independent duplicate publishes. The reported condition is about bigtable row-key hotspot avoidance, not this adjacent change.
B:Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors. This design addresses exponential backoff on transient API errors, where backoff reduces coordinated retries after transient failures; not every error is retryable and repeatable side effects need idempotency. The reported condition is about bigtable row-key hotspot avoidance, not this adjacent change.
D: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 bigtable row-key hotspot avoidance, not this adjacent change.
Question 667
A telemetry service inserts timestamp-increasing row keys and concentrates writes on a narrow subset of Bigtable tablets. 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.
- Create an authenticated task queue and verify a temporary HTTP failure leads to bounded retry without duplicate business effects.
- Create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution.
- Implement capped retry delays with a stable request key and simulate both 429 and permanent invalid-input failures.
Explanation
Correct Answer
C:Create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution. Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. Validate the change by checking that the workload spreads writes and provides efficient row-range access for its documented query patterns.
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. Applying it first would leave bigtable row-key hotspot avoidance unresolved.
B:Create an authenticated task queue and verify a temporary HTTP failure leads to bounded retry without duplicate business effects. This action changes a different concern, Cloud Tasks targeted HTTP retry work. Applying it first would leave bigtable row-key hotspot avoidance unresolved.
D: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. Applying it first would leave bigtable row-key hotspot avoidance unresolved.
Question 668
A telemetry service inserts timestamp-increasing row keys and concentrates writes on a narrow subset of Bigtable tablets. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The workload spreads writes and provides efficient row-range access for its documented query patterns.
- The application reaches the intended API in the correct project without granting broad unrelated roles.
- Per-entity operations preserve intended order without unnecessarily serializing all customers.
- Only approved source events reach the endpoint with the expected authentication context.
Explanation
Correct Answer
A:The workload spreads writes and provides efficient row-range access for its documented query patterns. Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. The original diagnosis should have included this step: inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
Incorrect Answers
B:The application reaches the intended API in the correct project without granting broad unrelated roles. That result could support testing of google Cloud API enablement and service identity: Service enablement and IAM authorization are separate prerequisites for Google Cloud API calls; one does not substitute for the other. That may help elsewhere, but it does not make the change required for bigtable row-key hotspot avoidance.
C:Per-entity operations preserve intended order without unnecessarily serializing all customers. In this case, the outcome to verify is that the workload spreads writes and provides efficient row-range access for its documented query patterns. That may help elsewhere, but it does not make the change required for bigtable row-key hotspot avoidance.
D:Only approved source events reach the endpoint with the expected authentication context. That result could support testing of Eventarc event-type filtering and authorization: Eventarc event filters constrain selection while destination IAM controls delivery; a matching event does not bypass invoker authorization. That may help elsewhere, but it does not make the change required for bigtable row-key hotspot avoidance.
Question 669
A wide-column analytics workload chooses key ordering that makes common lookups require broad range scans. 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 task dependencies, branching logic, retry policy, state transitions, and auditability requirements.
- Inspect object naming, authorized HTTP operation, expiry period, and identity allowed to generate signatures.
- Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
Explanation
Correct Answer
D:Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality. This checks the actual operating conditions relevant to Bigtable row-key hotspot avoidance, rather than changing a service before the failure is understood. A focused follow-up is to create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution. 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 more informative check is to inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
B:Inspect task dependencies, branching logic, retry policy, state transitions, and auditability requirements. Workflows coordinates multi-step application processes; simply placing independent messages on topics does not create a deterministic state machine. The more informative check is to inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
C: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. The more informative check is to inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
Question 670
A wide-column analytics workload chooses key ordering that makes common lookups require broad range scans. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors.
- Use bounded per-instance connection pools with application-level limits appropriate to aggregate autoscaling.
- Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
Explanation
Correct Answer
C:Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace. Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. Before rollout, inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality. A wide-column analytics workload chooses key ordering that makes common lookups require broad range scans. The team is choosing a sustainable solution.
Incorrect Answers
A:Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors. This design addresses exponential backoff on transient API errors, where 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: design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
B:Use bounded per-instance connection pools with application-level limits appropriate to aggregate autoscaling. For this case, Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. The case instead calls for the following: design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
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 case instead calls for the following: design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.