Google Professional Cloud Developer Practice Test 77
Question 760
A service calls the wrong project endpoint because it assumes application credentials select the billing project automatically. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
- An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content.
- Objects transition or expire according to policy without deleting data still under mandatory retention.
- The application reaches the intended API in the correct project without granting broad unrelated roles.
Explanation
Correct Answer
D:The application reaches the intended API in the correct project without granting broad unrelated roles. This is evidence that the particular acceptance condition for google Cloud API enablement and service identity has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect the enabled services in the target project, project ID, caller credentials, and required IAM permissions. A service calls the wrong project endpoint because it assumes application credentials select the billing project automatically. The team has tried a correction.
Incorrect Answers
A: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. A more direct response is to recognize that the application reaches the intended API in the correct project without granting broad unrelated roles.
B: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 the application reaches the intended API in the correct project without granting broad unrelated roles.
C: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. A more direct response is to recognize that the application reaches the intended API in the correct project without granting broad unrelated roles.
Question 761
A team manually assembles authentication headers and transport retries for every request despite an official supported client library. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect subscription type, acknowledgment IDs, region and publisher message identity separately.
- Inspect bucket lifecycle rules, object age, retention policy locks, and legal retention requirements.
- Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
- Inspect consistency requirements, read/write latency, region layout, SQL joins, and transactional scope.
Explanation
Correct Answer
C:Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements. This checks the actual operating conditions relevant to Cloud Client Libraries versus raw REST, rather than changing a service before the failure is understood. A focused follow-up is to implement the same authorized operation using the appropriate supported API surface and validate response parsing.
Incorrect Answers
A: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. To examine the reported mechanism, the team instead needs to inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
B:Inspect bucket lifecycle rules, object age, retention policy locks, and legal retention requirements. Lifecycle policies automate object management, but enforceable retention controls can prevent deletion until the obligation expires. To examine the reported mechanism, the team instead needs to inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
D: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. To examine the reported mechanism, the team instead needs to inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
Question 762
A team manually assembles authentication headers and transport retries for every request despite an official supported client library. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed.
- Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities.
- Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
- Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
Explanation
Correct Answer
A:Prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed. The expected outcome is that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. Before rollout, inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
Incorrect Answers
B:Use ordering keys for related messages requiring ordered delivery, without imposing a global queue on unrelated entities. It cannot substitute for the required control: prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed.
C:Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace. This design addresses Bigtable row-key hotspot avoidance, where Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. It cannot substitute for the required control: prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed.
D:Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants. It cannot substitute for the required control: prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed.
Question 763
A team manually assembles authentication headers and transport retries for every request despite an official supported client library. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution.
- Implement the same authorized operation using the appropriate supported API surface and validate response parsing.
- Configure a test bucket's lifecycle policy and separately validate the required retention policy against sample objects.
- Configure and test a poison message, including correct permissions for dead-letter forwarding and monitoring.
Explanation
Correct Answer
B:Implement the same authorized operation using the appropriate supported API surface and validate response parsing. Validate the change by checking that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
Incorrect Answers
A:Create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution. This action changes a different concern, Bigtable row-key hotspot avoidance. It addresses a different dependency from cloud client libraries versus raw rest.
C:Configure a test bucket's lifecycle policy and separately validate the required retention policy against sample objects. This action changes a different concern, Cloud Storage lifecycle and retention controls. It addresses a different dependency from cloud client libraries versus raw rest.
D: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. It addresses a different dependency from cloud client libraries versus raw rest.
Question 764
A team manually assembles authentication headers and transport retries for every request despite an official supported client library. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The client retrieves every authorized record without assuming a first page is a complete result set.
- The workload spreads writes and provides efficient row-range access for its documented query patterns.
- The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
Explanation
Correct Answer
D:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. This is evidence that the particular acceptance condition for Cloud Client Libraries versus raw REST has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
Incorrect Answers
A: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. The reported condition is about cloud client libraries versus raw rest, not this adjacent change.
B:The workload spreads writes and provides efficient row-range access for its documented query patterns. That result could support testing of Bigtable row-key hotspot avoidance: Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. The reported condition is about cloud client libraries versus raw rest, not this adjacent change.
C:The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy. In this case, the outcome to verify is that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. The reported condition is about cloud client libraries versus raw rest, not this adjacent change.
Question 765
A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect delivery attempt counts, retry policy, dead-letter topic configuration, and failure classification.
- Inspect bucket lifecycle rules, object age, retention policy locks, and legal retention requirements.
- Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
- Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements.
Explanation
Correct Answer
D:Inspect available language libraries, API feature coverage, authentication workflow, and transport requirements. This checks the actual operating conditions relevant to Cloud Client Libraries versus raw REST, rather than changing a service before the failure is understood. A focused follow-up is to implement the same authorized operation using the appropriate supported API surface and validate response parsing. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A: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. This is not the decisive inspection for cloud client libraries versus raw rest.
B:Inspect bucket lifecycle rules, object age, retention policy locks, and legal retention requirements. Lifecycle policies automate object management, but enforceable retention controls can prevent deletion until the obligation expires. This is not the decisive inspection for cloud client libraries versus raw rest.
C:Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality. Bigtable performance depends heavily on row-key design; monotonically increasing leading keys can concentrate writes and increase hotspots. This is not the decisive inspection for cloud client libraries versus raw rest.
Question 766
A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. 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.
- Acknowledge only after durable processing and make the handler idempotent to expected redelivery.
- Prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed.
Explanation
Correct Answer
D:Prefer maintained Cloud Client Libraries for supported calls and use documented REST or gRPC contracts when needed. The expected outcome is that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. Before rollout, inspect available language libraries, API feature coverage, authentication workflow, and transport requirements. A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. The team is choosing a sustainable solution.
Incorrect Answers
A:Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows. That may help elsewhere, but it does not make the change required for cloud client libraries versus raw rest.
B:Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload. That may help elsewhere, but it does not make the change required for cloud client libraries versus raw rest.
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. That may help elsewhere, but it does not make the change required for cloud client libraries versus raw rest.
Question 767
A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Enable and validate eligible pull-subscription acknowledgment semantics, then test duplicate publisher submissions independently.
- Model relational keys and transaction boundaries, and measure cross-region latency on representative commits.
- Implement the same authorized operation using the appropriate supported API surface and validate response parsing.
- Configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation.
Explanation
Correct Answer
C:Implement the same authorized operation using the appropriate supported API surface and validate response parsing. Validate the change by checking that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. An approved limited change can be tested in a safe environment.
Incorrect Answers
A:Enable and validate eligible pull-subscription acknowledgment semantics, then test duplicate publisher submissions independently. This action changes a different concern, Pub/Sub exactly-once feature scope. A more direct response is to implement the same authorized operation using the appropriate supported API surface and validate response parsing.
B:Model relational keys and transaction boundaries, and measure cross-region latency on representative commits. This action changes a different concern, Spanner distributed relational transactions. A more direct response is to implement the same authorized operation using the appropriate supported API surface and validate response parsing.
D:Configure a test event trigger and verify one positive, one excluded event, and one unauthorized invocation. This action changes a different concern, Eventarc event-type filtering and authorization. A more direct response is to implement the same authorized operation using the appropriate supported API surface and validate response parsing.
Question 768
A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. 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.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- The service establishes its secure connection and is restricted to permitted database operations.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
Explanation
Correct Answer
B:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. This is evidence that the particular acceptance condition for Cloud Client Libraries versus raw REST has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect available language libraries, API feature coverage, authentication workflow, and transport requirements. A specialized application needs a REST endpoint not yet exposed through its chosen SDK version and assumes that direct REST is prohibited. The team has tried a correction.
Incorrect Answers
A:The workload spreads writes and provides efficient row-range access for its documented query patterns. That result could support testing of Bigtable row-key hotspot avoidance: 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: calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
C:The service establishes its secure connection and is restricted to permitted database operations. In this case, the outcome to verify is that calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. The case instead calls for the following: calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
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 case instead calls for the following: calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
Question 769
A storage inventory report reads only the first API page and silently misses most resource records. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
- Inspect task destination, retry policy, rate limits, authentication, and deadline requirements.
- Inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services.
- Inspect response page tokens, page size, requested field masks, and result reconciliation.
Explanation
Correct Answer
D: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.
Incorrect Answers
A:Inspect source provider, event type filters, service destination, trigger identity, and permission bindings. Eventarc event filters constrain selection while destination IAM controls delivery; a matching event does not bypass invoker authorization. It does not isolate the cloud api pagination and field selection issue described.
B: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. It does not isolate the cloud api pagination and field selection issue described.
C: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 api pagination and field selection issue described.
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.