Google Professional Cloud Developer Practice Test 80
Question 790
A service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Follow pagination tokens until completion and request only supported required fields to reduce payload volume.
- Use Cloud Storage lifecycle management for approved expiration while respecting effective retention constraints.
- Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
- Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants.
Explanation
Correct Answer
C:Instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces. In this scenario, a service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. Before rollout, inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services.
Incorrect Answers
A:Follow pagination tokens until completion and request only supported required fields to reduce payload volume. This design addresses Cloud API pagination and field selection, where 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: instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
B: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. It cannot substitute for the required control: instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
D:Combine authorized Cloud SQL connectivity with least-privilege database authentication rather than confusing transport access with SQL grants. For this case, 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: instrument the application with appropriate Google Cloud Observability metrics, structured logs, and distributed traces.
Question 791
A service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Publish test updates with consistent per-entity keys and verify consumer ordering while independent keys process concurrently.
- Generate a short-lived URL for the intended object and test operation and expiry enforcement.
- Propagate trace context across service calls and link request logs to span identifiers while redacting sensitive payloads.
- Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries.
Explanation
Correct Answer
C:Propagate trace context across service calls and link request logs to span identifiers while redacting sensitive payloads. In this scenario, a service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. Validate the change by checking that an engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content.
Incorrect Answers
A: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 addresses a different dependency from metrics logs and distributed traces correlation.
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. It addresses a different dependency from metrics logs and distributed traces correlation.
D:Configure a test workload identity and a minimally privileged database user, then validate allowed and denied queries. This action changes a different concern, Cloud SQL Auth Proxy and database authorization. It addresses a different dependency from metrics logs and distributed traces correlation.
Question 792
A service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. 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.
- Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
- Per-entity operations preserve intended order without unnecessarily serializing all customers.
- An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content.
Explanation
Correct Answer
D:An engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content. In this scenario, a service emits log entries from each component without trace IDs, making it difficult to reconstruct one failing request. The original diagnosis should have included this step: inspect metric labels, log severity and correlation IDs, trace spans, and latency distribution across services.
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. The reported condition is about metrics logs and distributed traces correlation, not this adjacent change.
B: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. The reported condition is about metrics logs and distributed traces correlation, not this adjacent change.
C:Per-entity operations preserve intended order without unnecessarily serializing all customers. In this case, the outcome to verify is that an engineer can identify the failing downstream stage and its p95 contribution without exposing confidential request content. The reported condition is about metrics logs and distributed traces correlation, not this adjacent change.
Question 793
A production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect bucket lifecycle rules, object age, retention policy locks, and legal retention requirements.
- 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 task dependencies, branching logic, retry policy, state transitions, and auditability requirements.
Explanation
Correct Answer
C:Inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation. This checks the actual operating conditions relevant to error Reporting and AI-assisted observability, rather than changing a service before the failure is understood. A focused follow-up is to instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
Incorrect Answers
A: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 error reporting and ai-assisted observability.
B:Inspect message ordering keys, subscription ordering settings, publish region, and consumer parallelism. Pub/Sub ordered delivery is keyed and conditional on the supported publishing and subscriber configuration, not a universal global FIFO guarantee. This is not the decisive inspection for error reporting and ai-assisted observability.
D: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. This is not the decisive inspection for error reporting and ai-assisted observability.
Question 794
A production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. 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 Error Reporting and evidence-grounded Cloud Observability assistance as diagnostic inputs, not automatic authorization to change production.
- Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
Explanation
Correct Answer
B:Use Error Reporting and evidence-grounded Cloud Observability assistance as diagnostic inputs, not automatic authorization to change production. In this scenario, a production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. Before rollout, inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
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 error reporting and ai-assisted observability.
C:Issue narrowly scoped Cloud Storage signed URLs for specific object methods and expiration windows. For this case, error Reporting groups detected exceptions; AI-assisted observability can aid investigation but does not replace validated diagnosis and authorized change control. That may help elsewhere, but it does not make the change required for error reporting and ai-assisted observability.
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. That may help elsewhere, but it does not make the change required for error reporting and ai-assisted observability.
Question 795
A production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
- Activate the intended service and run one authorized request plus a negative permission test.
- Implement a bounded paginated loop with tests for empty, single, and multiple pages using supported field selections.
- Create representative synthetic keys, run hot-key load tests, and measure read latency and tablet distribution.
Explanation
Correct Answer
A:Instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls. In this scenario, a production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. Validate the change by checking that recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
Incorrect Answers
B: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. A more direct response is to recognize that instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
C: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. A more direct response is to recognize that instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
D: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. A more direct response is to recognize that instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
Question 796
A production exception appears intermittently but the team searches unstructured logs manually and cannot group recurring stack traces. 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.
- Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
- The client retrieves every authorized record without assuming a first page is a complete result set.
- SQL requests remain responsive without saturating the database connection budget when the app scales.
Explanation
Correct Answer
B:Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence. This is evidence that the particular acceptance condition for error Reporting and AI-assisted observability has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
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. The case instead calls for the following: recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
C: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 case instead calls for the following: recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
D:SQL requests remain responsive without saturating the database connection budget when the app scales. In this case, the outcome to verify is that recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence. The case instead calls for the following: recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
Question 797
An AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. 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 captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
- Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately.
- Inspect concurrent instances, per-instance connection count, pool configuration, and database connection quota.
Explanation
Correct Answer
B:Inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation. This checks the actual operating conditions relevant to error Reporting and AI-assisted observability, rather than changing a service before the failure is understood. A focused follow-up is to instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
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. It does not isolate the error reporting and ai-assisted observability issue described.
C:Inspect proxy authentication, instance IAM role, database authentication method, and SQL grant permissions separately. Cloud SQL connectors and proxy handle authenticated connectivity, while database-level identities and grants still govern SQL actions. It does not isolate the error reporting and ai-assisted observability issue described.
D: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. It does not isolate the error reporting and ai-assisted observability issue described.
Question 798
An AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload.
- Route persistently unprocessable messages to a configured dead-letter topic after a bounded attempt policy.
- Use Cloud Scheduler for managed recurring triggers and make the target idempotent for retry or duplicate delivery.
- Use Error Reporting and evidence-grounded Cloud Observability assistance as diagnostic inputs, not automatic authorization to change production.
Explanation
Correct Answer
D:Use Error Reporting and evidence-grounded Cloud Observability assistance as diagnostic inputs, not automatic authorization to change production. In this scenario, an AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. Before rollout, inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
Incorrect Answers
A:Use Spanner for supported distributed relational data and strong-consistency requirements when its tradeoffs fit the workload. For this case, 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 error reporting and ai-assisted observability.
B: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. It addresses a different dependency from error reporting and ai-assisted observability.
C: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 error reporting and ai-assisted observability.
Question 799
An AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. 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 event trigger and verify one positive, one excluded event, and one unauthorized invocation.
- Instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls.
- Create one authorized job with explicit schedule zone and test its authenticated endpoint and job uniqueness key.
- Activate the intended service and run one authorized request plus a negative permission test.
Explanation
Correct Answer
B:Instrument exceptions with useful context and verify any AI-assisted proposed fix against logs, traces, and access controls. In this scenario, an AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. Validate the change by checking that recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
Incorrect Answers
A: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. The reported condition is about error reporting and ai-assisted observability, not this adjacent change.
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 reported condition is about error reporting and ai-assisted observability, not this adjacent change.
D:Activate the intended service and run one authorized request plus a negative permission test. This action changes a different concern, google Cloud API enablement and service identity. The reported condition is about error reporting and ai-assisted observability, not this adjacent change.
Question 800
An AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. 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.
- Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence.
- The workload spreads writes and provides efficient row-range access for its documented query patterns.
- The service establishes its secure connection and is restricted to permitted database operations.
Explanation
Correct Answer
B:Recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence. In this scenario, an AI-generated diagnostic summary recommends changing an IAM policy without quoting the actual error evidence that supports it. The original diagnosis should have included this step: inspect captured exceptions, Error Reporting groups, correlated traces, and the evidence used by an AI-assisted recommendation.
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. Applying it first would leave error reporting and ai-assisted observability unresolved.
C: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. Applying it first would leave error reporting and ai-assisted observability unresolved.
D:The service establishes its secure connection and is restricted to permitted database operations. In this case, the outcome to verify is that recurring errors group into actionable reports and suggested fixes are applied only after independent verification of their evidence. Applying it first would leave error reporting and ai-assisted observability unresolved.