Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 55
Question 540
An architecture proposal calls for: Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. In this case: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. Which rationale MOST strongly supports the choice?
- Storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
- Resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
- Elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
- Adding compute does not solve an upstream I/O bottleneck that starves processing workers.
Explanation
Correct Answer
B:The governing principle is that resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size. It explains why the team should right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. The current problem is: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. Without the safeguard, overprovisioning wastes cost while underprovisioning may cause out-of-memory retries. A suitable proof is: Worker telemetry validates a cheaper parsing configuration and sufficient memory for the join stage.
Incorrect Answers
A: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 resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
C:That principle applies primarily to a different design condition: A Dataflow job falls behind during flash-sale traffic but uses fixed worker capacity sized for ordinary days. There the relevant engineering response is to tune supported Dataflow autoscaling and worker constraints against peak backlog and latency objectives. For the given case, the controlling rationale is that resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
D: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 resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
Question 541
An architect must address the following condition: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. Which approach should be selected?
- Design stable order identifiers and idempotent MERGE or deduplication at the reporting sink.
- Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover.
- Validate critical fields, expected uniqueness and population-level reconciliation before publication.
- Introduce schema and business-rule validation with quarantined records and explicit correction procedures.
Explanation
Correct Answer
D:The appropriate design is to introduce schema and business-rule validation with quarantined records and explicit correction procedures. This addresses the exact constraint: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. The underlying principle is that input quality gates prevent plausible but wrong values from silently contaminating downstream financial aggregates. If omitted, wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails. A direct acceptance test is: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
Incorrect Answers
A:This action fits a separate situation: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. There it would make sense to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. It does not resolve this case, in which a merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. The needed control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures.
B:This action fits a separate situation: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. There it would make sense to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. It does not resolve this case, in which a merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. The needed control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures.
C:This action fits a separate situation: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. There it would make sense to validate critical fields, expected uniqueness and population-level reconciliation before publication. It does not resolve this case, in which a merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. The needed control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures.
Question 542
An organization does not implement the safeguard: Publish a documented versioned data product interface with owners, contracts and deprecation checks. In the following situation, internal teams expose raw tables directly as products and change column names without notifying consumers. Which failure is MOST likely?
- An unannounced schema edit can break dozens of dashboards and ML features simultaneously.
- Broad project roles can grant unintended write access and make departmental chargeback untraceable.
- A confidential column can appear in a copied dataset without its required access restrictions.
- Without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
Explanation
Correct Answer
A:The specific residual risk is that an unannounced schema edit can break dozens of dashboards and ML features simultaneously. The situation is: Internal teams expose raw tables directly as products and change column names without notifying consumers. The missing response is to publish a documented versioned data product interface with owners, contracts and deprecation checks. The engineering reason is that a reusable data platform should treat published analytical datasets as governed contracts for dependent teams. After remediation, verify: A contract test detects a breaking field change before downstream consumers receive the new version.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A company creates one Google Cloud project for every analyst and gives them broad permissions to all production datasets. Its tailored control is to define a project and dataset hierarchy separating teams, environments and shared governed assets. In the present situation the more direct exposure is that an unannounced schema edit can break dozens of dashboards and ML features simultaneously.
C:This failure mode belongs chiefly to another situation: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. Its tailored control is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. In the present situation the more direct exposure is that an unannounced schema edit can break dozens of dashboards and ML features simultaneously.
D:This failure mode belongs chiefly to another situation: A regulated analytics program cannot trace its report fields through source systems after an audit query. Its tailored control is to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. In the present situation the more direct exposure is that an unannounced schema edit can break dozens of dashboards and ML features simultaneously.
Question 543
Consider a Google Cloud data engineering design: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. What action BEST meets the stated constraint?
- Define BigQuery row access policies linked to authorized territory principals rather than copying all rows into shared dashboards.
- Configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures.
- Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys.
- Combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization.
Explanation
Correct Answer
D:The appropriate design is to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. This addresses the exact constraint: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The underlying principle is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions. If omitted, a principal inside the perimeter might improperly gain access if broad table roles remain unchanged. A direct acceptance test is: An unauthorized in-perimeter identity is denied table access even though its network context satisfies perimeter policy.
Incorrect Answers
A:This action fits a separate situation: Regional account managers share one BigQuery sales table but must see only rows belonging to their assigned territory. There it would make sense to define BigQuery row access policies linked to authorized territory principals rather than copying all rows into shared dashboards. It does not resolve this case, in which security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The needed control is to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization.
B:This action fits a separate situation: A healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. There it would make sense to configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. It does not resolve this case, in which security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The needed control is to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization.
C:This action fits a separate situation: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. There it would make sense to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. It does not resolve this case, in which security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The needed control is to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization.
Question 544
The team accepts this control: Compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets. What observable result should its acceptance test verify?
- A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
- A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
- A forced sink timeout and retry yield one externally recorded charge per business transaction.
- A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
Explanation
Correct Answer
B:This is the decisive test result: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries. It directly validates the implementation to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets. The underlying case is: A high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. This matters because object layout and file size influence metadata overhead and scan efficiency in analytical engines. Without it, excess small files can overwhelm listing operations and degrade batch query performance.
Incorrect Answers
A:This is proof for a different safeguard: Run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. That applies when an existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. The present control instead requires the specific outcome: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
C:This is proof for a different safeguard: Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. That applies when a Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. The present control instead requires the specific outcome: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
D:This is proof for a different safeguard: Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. That applies when a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The present control instead requires the specific outcome: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
Question 545
A data platform team encounters this requirement: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Which implementation is MOST appropriate?
- Track data freshness and completeness SLIs alongside job execution status and route threshold breaches.
- Select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline.
- Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
- Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities.
Explanation
Correct Answer
A:The appropriate design is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches. This addresses the exact constraint: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. The underlying principle is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs. If omitted, an outdated dashboard may drive incorrect operational decisions despite an all-green job list. A direct acceptance test is: A simulated source delay triggers a freshness alert even when the pipeline reports no task failure.
Incorrect Answers
B:This action fits a separate situation: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. There it would make sense to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. It does not resolve this case, in which daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. The needed control is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches.
C:This action fits a separate situation: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. There it would make sense to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. It does not resolve this case, in which daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. The needed control is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches.
D:This action fits a separate situation: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There it would make sense to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. It does not resolve this case, in which daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. The needed control is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches.
Question 546
A data platform team encounters this requirement: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. Which implementation is MOST appropriate?
- Chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality.
- Choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types.
- Evaluate supported BigQuery ML training and evaluation on the governed analytical dataset.
- Use time-aware feature joins and hold out future periods so training information precedes each prediction point.
Explanation
Correct Answer
C:The appropriate design is to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset. This addresses the exact constraint: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. The underlying principle is that in-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance. If omitted, unnecessary data exports can create extra security boundaries and versioning inconsistencies. A direct acceptance test is: A held-out evaluation produces documented quality metrics and a traceable model version using the governed tables.
Incorrect Answers
A:This action fits a separate situation: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. There it would make sense to chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. It does not resolve this case, in which an analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. The needed control is to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset.
B:This action fits a separate situation: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. There it would make sense to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. It does not resolve this case, in which an analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. The needed control is to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset.
D:This action fits a separate situation: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. There it would make sense to use time-aware feature joins and hold out future periods so training information precedes each prediction point. It does not resolve this case, in which an analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. The needed control is to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset.
Question 547
An architect must address the following condition: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. Which approach should be selected?
- Partition the table on an appropriate event-date field and enforce qualifying partition filters.
- Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table.
- Require partition filters and apply authorized maximum bytes billed or query cost controls where appropriate.
- Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
Explanation
Correct Answer
A:The appropriate design is to partition the table on an appropriate event-date field and enforce qualifying partition filters. This addresses the exact constraint: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. The underlying principle is that partition pruning reduces BigQuery bytes scanned when filters select the partitioning column. If omitted, scanning unneeded historical partitions can make daily reporting expensive and slow. A direct acceptance test is: A query dry run and execution scan only expected dates and show reduced bytes processed.
Incorrect Answers
B:This action fits a separate situation: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. There it would make sense to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. It does not resolve this case, in which a BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. The needed control is to partition the table on an appropriate event-date field and enforce qualifying partition filters.
C:This action fits a separate situation: A reporting query accidentally scans an entire petabyte BigQuery table because an analyst omits a date filter. There it would make sense to require partition filters and apply authorized maximum bytes billed or query cost controls where appropriate. It does not resolve this case, in which a BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. The needed control is to partition the table on an appropriate event-date field and enforce qualifying partition filters.
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 BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. The needed control is to partition the table on an appropriate event-date field and enforce qualifying partition filters.
Question 548
The design review proposes the following action: Schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry. The triggering condition is: A Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. Which technical principle BEST justifies it?
- Pipeline release automation must treat credentials as controlled secrets rather than ordinary build parameters.
- Orchestration retries require idempotent transformation and publication boundaries.
- Pipeline deployment should be reproducible from reviewed source and an immutable artifact reference.
- Simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices.
Explanation
Correct Answer
D:The governing principle is that simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices. It explains why the team should schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry. The current problem is: A Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. Without the safeguard, an unauthenticated endpoint or missing retry logic may result in missed or duplicate cleanup work. A suitable proof is: The scheduled invocation reaches only the protected service and a duplicate call changes no additional records.
Incorrect Answers
A:That principle applies primarily to a different design condition: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. There the relevant engineering response is to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. For the given case, the controlling rationale is that simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices.
B:That principle applies primarily to a different design condition: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. There the relevant engineering response is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. For the given case, the controlling rationale is that simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices.
C:That principle applies primarily to a different design condition: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. There the relevant engineering response is to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. For the given case, the controlling rationale is that simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices.
Question 549
A data engineer recommends: Tune supported Dataflow autoscaling and worker constraints against peak backlog and latency objectives. It addresses: A Dataflow job falls behind during flash-sale traffic but uses fixed worker capacity sized for ordinary days. What underlying principle explains the recommendation?
- Cost optimization starts with reducing unnecessary data scanned while preserving analytical correctness.
- Adding compute does not solve an upstream I/O bottleneck that starves processing workers.
- Elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
- Provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
Explanation
Correct Answer
C:The governing principle is that elastic processing capacity should respond to workload changes while respecting service quotas and cost limits. It explains why the team should tune supported Dataflow autoscaling and worker constraints against peak backlog and latency objectives. The current problem is: A Dataflow job falls behind during flash-sale traffic but uses fixed worker capacity sized for ordinary days. Without the safeguard, a sales event can generate hours of backlog despite sufficient steady-state processing speed. A suitable proof is: A load surge increases allowed workers and backlog returns below the freshness threshold.
Incorrect Answers
A:That principle applies primarily to a different design condition: A scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. There the relevant engineering response is to apply partition pruning and measure bytes processed before increasing compute or running frequency. For the given case, the controlling rationale is that elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
B: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 elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
D: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 elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
Question 550
The proposed safeguard is not implemented: Create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. The data platform currently faces: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. What direct risk remains?
- Interactive dashboards may time out while repeatedly scanning full historical event logs.
- Adding slots alone may not cure a Cartesian join or an incorrectly duplicated fact table.
- A broadly shared visualization can expose identifiable employee compensation details.
- Repeated expensive aggregation can saturate shared analytics resources and delay reporting.
Explanation
Correct Answer
A:The specific residual risk is that interactive dashboards may time out while repeatedly scanning full historical event logs. The situation is: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. The missing response is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. The engineering reason is that business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics. After remediation, verify: A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. Its tailored control is to review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. In the present situation the more direct exposure is that interactive dashboards may time out while repeatedly scanning full historical event logs.
C:This failure mode belongs chiefly to another situation: A report exposes employee compensation ranges but should hide direct salary amounts from most readers. Its tailored control is to use supported dynamic data masking or column-level authorization with a non-sensitive published calculation. In the present situation the more direct exposure is that interactive dashboards may time out while repeatedly scanning full historical event logs.
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 interactive dashboards may time out while repeatedly scanning full historical event logs.