Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 30
Question 290
The proposed safeguard is not implemented: Tune joins, partition distribution and shuffle behavior before purchasing additional workers. The data platform currently faces: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. What direct risk remains?
- Persistent workers can create excessive cost for a small daily processing window.
- One hot reducer can dominate runtime while the rest of the cluster remains underused.
- A planned increase in event volume can fail at quota limits despite adequate apparent cloud capacity.
- An unreviewed class switch can make occasional investigations costlier than projected.
Explanation
Correct Answer
B:The specific residual risk is that one hot reducer can dominate runtime while the rest of the cluster remains underused. The situation is: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. The missing response is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. The engineering reason is that data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count. After remediation, verify: Stage metrics show improved skew distribution and matching aggregate output after tuning.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. Its tailored control is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. In the present situation the more direct exposure is that one hot reducer can dominate runtime while the rest of the cluster remains underused.
C:This failure mode belongs chiefly to another situation: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. Its tailored control is to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. In the present situation the more direct exposure is that one hot reducer can dominate runtime while the rest of the cluster remains underused.
D:This failure mode belongs chiefly to another situation: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. Its tailored control is to configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. In the present situation the more direct exposure is that one hot reducer can dominate runtime while the rest of the cluster remains underused.
Question 291
A project declines to apply this measure: Review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. It faces: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. Which consequence is MOST directly unresolved?
- One transaction can be counted on different reporting days across regional dashboards.
- Teams may approve conflicting financial decisions because identical labels mask different formula definitions.
- Adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table.
- Repeated expensive aggregation can saturate shared analytics resources and delay reporting.
Explanation
Correct Answer
C:The specific residual risk is that adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table. The situation is: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. The missing response is to review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. The engineering reason is that query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute. After remediation, verify: The revised query produces matching results with lower shuffle or scan cost on the same data sample.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. Its tailored control is to define governed date and time-zone conversion rules for consistent business reporting periods. In the present situation the more direct exposure is that adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table.
B:This failure mode belongs chiefly to another situation: Executives see different net-revenue definitions in Looker dashboards maintained by three departments. Its tailored control is to centralize governed business measures in a reviewed Looker semantic model with explicit source contracts. In the present situation the more direct exposure is that adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table.
D:This failure mode belongs chiefly to another situation: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. Its tailored control is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. In the present situation the more direct exposure is that adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table.
Question 292
The team accepts this control: Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. What observable result should its acceptance test verify?
- Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
- A peak write/read test shows even tablet load and bounded query latency for chosen row-key ranges.
- An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
- A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Explanation
Correct Answer
D:This is the decisive test result: A price update invalidates or refreshes its cache entry and the source database remains authoritative. It directly validates the implementation to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. The underlying case is: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. This matters because a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes. Without it, stale cached prices can reach customers if invalidation and expiration are not defined.
Incorrect Answers
A:This is proof for a different safeguard: Use Cloud SQL for a supported relational database workload with managed backup and availability options. That applies when a departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The present control instead requires the specific outcome: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
B:This is proof for a different safeguard: Design a Bigtable row-key schema for device and time access patterns with hotspot controls. That applies when a telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The present control instead requires the specific outcome: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
C:This is proof for a different safeguard: Evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. That applies when a data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. The present control instead requires the specific outcome: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Question 293
A production data pipeline has this problem: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. Which solution MOST directly corrects it?
- Correlate quotas, worker logs and API error details with cloud service usage metrics before escalation.
- Monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts.
- Use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
- Route structured Cloud Logging errors into an alert and owned incident response workflow.
Explanation
Correct Answer
B:The appropriate design is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. This addresses the exact constraint: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. The underlying principle is that a job's RUNNING state does not guarantee the pipeline is keeping up with its data source. If omitted, business reports can lag for hours without a failed worker or visible red job status. A direct acceptance test is: An injected sustained backlog crosses the lag threshold and pages the named owner.
Incorrect Answers
A:This action fits a separate situation: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There it would make sense to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. It does not resolve this case, in which a streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. The needed control is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts.
C:This action fits a separate situation: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. There it would make sense to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. It does not resolve this case, in which a streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. The needed control is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts.
D:This action fits a separate situation: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. There it would make sense to route structured Cloud Logging errors into an alert and owned incident response workflow. It does not resolve this case, in which a streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. The needed control is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts.
Question 294
A data platform team encounters this requirement: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. Which implementation is MOST appropriate?
- Use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
- Correlate quotas, worker logs and API error details with cloud service usage metrics before escalation.
- Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity.
- Route structured Cloud Logging errors into an alert and owned incident response workflow.
Explanation
Correct Answer
A:The appropriate design is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. This addresses the exact constraint: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. The underlying principle is that cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice. If omitted, a runaway repeated query can consume budget before an engineer discovers the pattern. A direct acceptance test is: A test budget threshold and billing report identify the intended service, project and spend driver.
Incorrect Answers
B:This action fits a separate situation: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There it would make sense to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. It does not resolve this case, in which a data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. The needed control is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
C:This action fits a separate situation: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. There it would make sense to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. It does not resolve this case, in which a data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. The needed control is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
D:This action fits a separate situation: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. There it would make sense to route structured Cloud Logging errors into an alert and owned incident response workflow. It does not resolve this case, in which a data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. The needed control is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
Question 295
The team is considering: Profile source throughput and worker utilization before changing cluster size or partition design. The context is: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. Which engineering principle is MOST relevant?
- Short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
- Provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
- Adding compute does not solve an upstream I/O bottleneck that starves processing workers.
- Resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
Explanation
Correct Answer
C:The governing principle is that adding compute does not solve an upstream I/O bottleneck that starves processing workers. It explains why the team should profile source throughput and worker utilization before changing cluster size or partition design. The current problem is: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. Without the safeguard, cost rises as unused workers wait for the same restricted data access path. A suitable proof is: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
Incorrect Answers
A:That principle applies primarily to a different design condition: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. There the relevant engineering response is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. For the given case, the controlling rationale is that adding compute does not solve an upstream I/O bottleneck that starves processing workers.
B:That principle applies primarily to a different design condition: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. There the relevant engineering response is to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. For the given case, the controlling rationale is that adding compute does not solve an upstream I/O bottleneck that starves processing workers.
D:That principle applies primarily to a different design condition: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. There the relevant engineering response is to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. For the given case, the controlling rationale is that adding compute does not solve an upstream I/O bottleneck that starves processing workers.
Question 296
The team accepts this control: Retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria. What observable result should its acceptance test verify?
- A rollback rehearsal restores the previous reporting route while preserving changes accumulated during the test.
- Both systems produce matching audited revenue and customer counts for a defined reconciliation window.
- The transfer runs over the approved private path and measured throughput meets the migration plan.
- Tests around daylight-saving transitions and mixed-case keys match an approved source-system oracle.
Explanation
Correct Answer
A:This is the decisive test result: A rollback rehearsal restores the previous reporting route while preserving changes accumulated during the test. It directly validates the implementation to retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria. The underlying case is: A cutover plan overwrites old source extracts immediately and offers no route back if target reporting fails. This matters because a safe migration plan preserves a recoverable prior state until downstream consumers accept the replacement. Without it, an undetected target defect can leave the business with neither a trusted new table nor a usable old view.
Incorrect Answers
B:This is proof for a different safeguard: Run parallel output validation and reconcile critical business totals by period before final switching. That applies when a retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. The present control instead requires the specific outcome: A rollback rehearsal restores the previous reporting route while preserving changes accumulated during the test.
C:This is proof for a different safeguard: Choose supported private connectivity and route throughput tests before bulk migration begins. That applies when a migration copies large databases over a public route that violates internal network isolation requirements. The present control instead requires the specific outcome: A rollback rehearsal restores the previous reporting route while preserving changes accumulated during the test.
D:This is proof for a different safeguard: Map time zones, collations and data types explicitly and validate representative migration edge cases. That applies when a source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The present control instead requires the specific outcome: A rollback rehearsal restores the previous reporting route while preserving changes accumulated during the test.
Question 297
A pipeline team implements the measure: Apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. Which result would provide the STRONGEST operational evidence of effectiveness?
- A broad query hits the configured cost guardrail while a bounded analysis succeeds.
- The batch job waits appropriately while a protected interactive query meets its response SLO.
- A peak concurrency test shows acceptable queue time under the selected reservation policy.
- Reservation metrics attribute slot consumption to the expected projects and agree with the schedule.
Explanation
Correct Answer
A:This is the decisive test result: A broad query hits the configured cost guardrail while a bounded analysis succeeds. It directly validates the implementation to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. The underlying case is: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. This matters because business workload governance requires financial guardrails in addition to technical query correctness. Without it, an accidental query without filters may scan far more data than the team is authorized to spend.
Incorrect Answers
B:This is proof for a different safeguard: Choose suitable interactive or batch query priority and scheduling policies for the business use case. That applies when a data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. The present control instead requires the specific outcome: A broad query hits the configured cost guardrail while a bounded analysis succeeds.
C:This is proof for a different safeguard: Review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. That applies when a BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. The present control instead requires the specific outcome: A broad query hits the configured cost guardrail while a bounded analysis succeeds.
D:This is proof for a different safeguard: Define reservation assignments or chargeback attribution by project and monitor edition/slot usage. That applies when different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The present control instead requires the specific outcome: A broad query hits the configured cost guardrail while a bounded analysis succeeds.
Question 298
The team accepts this control: Use time-aware feature joins and hold out future periods so training information precedes each prediction point. What observable result should its acceptance test verify?
- The same raw test entity produces matching approved feature vectors in offline and online paths.
- A scheduled prediction produces one scored record per eligible account and meets agreed relevance metrics.
- An as-of-time validation finds no feature values timestamped after their prediction events.
- A restricted test identity receives no matching passages from documents it cannot access.
Explanation
Correct Answer
C:This is the decisive test result: An as-of-time validation finds no feature values timestamped after their prediction events. It directly validates the implementation to use time-aware feature joins and hold out future periods so training information precedes each prediction point. The underlying case is: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. This matters because temporal leakage produces unrealistic evaluation scores when future data enters historical feature construction. Without it, a model may appear highly accurate offline but fail when deployed with only information available at request time.
Incorrect Answers
A:This is proof for a different safeguard: Version feature transformations and validate training-serving parity before model promotion. That applies when an online model receives categorical features computed differently from the training query maintained in BigQuery. The present control instead requires the specific outcome: An as-of-time validation finds no feature values timestamped after their prediction events.
B:This is proof for a different safeguard: Evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. That applies when a business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. The present control instead requires the specific outcome: An as-of-time validation finds no feature values timestamped after their prediction events.
D:This is proof for a different safeguard: Apply document entitlement filtering and privacy controls before and during embedding retrieval. That applies when a RAG project creates embeddings from confidential contracts and places them in a vector store accessible to every employee. The present control instead requires the specific outcome: An as-of-time validation finds no feature values timestamped after their prediction events.
Question 299
An architecture proposal calls for: Review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. In this case: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. Which rationale MOST strongly supports the choice?
- Precomputed aggregates can serve recurring BI queries more efficiently when the refresh and query requirements align.
- A shared semantic layer reduces contradictory metric calculations across independently authored visualizations.
- Business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
- Query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute.
Explanation
Correct Answer
D:The governing principle is that query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute. It explains why the team should review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. The current problem is: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. Without the safeguard, adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table. A suitable proof is: The revised query produces matching results with lower shuffle or scan cost on the same data sample.
Incorrect Answers
A:That principle applies primarily to a different design condition: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. There the relevant engineering response is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. For the given case, the controlling rationale is that query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute.
B:That principle applies primarily to a different design condition: Executives see different net-revenue definitions in Looker dashboards maintained by three departments. There the relevant engineering response is to centralize governed business measures in a reviewed Looker semantic model with explicit source contracts. For the given case, the controlling rationale is that query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute.
C:That principle applies primarily to a different design condition: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. There the relevant engineering response is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. For the given case, the controlling rationale is that query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute.
Question 300
A data platform team encounters this requirement: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. Which implementation is MOST appropriate?
- Inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource.
- Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity.
- Use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers.
- Correlate quotas, worker logs and API error details with cloud service usage metrics before escalation.
Explanation
Correct Answer
B:The appropriate design is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. This addresses the exact constraint: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The underlying principle is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits. If omitted, a skewed join may remain slow even after costly reservation expansion. A direct acceptance test is: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
Incorrect Answers
A:This action fits a separate situation: A warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. There it would make sense to inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. It does not resolve this case, in which bigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The needed control is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity.
C:This action fits a separate situation: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. There it would make sense to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. It does not resolve this case, in which bigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The needed control is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity.
D:This action fits a separate situation: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There it would make sense to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. It does not resolve this case, in which bigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The needed control is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity.