Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 12
Question 110
The design review proposes the following action: Track data freshness and completeness SLIs alongside job execution status and route threshold breaches. The triggering condition is: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Which technical principle BEST justifies it?
- Pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
- Fault tolerance requires coordinated recovery of source position and processing state after interruption.
- A processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems.
- AI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
Explanation
Correct Answer
A:The governing principle is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs. It explains why the team should track data freshness and completeness SLIs alongside job execution status and route threshold breaches. The current problem is: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Without the safeguard, an outdated dashboard may drive incorrect operational decisions despite an all-green job list. A suitable proof is: A simulated source delay triggers a freshness alert even when the pipeline reports no task failure.
Incorrect Answers
B:That principle applies primarily to a different design condition: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. There the relevant engineering response is to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
C:That principle applies primarily to a different design condition: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. There the relevant engineering response is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
D:That principle applies primarily to a different design condition: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There the relevant engineering response is to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
Question 111
A pipeline team implements the measure: Apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. Which result would provide the STRONGEST operational evidence of effectiveness?
- A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
- A compaction benchmark reduces object count and metadata latency while preserving row counts.
- Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
- An approved analyst can read public lake partitions but is denied access to classified employee data.
Explanation
Correct Answer
C:This is the decisive test result: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds. It directly validates the implementation to apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. The underlying case is: A media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. This matters because a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely. Without it, uniform hot storage can create avoidable expense or manual cleanup can delete held records.
Incorrect Answers
A:This is proof for a different safeguard: Keep protected raw data and publish separately validated curated datasets with explicit lineage references. That applies when a lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The present control instead requires the specific outcome: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
B:This is proof for a different safeguard: Reorganize lake object partitions and compact small files according to query frequency and ingestion windows. That applies when an S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The present control instead requires the specific outcome: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
D:This is proof for a different safeguard: Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. That applies when teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The present control instead requires the specific outcome: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
Question 112
A production review examines this scenario: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. The team adopts: Evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. Which test BEST establishes the control works?
- A catalog query traces the risk feature back to raw objects, transformations and named owners.
- An approved analyst can read public lake partitions but is denied access to classified employee data.
- Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
- Independent engines read a representative column subset with matching types and expected row counts.
Explanation
Correct Answer
C:This is the decisive test result: Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction. It directly validates the implementation to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. The underlying case is: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. This matters because lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol. Without it, enabling incompatible writers can expose readers to partial commits or inconsistent schema snapshots.
Incorrect Answers
A:This is proof for a different safeguard: Publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. That applies when object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. The present control instead requires the specific outcome: Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
B:This is proof for a different safeguard: Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. That applies when teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The present control instead requires the specific outcome: Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
D:This is proof for a different safeguard: Use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. That applies when a data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. The present control instead requires the specific outcome: Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
Question 113
A data engineer recommends: Decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. It addresses: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. What underlying principle explains the recommendation?
- Evolvable contracts let diverse data producers change nonbreaking fields without corrupting shared consumers.
- Durable staging separates source acquisition from later transformation and supports controlled replay.
- An architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
- Loose coupling limits replacement costs when data processing systems evolve independently.
Explanation
Correct Answer
D:The governing principle is that loose coupling limits replacement costs when data processing systems evolve independently. It explains why the team should decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. The current problem is: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. Without the safeguard, embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive. A suitable proof is: A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
Incorrect Answers
A:That principle applies primarily to a different design condition: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. There the relevant engineering response is to use documented schema evolution and compatibility checks with an explicit canonical representation. For the given case, the controlling rationale is that loose coupling limits replacement costs when data processing systems evolve independently.
B:That principle applies primarily to a different design condition: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. There the relevant engineering response is to land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. For the given case, the controlling rationale is that loose coupling limits replacement costs when data processing systems evolve independently.
C:That principle applies primarily to a different design condition: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. There the relevant engineering response is to model future event volume, latency and retention tiers before fixing component and partitioning choices. For the given case, the controlling rationale is that loose coupling limits replacement costs when data processing systems evolve independently.
Question 114
A data platform team encounters this requirement: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. Which implementation is MOST appropriate?
- Encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration.
- Use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior.
- Use Cloud Workflows conditional steps and bounded error handling with a defined compensation path.
- Implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
Explanation
Correct Answer
C:The appropriate design is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. This addresses the exact constraint: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. The underlying principle is that multi-service workflows require explicit failure transitions instead of unconditional next-step execution. If omitted, a partial transaction can leave orphaned staged data and misleading completion status. A direct acceptance test is: A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
Incorrect Answers
A:This action fits a separate situation: A Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. There it would make sense to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. It does not resolve this case, in which a serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. The needed control is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path.
B:This action fits a separate situation: A single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. There it would make sense to use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. It does not resolve this case, in which a serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. The needed control is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path.
D:This action fits a separate situation: Historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. There it would make sense to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation. It does not resolve this case, in which a serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. The needed control is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path.
Question 115
The team is considering: Design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. The context is: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. Which engineering principle is MOST relevant?
- Metadata discovery and governance can be centralized logically without moving all source data across borders.
- Data platform traceability requires connecting source lineage and transformations to final published data products.
- Machine-enforced classifications help governance policies persist across independently managed data assets.
- A data platform needs coherent metadata, access and data-quality practices across multiple storage systems.
Explanation
Correct Answer
D:The governing principle is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems. It explains why the team should design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. The current problem is: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. Without the safeguard, independent projects may publish incompatible definitions and leave sensitive datasets unclassified. A suitable proof is: An asset inventory spans both warehouse and lake sources with consistent ownership and access policy.
Incorrect Answers
A:That principle applies primarily to a different design condition: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. There the relevant engineering response is to use federated catalog discovery and region-aware access patterns while retaining approved storage locations. For the given case, the controlling rationale is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems.
B:That principle applies primarily to a different design condition: A regulated analytics program cannot trace its report fields through source systems after an audit query. There the relevant engineering response is to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. For the given case, the controlling rationale is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems.
C:That principle applies primarily to a different design condition: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. There the relevant engineering response is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. For the given case, the controlling rationale is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems.
Question 116
The proposed safeguard is not implemented: Inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. The data platform currently faces: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. What direct risk remains?
- A public or underprovisioned transfer path can expose data and extend the migration beyond the agreed window.
- A custom script may miss pagination, authentication renewal or late source corrections.
- A temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
- Transactions can move into the wrong reporting day and join keys can stop matching after migration.
Explanation
Correct Answer
C:The specific residual risk is that a temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant. The situation is: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. The missing response is to inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. The engineering reason is that a compliant migration must account for temporary copies as well as final data residence. After remediation, verify: The migration inventory and access logs show every staging and destination resource uses an allowed location.
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 temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
B:This failure mode belongs chiefly to another situation: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. Its tailored control is to check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. In the present situation the more direct exposure is that a temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
D: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 temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
Question 117
An organization does not implement the safeguard: Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. In the following situation, bigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. Which failure is MOST likely?
- Repeated blind retries can amplify cost and never increase allowed service capacity.
- Business reports can lag for hours without a failed worker or visible red job status.
- A skewed join may remain slow even after costly reservation expansion.
- A runaway repeated query can consume budget before an engineer discovers the pattern.
Explanation
Correct Answer
C:The specific residual risk is that a skewed join may remain slow even after costly reservation expansion. The situation is: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The missing response is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. The engineering reason is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits. After remediation, verify: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. Its tailored control is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. In the present situation the more direct exposure is that a skewed join may remain slow even after costly reservation expansion.
B:This failure mode belongs chiefly to another situation: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. Its tailored control is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. In the present situation the more direct exposure is that a skewed join may remain slow even after costly reservation expansion.
D:This failure mode belongs chiefly to another situation: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. Its tailored control is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. In the present situation the more direct exposure is that a skewed join may remain slow even after costly reservation expansion.
Question 118
An organization does not implement the safeguard: Apply partition pruning and measure bytes processed before increasing compute or running frequency. In the following situation, a scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. Which failure is MOST likely?
- Cost rises as unused workers wait for the same restricted data access path.
- One hot reducer can dominate runtime while the rest of the cluster remains underused.
- Persistent workers can create excessive cost for a small daily processing window.
- Unbounded scans can consume a large budget without improving the freshness of any report.
Explanation
Correct Answer
D:The specific residual risk is that unbounded scans can consume a large budget without improving the freshness of any report. The situation is: A scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. The missing response is to apply partition pruning and measure bytes processed before increasing compute or running frequency. The engineering reason is that cost optimization starts with reducing unnecessary data scanned while preserving analytical correctness. After remediation, verify: A before-and-after execution shows the same business total with sharply lower bytes billed.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. Its tailored control is to profile source throughput and worker utilization before changing cluster size or partition design. In the present situation the more direct exposure is that unbounded scans can consume a large budget without improving the freshness of any report.
B:This failure mode belongs chiefly to another situation: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. Its tailored control is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. In the present situation the more direct exposure is that unbounded scans can consume a large budget without improving the freshness of any report.
C: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 unbounded scans can consume a large budget without improving the freshness of any report.
Question 119
The team accepts this control: Assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. What observable result should its acceptance test verify?
- 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.
- A broad query hits the configured cost guardrail while a bounded analysis succeeds.
- A load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
Explanation
Correct Answer
D:This is the decisive test result: A load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled. It directly validates the implementation to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. The underlying case is: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. This matters because workload isolation prevents long-running transforms from consuming the resources needed by time-sensitive queries. Without it, a bulk nightly ETL can starve executive dashboards during the reporting window.
Incorrect Answers
A: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 load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
B: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 load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
C:This is proof for a different safeguard: Apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. That applies when a finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The present control instead requires the specific outcome: A load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
Question 120
A data engineer recommends: Introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy. It addresses: A JSON event producer adds nested optional fields and several records fail parsing without any retained diagnostics. What underlying principle explains the recommendation?
- Schema change handling requires observable invalid records and explicit compatibility rules.
- Triggers can emit provisional windows before final event-time completeness is known.
- Versioned pipeline artifacts improve reproducibility of deployment and rollback across environments.
- A managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic.
Explanation
Correct Answer
A:The governing principle is that schema change handling requires observable invalid records and explicit compatibility rules. It explains why the team should introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy. The current problem is: A JSON event producer adds nested optional fields and several records fail parsing without any retained diagnostics. Without the safeguard, malformed events can disappear from metrics or propagate incorrect null fields into fact tables. A suitable proof is: An incompatible test payload appears in a quarantine output with a reason while valid events remain available.
Incorrect Answers
B:That principle applies primarily to a different design condition: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. There the relevant engineering response is to configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. For the given case, the controlling rationale is that schema change handling requires observable invalid records and explicit compatibility rules.
C:That principle applies primarily to a different design condition: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. There the relevant engineering response is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. For the given case, the controlling rationale is that schema change handling requires observable invalid records and explicit compatibility rules.
D:That principle applies primarily to a different design condition: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. There the relevant engineering response is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. For the given case, the controlling rationale is that schema change handling requires observable invalid records and explicit compatibility rules.