Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 29
Question 280
The team is considering: Measure expected peak resource demand and request supported quotas or reservations before capacity expansion. The context is: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. Which engineering principle is MOST relevant?
- Adding compute does not solve an upstream I/O bottleneck that starves processing workers.
- Storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
- Provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
- Data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
Explanation
Correct Answer
C:The governing principle is that provisioning plans must account for platform quotas and enforceable workload capacity boundaries. It explains why the team should measure expected peak resource demand and request supported quotas or reservations before capacity expansion. The current problem is: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. Without the safeguard, a planned increase in event volume can fail at quota limits despite adequate apparent cloud capacity. A suitable proof is: A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
Incorrect Answers
A:That principle applies primarily to a different design condition: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. There the relevant engineering response is to profile source throughput and worker utilization before changing cluster size or partition design. For the given case, the controlling rationale is that provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
B:That principle applies primarily to a different design condition: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. There the relevant engineering response is to configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. For the given case, the controlling rationale is that provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
D:That principle applies primarily to a different design condition: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. There the relevant engineering response is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. For the given case, the controlling rationale is that provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
Question 281
The engineering team ignores the recommended change: Use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink. The current state is: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. What is the greatest specific exposure?
- Reports may exclude delayed devices or silently revise totals after users believe the window closed.
- A producer release can break consumers when numeric IDs replace previously used strings.
- Unmasked customer identifiers may leave the authorized processing boundary and create disclosure risk.
- Sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
Explanation
Correct Answer
D:The specific residual risk is that sending every event synchronously to the warehouse can create application latency and lost events during demand spikes. The situation is: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. The missing response is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink. The engineering reason is that decoupled messaging absorbs independent producer and consumer rates without blocking the mobile transaction. After remediation, verify: An injected surge is retained in the subscription and eventually reconciles to the expected analytical count.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: An IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. Its tailored control is to specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. In the present situation the more direct exposure is that sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
B:This failure mode belongs chiefly to another situation: Two upstream teams publish JSON with different values and types for the same field called transaction_id. Its tailored control is to agree a versioned event schema and producer contract, including compatibility and error-handling policy. In the present situation the more direct exposure is that sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
C:This failure mode belongs chiefly to another situation: A third-party supplier proposes sending customer PII to a general-purpose enrichment API before anonymization. Its tailored control is to plan an approved de-identification stage and data-contract checks before external enrichment requests. In the present situation the more direct exposure is that sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
Question 282
A production data pipeline has this problem: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. Which solution MOST directly corrects it?
- Use Cloud SQL for a supported relational database workload with managed backup and availability options.
- Redesign the row key using device or hash prefixes and validate distribution against typical range queries.
- Use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
- Evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design.
Explanation
Correct Answer
C:The appropriate design is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. This addresses the exact constraint: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. The underlying principle is that bigQuery is designed for scalable analytical SQL rather than serving high-frequency single-row OLTP updates. If omitted, choosing an operational key-value store would make broad multi-terabyte analytical joins inefficient. A direct acceptance test is: A representative analytical query meets freshness and cost goals without dedicated database instance administration.
Incorrect Answers
A:This action fits a separate situation: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. There it would make sense to use Cloud SQL for a supported relational database workload with managed backup and availability options. It does not resolve this case, in which a retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. The needed control is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
B:This action fits a separate situation: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. There it would make sense to redesign the row key using device or hash prefixes and validate distribution against typical range queries. It does not resolve this case, in which a retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. The needed control is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
D:This action fits a separate situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There it would make sense to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. It does not resolve this case, in which a retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. The needed control is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
Question 283
A project declines to apply this measure: Enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. It faces: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. Which consequence is MOST directly unresolved?
- An unavailable or disabled key can make otherwise authorized analytical data temporarily unreadable.
- Granting broad project Owner access to fix the error would expose unrelated financial data and administration.
- A suspected export may be impossible to attribute if data-access logs are disabled or discarded.
- A developer test can truncate the production reporting table or modify production data unexpectedly.
Explanation
Correct Answer
C:The specific residual risk is that a suspected export may be impossible to attribute if data-access logs are disabled or discarded. The situation is: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The missing response is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. The engineering reason is that sensitive-data access accountability requires auditable identity and activity records with controlled retention. After remediation, verify: A controlled sensitive-table query produces a retained audit event identifying the querying principal and resource.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. Its tailored control is to configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. In the present situation the more direct exposure is that a suspected export may be impossible to attribute if data-access logs are disabled or discarded.
B:This failure mode belongs chiefly to another situation: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. Its tailored control is to grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. In the present situation the more direct exposure is that a suspected export may be impossible to attribute if data-access logs are disabled or discarded.
D:This failure mode belongs chiefly to another situation: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Its tailored control is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. In the present situation the more direct exposure is that a suspected export may be impossible to attribute if data-access logs are disabled or discarded.
Question 284
The team accepts this control: Introduce schema and business-rule validation with quarantined records and explicit correction procedures. What observable result should its acceptance test verify?
- Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
- A controlled worker restart resumes consumption and reconciles the output event inventory to the source.
- A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
- A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
Explanation
Correct Answer
C:This is the decisive test result: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals. It directly validates the implementation to introduce schema and business-rule validation with quarantined records and explicit correction procedures. The underlying case is: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. This matters because input quality gates prevent plausible but wrong values from silently contaminating downstream financial aggregates. Without it, wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails.
Incorrect Answers
A:This is proof for a different safeguard: Validate critical fields, expected uniqueness and population-level reconciliation before publication. That applies when an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The present control instead requires the specific outcome: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
B:This is proof for a different safeguard: Select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. That applies when a streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. The present control instead requires the specific outcome: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
D:This is proof for a different safeguard: Set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. That applies when a risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. The present control instead requires the specific outcome: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
Question 285
Consider a Google Cloud data engineering design: A warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. What action BEST meets the stated constraint?
- Use incremental partition-aware transformations and recompute only the required correction horizon.
- Model conformed dimensions and a documented fact table grain before creating reporting views.
- Cluster the partitioned BigQuery table on frequently filtered customer or account columns.
- Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
Explanation
Correct Answer
A:The appropriate design is to use incremental partition-aware transformations and recompute only the required correction horizon. This addresses the exact constraint: A warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. The underlying principle is that incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known. If omitted, full historical rewrites waste query resources and can disrupt long-term retention calculations. A direct acceptance test is: A backfill modifies only the expected partitions and produces the same approved totals as a full reference build.
Incorrect Answers
B:This action fits a separate situation: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. There it would make sense to model conformed dimensions and a documented fact table grain before creating reporting views. It does not resolve this case, in which a warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. The needed control is to use incremental partition-aware transformations and recompute only the required correction horizon.
C:This action fits a separate situation: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. There it would make sense to cluster the partitioned BigQuery table on frequently filtered customer or account columns. It does not resolve this case, in which a warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. The needed control is to use incremental partition-aware transformations and recompute only the required correction horizon.
D:This action fits a separate situation: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. There it would make sense to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. It does not resolve this case, in which a warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. The needed control is to use incremental partition-aware transformations and recompute only the required correction horizon.
Question 286
A production review examines this scenario: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. The team adopts: Inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. Which test BEST establishes the control works?
- A transfer plan demonstrates verifiable arrival counts and encryption controls within the scheduled window.
- The migration inventory and access logs show every staging and destination resource uses an allowed location.
- A scheduled transfer imports the expected source partition and records retry and completion status.
- A source insert, update and delete flow through to the analytical target with consistent business keys.
Explanation
Correct Answer
B:This is the decisive test result: The migration inventory and access logs show every staging and destination resource uses an allowed location. It directly validates the implementation to inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. The underlying case is: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. This matters because a compliant migration must account for temporary copies as well as final data residence. Without it, a temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
Incorrect Answers
A:This is proof for a different safeguard: Evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. That applies when an isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. The present control instead requires the specific outcome: The migration inventory and access logs show every staging and destination resource uses an allowed location.
C:This is proof for a different safeguard: Check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. That applies when an organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. The present control instead requires the specific outcome: The migration inventory and access logs show every staging and destination resource uses an allowed location.
D:This is proof for a different safeguard: Design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. That applies when a legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. The present control instead requires the specific outcome: The migration inventory and access logs show every staging and destination resource uses an allowed location.
Question 287
An architect must address the following condition: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. Which approach should be selected?
- Use supported dynamic data masking or column-level authorization with a non-sensitive published calculation.
- Define governed date and time-zone conversion rules for consistent business reporting periods.
- Push supported filtering and aggregation into BigQuery and return only required summarized columns.
- Serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience.
Explanation
Correct Answer
B:The appropriate design is to define governed date and time-zone conversion rules for consistent business reporting periods. This addresses the exact constraint: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The underlying principle is that analytical measures are comparable only when the time boundary and temporal semantics are documented. If omitted, one transaction can be counted on different reporting days across regional dashboards. A direct acceptance test is: Boundary-time transactions reconcile to the same assigned business date in all approved reports.
Incorrect Answers
A:This action fits a separate situation: A report exposes employee compensation ranges but should hide direct salary amounts from most readers. There it would make sense to use supported dynamic data masking or column-level authorization with a non-sensitive published calculation. It does not resolve this case, in which global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The needed control is to define governed date and time-zone conversion rules for consistent business reporting periods.
C:This action fits a separate situation: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. There it would make sense to push supported filtering and aggregation into BigQuery and return only required summarized columns. It does not resolve this case, in which global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The needed control is to define governed date and time-zone conversion rules for consistent business reporting periods.
D:This action fits a separate situation: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. There it would make sense to serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. It does not resolve this case, in which global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The needed control is to define governed date and time-zone conversion rules for consistent business reporting periods.
Question 288
A project declines to apply this measure: Run parallel output validation and reconcile critical business totals by period before final switching. It faces: A retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. Which consequence is MOST directly unresolved?
- A public or underprovisioned transfer path can expose data and extend the migration beyond the agreed window.
- Transactions can move into the wrong reporting day and join keys can stop matching after migration.
- A technically successful row copy can still introduce incorrect currency or revenue logic in the replacement.
- The migration may miss its deadline because an undersized connection spends months uploading raw objects.
Explanation
Correct Answer
C:The specific residual risk is that a technically successful row copy can still introduce incorrect currency or revenue logic in the replacement. The situation is: A retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. The missing response is to run parallel output validation and reconcile critical business totals by period before final switching. The engineering reason is that a migration is complete only when analytical semantics and business measures match agreed expectations. After remediation, verify: Both systems produce matching audited revenue and customer counts for a defined reconciliation window.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A migration copies large databases over a public route that violates internal network isolation requirements. Its tailored control is to choose supported private connectivity and route throughput tests before bulk migration begins. In the present situation the more direct exposure is that a technically successful row copy can still introduce incorrect currency or revenue logic in the replacement.
B:This failure mode belongs chiefly to another situation: A source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. Its tailored control is to map time zones, collations and data types explicitly and validate representative migration edge cases. In the present situation the more direct exposure is that a technically successful row copy can still introduce incorrect currency or revenue logic in the replacement.
D:This failure mode belongs chiefly to another situation: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. Its tailored control is to evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. In the present situation the more direct exposure is that a technically successful row copy can still introduce incorrect currency or revenue logic in the replacement.
Question 289
The design review proposes the following action: Design idempotent task boundaries with stable run identifiers and transactional target publication. The triggering condition is: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. Which technical principle BEST justifies it?
- Multi-service workflows require explicit failure transitions instead of unconditional next-step execution.
- Repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output.
- Declarative dependency graphs ensure quality gates complete before downstream assets are considered ready.
- Event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications.
Explanation
Correct Answer
B:The governing principle is that repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output. It explains why the team should design idempotent task boundaries with stable run identifiers and transactional target publication. The current problem is: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. Without the safeguard, an automated retry can double count business records in a daily report. A suitable proof is: Running the same DAG execution twice yields one authoritative output per data partition.
Incorrect Answers
A:That principle applies primarily to a different design condition: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. There the relevant engineering response is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. For the given case, the controlling rationale is that repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output.
C:That principle applies primarily to a different design condition: A Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. There the relevant engineering response is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. For the given case, the controlling rationale is that repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output.
D:That principle applies primarily to a different design condition: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. There the relevant engineering response is to use an approved event trigger with object-identity deduplication and downstream orchestration. For the given case, the controlling rationale is that repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output.
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.