Google Professional Cloud Developer Practice Test 71
Question 700
A malformed event repeatedly fails parsing and prevents efficient progress through a subscriber's retry queue. 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 reconciliation triggers on the expected business schedule without duplicate side effects across instances.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
- Objects transition or expire according to policy without deleting data still under mandatory retention.
Explanation
Correct Answer
C:Malformed messages are isolated with traceable failure evidence while valid messages continue processing. Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. The original diagnosis should have included this step: inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification.
Incorrect Answers
A:The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy. In this scenario, a malformed event repeatedly fails parsing and prevents efficient progress through a subscriber's retry queue. It addresses a different dependency from pub/sub dead-letter handling.
B: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 addresses a different dependency from pub/sub dead-letter handling.
D:Objects transition or expire according to policy without deleting data still under mandatory retention. That result could support testing of Cloud Storage lifecycle and retention controls: Lifecycle policies automate object management, but enforceable retention controls can prevent deletion until the obligation expires. It addresses a different dependency from pub/sub dead-letter handling.
Question 701
An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect the enabled services in the target project, project ID, caller credentials, and required IAM permissions.
- Inspect response page tokens, page size, requested field masks, and result reconciliation.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
- Inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification.
Explanation
Correct Answer
D:Inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification. This checks the actual operating conditions relevant to Pub/Sub dead-letter handling, rather than changing a service before the failure is understood. A focused follow-up is to configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect the enabled services in the target project, project ID, caller credentials, and required IAM permissions. Service enablement and IAM authorization are separate prerequisites for Google Cloud API calls; one does not substitute for the other. The relevant dependency is pub/sub dead-letter handling, which this inspection alone does not establish.
B: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 relevant dependency is pub/sub dead-letter handling, which this inspection alone does not establish.
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 relevant dependency is pub/sub dead-letter handling, which this inspection alone does not establish.
Question 702
An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. 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.
- Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
- Enable the required Google Cloud API in the correct project and separately grant minimum caller access.
Explanation
Correct Answer
B:Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy. Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. Before rollout, inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification. An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. The team is choosing a sustainable solution.
Incorrect Answers
A:Filter the supported event types and authorize the routing identity for only the intended service. This design addresses Eventarc event-type filtering and authorization, where Eventarc event filters constrain selection while destination IAM controls delivery; a matching event does not bypass invoker authorization. Applying it first would leave pub/sub dead-letter handling unresolved.
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. Applying it first would leave pub/sub dead-letter handling unresolved.
D: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. Applying it first would leave pub/sub dead-letter handling unresolved.
Question 703
An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Activate the intended service and run one authorized request plus a negative permission test.
- Generate a short-lived URL for the intended object and test operation and expiry enforcement.
- Set pool size and idle timeouts, then load-test total database connections under maximum intended app instances.
- Configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring.
Explanation
Correct Answer
D:Configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring. Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. Validate the change by checking that malformed messages are isolated with traceable failure evidence while valid messages continue processing. An approved limited change can be tested in a safe environment.
Incorrect Answers
A: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. That may help elsewhere, but it does not make the change required for pub/sub dead-letter handling.
B:Generate a short-lived URL for the intended object and test operation and expiry enforcement. This action changes a different concern, Cloud Storage signed upload/download workflows. That may help elsewhere, but it does not make the change required for pub/sub dead-letter handling.
C: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. That may help elsewhere, but it does not make the change required for pub/sub dead-letter handling.
Question 704
An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. 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.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- The workload preserves required transaction integrity and meets accepted global-latency targets.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
Explanation
Correct Answer
D:Malformed messages are isolated with traceable failure evidence while valid messages continue processing. Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. The original diagnosis should have included this step: inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification. An engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. The team has tried a correction.
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. A more direct response is to recognize that malformed messages are isolated with traceable failure evidence while valid messages continue processing.
B:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this scenario, an engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. A more direct response is to recognize that malformed messages are isolated with traceable failure evidence while valid messages continue processing.
C:The workload preserves required transaction integrity and meets accepted global-latency targets. In this scenario, an engineering team treats repeated delivery failures as success simply because messages are acknowledged to stop retries. A more direct response is to recognize that malformed messages are isolated with traceable failure evidence while valid messages continue processing.
Question 705
Two updates to the same customer record are processed out of order because their messages have no ordering key. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once.
- Inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
- Inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
- Inspect acknowledgment timing, lease extension, processing transaction order, and repeated message IDs.
Explanation
Correct Answer
B:Inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism. This checks the actual operating conditions relevant to Pub/Sub ordering keys and partitioned work, rather than changing a service before the failure is understood. A focused follow-up is to publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently.
Incorrect Answers
A:Inspect cron syntax, time zone, target identity, and whether the receiving job is safe to invoke more than once. Cloud Scheduler supplies scheduled triggers; exactly-once business execution still requires receiver-level idempotency. To examine the reported mechanism, the team instead needs to inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
C:Inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation. Error Reporting groups detected exceptions; AI-assisted observability can aid investigation but does not replace validated diagnosis and authorized change control. To examine the reported mechanism, the team instead needs to inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
D: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. To examine the reported mechanism, the team instead needs to inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
Question 706
Two updates to the same customer record are processed out of order because their messages have no ordering key. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
- Use Workflows to coordinate the required service calls with explicit conditionals and error handling.
- Enable the required Google Cloud API in the correct project and separately grant minimum caller access.
Explanation
Correct Answer
A:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. The expected outcome is that per-entity operations preserve intended order without unnecessarily serializing all customers. Before rollout, inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
Incorrect Answers
B: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. It cannot substitute for the required control: use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
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. It cannot substitute for the required control: use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
D: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 cannot substitute for the required control: use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
Question 707
Two updates to the same customer record are processed out of order because their messages have no ordering key. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Wrap stock validation and update in a transaction and test parallel competing purchases.
- Use supported client deadline-extension behavior and a stable operation identifier around the database update.
- Publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently.
- Model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
Explanation
Correct Answer
C:Publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently. In this scenario, two updates to the same customer record are processed out of order because their messages have no ordering key. Validate the change by checking that per-entity operations preserve intended order without unnecessarily serializing all customers.
Incorrect Answers
A:Wrap stock validation and update in a transaction and test parallel competing purchases. This action changes a different concern, Firestore transactional document updates. It addresses a different dependency from pub/sub ordering keys and partitioned work.
B: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. It addresses a different dependency from pub/sub ordering keys and partitioned work.
D:Model relational keys and transaction boundaries, and measure cross-region latency on representative commits. This action changes a different concern, Spanner distributed relational transactions. It addresses a different dependency from pub/sub ordering keys and partitioned work.
Question 708
Two updates to the same customer record are processed out of order because their messages have no ordering key. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Per-entity operations preserve intended order without unnecessarily serializing all customers.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- Messages eventually complete once at the business level even when delivery retries are observed.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
Explanation
Correct Answer
A:Per-entity operations preserve intended order without unnecessarily serializing all customers. This is evidence that the particular acceptance condition for Pub/Sub ordering keys and partitioned work has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
Incorrect Answers
B:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this case, the outcome to verify is that per-entity operations preserve intended order without unnecessarily serializing all customers. The reported condition is about pub/sub ordering keys and partitioned work, not this adjacent change.
C:Messages eventually complete once at the business level even when delivery retries are observed. That result could support testing of Pub/Sub acknowledgments and redelivery: Pub/Sub normally uses at-least-once delivery; missing or expired acknowledgment permits redelivery and requires consumer-side idempotency. The reported condition is about pub/sub ordering keys and partitioned work, not this adjacent change.
D: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. The reported condition is about pub/sub ordering keys and partitioned work, not this adjacent change.
Question 709
A team enables global ordering and unexpectedly reduces throughput despite only requiring per-order sequencing. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
- Inspect concurrent instances, per-instance connection count, pool configuration, and database connection quota.
- Inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism.
- Inspect task destination, retry policy, rate limits, authentication, and deadline requirements.
Explanation
Correct Answer
C:Inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism. This checks the actual operating conditions relevant to Pub/Sub ordering keys and partitioned work, rather than changing a service before the failure is understood. A focused follow-up is to publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A: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. This is not the decisive inspection for pub/sub ordering keys and partitioned work.
B:Inspect concurrent instances, per-instance connection count, pool configuration, and database connection quota. Serverless autoscaling multiplies per-instance database pools; a safe single-instance setting may still overwhelm a shared database. This is not the decisive inspection for pub/sub ordering keys and partitioned work.
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. This is not the decisive inspection for pub/sub ordering keys and partitioned work.
Question 710
A team enables global ordering and unexpectedly reduces throughput despite only requiring per-order sequencing. 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.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
- Use Workflows to coordinate the required service calls with explicit conditionals and error handling.
- Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows.
Explanation
Correct Answer
B:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. The expected outcome is that per-entity operations preserve intended order without unnecessarily serializing all customers. Before rollout, inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism. A team enables global ordering and unexpectedly reduces throughput despite only requiring per-order sequencing. The team is choosing a sustainable solution.
Incorrect Answers
A:Filter the supported event types and authorize the routing identity for only the intended service. This design addresses Eventarc event-type filtering and authorization, where 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 pub/sub ordering keys and partitioned work.
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. That may help elsewhere, but it does not make the change required for pub/sub ordering keys and partitioned work.
D:Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows. In this scenario, a team enables global ordering and unexpectedly reduces throughput despite only requiring per-order sequencing. That may help elsewhere, but it does not make the change required for pub/sub ordering keys and partitioned work.