Google Professional Cloud Developer Practice Test 65
Question 640
An application holds unused SQL connections across deployments and fails to close them during scale-down. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Objects transition or expire according to policy without deleting data still under mandatory retention.
- The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy.
- Messages eventually complete once at the business level even when delivery retries are observed.
- SQL requests remain responsive without saturating the database connection budget when the app scales.
Explanation
Correct Answer
D:SQL requests remain responsive without saturating the database connection budget when the app scales. This is evidence that the particular acceptance condition for Cloud SQL connection pooling in serverless workloads has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect concurrent instances, per-instance connection count, pool configuration, and database connection quota. An application holds unused SQL connections across deployments and fails to close them during scale-down. The team has tried a correction.
Incorrect Answers
A: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. That may help elsewhere, but it does not make the change required for cloud sql connection pooling in serverless workloads.
B:The intended endpoint processes tasks under rate limits, and failed callbacks recover within policy. In this case, the outcome to verify is that SQL requests remain responsive without saturating the database connection budget when the app scales. That may help elsewhere, but it does not make the change required for cloud sql connection pooling in serverless workloads.
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. That may help elsewhere, but it does not make the change required for cloud sql connection pooling in serverless workloads.
Question 641
A service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. 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 metric labels, log severity and correlation IDs, trace spans, and latency distribution across services.
- Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
- Inspect object naming, authorized HTTP operation, expiry period, and identity allowed to generate signatures.
Explanation
Correct Answer
C:Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately. In this scenario, a service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. A focused follow-up is to configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
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 more informative check is to inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
B:Inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services. Metrics summarize behavior, logs describe events, and traces connect work across service boundaries; their combined context supports root-cause analysis. The more informative check is to inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
D: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 proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Question 642
A service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
- Use Cloud Storage lifecycle management for approved expiration while respecting effective retention constraints.
- Use Cloud Tasks for controlled asynchronous targeted delivery to a specific worker rather than broad fan-out.
Explanation
Correct Answer
A:Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants. In this scenario, a service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. Before rollout, inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
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. The case instead calls for the following: combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
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. The case instead calls for the following: combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
D:Use Cloud Tasks for controlled asynchronous targeted delivery to a specific worker rather than broad fan-out. The case instead calls for the following: combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
Question 643
A service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
- Publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently.
- Enable and validate eligible pull-subscription acknowledgment semantics, then test duplicate publisher submissions independently.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
Explanation
Correct Answer
A:Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries. In this scenario, a service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. Validate the change by checking that the service establishes its secure connection and is restricted to permitted database operations.
Incorrect Answers
B:Publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently. This action changes a different concern, Pub/Sub ordering keys and partitioned work. It cannot substitute for the required control: configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
C: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. It cannot substitute for the required control: configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
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. It cannot substitute for the required control: configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
Question 644
A service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
- Malformed messages are isolated with traceable failure evidence while valid messages continue processing.
- At most the permitted purchases succeed and inventory invariants remain consistent under concurrency.
- The service establishes its secure connection and is restricted to permitted database operations.
Explanation
Correct Answer
D:The service establishes its secure connection and is restricted to permitted database operations. In this scenario, a service can contact a Cloud SQL instance through the proxy but SQL queries fail because its database account lacks table permissions. The original diagnosis should have included this step: inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Incorrect Answers
A: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. It addresses a different dependency from cloud sql auth proxy and database authorization.
B:Malformed messages are isolated with traceable failure evidence while valid messages continue processing. That result could support testing of Pub/Sub dead-letter handling: Dead-letter routing isolates messages that exceed allowed delivery attempts; it does not itself repair invalid data or guarantee business processing. It addresses a different dependency from cloud sql auth proxy and database authorization.
C:At most the permitted purchases succeed and inventory invariants remain consistent under concurrency. In this case, the outcome to verify is that the service establishes its secure connection and is restricted to permitted database operations. It addresses a different dependency from cloud sql auth proxy and database authorization.
Question 645
A team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. 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 source provider, event type filters, service destination, trigger identity, and permission bindings.
- Inspect row-key distribution, access queries, tablet hot spots, and key-prefix cardinality.
- Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Explanation
Correct Answer
D:Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately. This checks the actual operating conditions relevant to Cloud SQL Auth Proxy and database authorization, rather than changing a service before the failure is understood. A focused follow-up is to configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
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. The relevant dependency is cloud sql auth proxy and database authorization, which this inspection alone does not establish.
B: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. The relevant dependency is cloud sql auth proxy and database authorization, which this inspection alone does not establish.
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. The relevant dependency is cloud sql auth proxy and database authorization, which this inspection alone does not establish.
Question 646
A team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Cloud Tasks for controlled asynchronous targeted delivery to a specific worker rather than broad fan-out.
- Design Bigtable row keys around anticipated access patterns and distribute high-rate writes across the keyspace.
- Retry only transient eligible failures with bounded exponential backoff and jitter, separately handling nonretryable client errors.
- Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
Explanation
Correct Answer
D:Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants. The expected outcome is that the service establishes its secure connection and is restricted to permitted database operations. Before rollout, inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Incorrect Answers
A:Use Cloud Tasks for controlled asynchronous targeted delivery to a specific worker rather than broad fan-out. In this scenario, a team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. Applying it first would leave cloud sql auth proxy and database authorization unresolved.
B: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. Applying it first would leave cloud sql auth proxy and database authorization unresolved.
C: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. Applying it first would leave cloud sql auth proxy and database authorization unresolved.
Question 647
A team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
- Propagate trace context across service calls and link request logs to span identifiers while redacting sensitive payloads.
- Create an authenticated task queue and verify a temporary HTTP failure leads to bounded retry without duplicate business effects.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
Explanation
Correct Answer
A:Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries. In this scenario, a team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. Validate the change by checking that the service establishes its secure connection and is restricted to permitted database operations.
Incorrect Answers
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. That may help elsewhere, but it does not make the change required for cloud sql auth proxy and database authorization.
C: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. That may help elsewhere, but it does not make the change required for cloud sql auth proxy and database authorization.
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. That may help elsewhere, but it does not make the change required for cloud sql auth proxy and database authorization.
Question 648
A team treats the Cloud SQL Auth Proxy as proof that all application database credentials can be omitted. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Objects transition or expire according to policy without deleting data still under mandatory retention.
- The service establishes its secure connection and is restricted to permitted database operations.
- Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior.
- Temporary throttling recovers without retry storms and invalid requests fail promptly with actionable diagnostics.
Explanation
Correct Answer
B:The service establishes its secure connection and is restricted to permitted database operations. This is evidence that the particular acceptance condition for Cloud SQL Auth Proxy and database authorization has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
Incorrect Answers
A: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 service establishes its secure connection and is restricted to permitted database operations.
C:Calls authenticate and handle failures consistently without relying on unsupported private SDK behavior. In this case, the outcome to verify is that the service establishes its secure connection and is restricted to permitted database operations. A more direct response is to recognize that the service establishes its secure connection and is restricted to permitted database operations.
D: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. A more direct response is to recognize that the service establishes its secure connection and is restricted to permitted database operations.
Question 649
Two concurrent request handlers read the same Firestore inventory document and both decrement stock below zero. 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 subscription type, acknowledgment IDs, region and publisher message identity separately.
- Inspect source provider, event type filters, service destination, trigger identity, and permission bindings.
- Inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
Explanation
Correct Answer
D:Inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change. This checks the actual operating conditions relevant to Firestore transactional document updates, rather than changing a service before the failure is understood. A focused follow-up is to wrap stock validation and update in a transaction and test parallel competing purchases.
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. To examine the reported mechanism, the team instead needs to inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
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. To examine the reported mechanism, the team instead needs to inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
C: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. To examine the reported mechanism, the team instead needs to inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
Question 650
Two concurrent request handlers read the same Firestore inventory document and both decrement stock below zero. 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.
- 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.
- Use Firestore transactions for supported coordinated document updates with retry-aware application logic.
Explanation
Correct Answer
D:Use Firestore transactions for supported coordinated document updates with retry-aware application logic. Before rollout, inspect transaction boundaries, concurrent read/write conflicts, and whether all dependent records need atomic change.
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. It cannot substitute for the required control: use Firestore transactions for supported coordinated document updates with retry-aware application logic.
B: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: use Firestore transactions for supported coordinated document updates with retry-aware application logic.
C: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: use Firestore transactions for supported coordinated document updates with retry-aware application logic.