Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 25
Question 240
A production review examines this scenario: A multinational organization must keep European patient datasets in an approved European location during processing and storage. The team adopts: Create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. Which test BEST establishes the control works?
- A controlled sensitive-table query produces a retained audit event identifying the querying principal and resource.
- A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
- A retention test expires eligible records while preserving specifically protected items under approved holds.
- Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
Explanation
Correct Answer
B:This is the decisive test result: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations. It directly validates the implementation to create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. The underlying case is: A multinational organization must keep European patient datasets in an approved European location during processing and storage. This matters because a data sovereignty design must account for where storage and processing jobs run, not only the user's login location. Without it, creating a US-region staging table could violate residency policy even when the final report is European.
Incorrect Answers
A:This is proof for a different safeguard: Enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. That applies when a regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
C:This is proof for a different safeguard: Apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. That applies when a data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
D:This is proof for a different safeguard: Use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. That applies when a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
Question 241
A pipeline team implements the measure: Keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. Which result would provide the STRONGEST operational evidence of effectiveness?
- An injected 503 is retried according to policy and the final step runs only after validated success.
- A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition.
- The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
- A release record ties the running job to a reviewed commit, approved image digest and tested rollback.
Explanation
Correct Answer
B:This is the decisive test result: A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition. It directly validates the implementation to keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. The underlying case is: A faulty new streaming transformation is deployed and operators cannot restore the prior version without discarding accumulated data. This matters because changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback. Without it, a quick restart may lose state or duplicate downstream writes during emergency rollback.
Incorrect Answers
A:This is proof for a different safeguard: Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. That applies when a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The present control instead requires the specific outcome: A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition.
C:This is proof for a different safeguard: Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. That applies when a newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The present control instead requires the specific outcome: A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition.
D:This is proof for a different safeguard: Build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. That applies when a Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. The present control instead requires the specific outcome: A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition.
Question 242
An organization does not implement the safeguard: Use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. In the following situation, a sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. Which failure is MOST likely?
- One transaction can be counted on different reporting days across regional dashboards.
- Teams may approve conflicting financial decisions because identical labels mask different formula definitions.
- Repeated expensive aggregation can saturate shared analytics resources and delay reporting.
- Interactive dashboards may time out while repeatedly scanning full historical event logs.
Explanation
Correct Answer
C:The specific residual risk is that repeated expensive aggregation can saturate shared analytics resources and delay reporting. The situation is: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The missing response is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. The engineering reason is that precomputed aggregates can serve recurring BI queries more efficiently when the refresh and query requirements align. After remediation, verify: The materialized aggregate matches the approved source query and reduces processed bytes under typical refreshes.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. Its tailored control is to define governed date and time-zone conversion rules for consistent business reporting periods. In the present situation the more direct exposure is that repeated expensive aggregation can saturate shared analytics resources and delay reporting.
B:This failure mode belongs chiefly to another situation: Executives see different net-revenue definitions in Looker dashboards maintained by three departments. Its tailored control is to centralize governed business measures in a reviewed Looker semantic model with explicit source contracts. In the present situation the more direct exposure is that repeated expensive aggregation can saturate shared analytics resources and delay reporting.
D:This failure mode belongs chiefly to another situation: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. Its tailored control is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. In the present situation the more direct exposure is that repeated expensive aggregation can saturate shared analytics resources and delay reporting.
Question 243
A pipeline team implements the measure: Use documented schema evolution and compatibility checks with an explicit canonical representation. Which result would provide the STRONGEST operational evidence of effectiveness?
- An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
- Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
- A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
- An analyst searches the catalog and locates the correct owned dataset and its upstream origin.
Explanation
Correct Answer
B:This is the decisive test result: Old and new schema versions pass the agreed compatibility test and publish expected canonical fields. It directly validates the implementation to use documented schema evolution and compatibility checks with an explicit canonical representation. The underlying case is: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. This matters because evolvable contracts let diverse data producers change nonbreaking fields without corrupting shared consumers. Without it, a newly added optional field can cause rejected records or unintended null-filled analytics.
Incorrect Answers
A:This is proof for a different safeguard: Land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. That applies when a new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. The present control instead requires the specific outcome: Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
C:This is proof for a different safeguard: Model future event volume, latency and retention tiers before fixing component and partitioning choices. That applies when a growing online business chooses a storage architecture only for today's ten-thousand daily transactions. The present control instead requires the specific outcome: Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
D:This is proof for a different safeguard: Register approved assets in a searchable catalog with owners, descriptions and lineage references. That applies when several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. The present control instead requires the specific outcome: Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
Question 244
A production data pipeline has this problem: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Which solution MOST directly corrects it?
- Use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata.
- Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing.
- Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
- Monitor watermarks, input timestamps and processing lag to understand when windows are considered complete.
Explanation
Correct Answer
C:The appropriate design is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. This addresses the exact constraint: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The underlying principle is that versioned pipeline artifacts improve reproducibility of deployment and rollback across environments. If omitted, an unreviewed worker change can alter production transforms without a traceable release identifier. A direct acceptance test is: Two runs launched from the pinned template report the intended container digest and equivalent sample output.
Incorrect Answers
A:This action fits a separate situation: A bank's relational source updates customer records continuously and the analytics team needs those changes without polling the full table. There it would make sense to use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata. It does not resolve this case, in which a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The needed control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
B:This action fits a separate situation: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. There it would make sense to implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. It does not resolve this case, in which a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The needed control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
D:This action fits a separate situation: A Dataflow stream computes event-time windows but operators mistake the watermark for the time of the last message read. There it would make sense to monitor watermarks, input timestamps and processing lag to understand when windows are considered complete. It does not resolve this case, in which a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The needed control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
Question 245
An organization does not implement the safeguard: Use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. In the following situation, an order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. Which failure is MOST likely?
- A delayed older update can overwrite a more recent customer address and corrupt reporting history.
- A network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
- An inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards.
- A shipment cancellation could be processed before its creation event when order keys are missing.
Explanation
Correct Answer
A:The specific residual risk is that a delayed older update can overwrite a more recent customer address and corrupt reporting history. The situation is: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. The missing response is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. The engineering reason is that upserts require handling duplicate and out-of-order updates to preserve the intended latest record. After remediation, verify: Out-of-order test updates leave the target at the correct source version with no duplicate keys.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. Its tailored control is to implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. In the present situation the more direct exposure is that a delayed older update can overwrite a more recent customer address and corrupt reporting history.
C:This failure mode belongs chiefly to another situation: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. Its tailored control is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. In the present situation the more direct exposure is that a delayed older update can overwrite a more recent customer address and corrupt reporting history.
D:This failure mode belongs chiefly to another situation: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. Its tailored control is to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. In the present situation the more direct exposure is that a delayed older update can overwrite a more recent customer address and corrupt reporting history.
Question 246
The engineering team ignores the recommended change: Run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. The current state is: An existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. What is the greatest specific exposure?
- Rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration.
- A network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
- Downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
- An unreviewed worker change can alter production transforms without a traceable release identifier.
Explanation
Correct Answer
A:The specific residual risk is that rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration. The situation is: An existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. The missing response is to run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. The engineering reason is that dataproc can preserve Spark processing capabilities while reducing infrastructure administration requirements. After remediation, verify: A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. Its tailored control is to implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. In the present situation the more direct exposure is that rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration.
C:This failure mode belongs chiefly to another situation: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. Its tailored control is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. In the present situation the more direct exposure is that rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration.
D:This failure mode belongs chiefly to another situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Its tailored control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. In the present situation the more direct exposure is that rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration.
Question 247
A data platform team encounters this requirement: A batch extract must not start its warehouse transformation until both product and pricing sources have arrived. Which implementation is MOST appropriate?
- Model the upstream dependencies and readiness checks before selecting the orchestration method.
- Assign a dedicated ingestion service account with source-specific access and only required destination permissions.
- Define immutable business event IDs and a deduplication boundary in the consumer and output design.
- Plan an approved de-identification stage and data-contract checks before external enrichment requests.
Explanation
Correct Answer
A:The appropriate design is to model the upstream dependencies and readiness checks before selecting the orchestration method. This addresses the exact constraint: A batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The underlying principle is that orchestration must represent business dependencies rather than merely run steps at similar clock times. If omitted, a price-sensitive revenue report can combine new orders with stale product prices. A direct acceptance test is: A missing pricing artifact blocks the dependent transform while reporting the unmet prerequisite.
Incorrect Answers
B:This action fits a separate situation: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. There it would make sense to assign a dedicated ingestion service account with source-specific access and only required destination permissions. It does not resolve this case, in which a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The needed control is to model the upstream dependencies and readiness checks before selecting the orchestration method.
C:This action fits a separate situation: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. There it would make sense to define immutable business event IDs and a deduplication boundary in the consumer and output design. It does not resolve this case, in which a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The needed control is to model the upstream dependencies and readiness checks before selecting the orchestration method.
D:This action fits a separate situation: A third-party supplier proposes sending customer PII to a general-purpose enrichment API before anonymization. There it would make sense to plan an approved de-identification stage and data-contract checks before external enrichment requests. It does not resolve this case, in which a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The needed control is to model the upstream dependencies and readiness checks before selecting the orchestration method.
Question 248
A pipeline team implements the measure: Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. Which result would provide the STRONGEST operational evidence of effectiveness?
- A refresh test returns current approved numbers and reduces total query work compared with the base query.
- A four-item sample order is represented in full and its item sums reconcile to the parent order.
- A backfill modifies only the expected partitions and produces the same approved totals as a full reference build.
- A test customer changes segments and historical queries resolve the segment valid at each transaction date.
Explanation
Correct Answer
B:This is the decisive test result: A four-item sample order is represented in full and its item sums reconcile to the parent order. It directly validates the implementation to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. The underlying case is: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. This matters because a data warehouse model must represent unbounded one-to-many relationships without fixed column limits. Without it, orders containing a third item can silently lose revenue or require disruptive schema changes.
Incorrect Answers
A:This is proof for a different safeguard: Evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. That applies when a team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. The present control instead requires the specific outcome: A four-item sample order is represented in full and its item sums reconcile to the parent order.
C:This is proof for a different safeguard: Use incremental partition-aware transformations and recompute only the required correction horizon. That applies when a warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. The present control instead requires the specific outcome: A four-item sample order is represented in full and its item sums reconcile to the parent order.
D:This is proof for a different safeguard: Implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. That applies when the warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. The present control instead requires the specific outcome: A four-item sample order is represented in full and its item sums reconcile to the parent order.
Question 249
A project declines to apply this measure: Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. It faces: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. Which consequence is MOST directly unresolved?
- One hot reducer can dominate runtime while the rest of the cluster remains underused.
- Overprovisioning wastes cost while underprovisioning may cause out-of-memory retries.
- Persistent workers can create excessive cost for a small daily processing window.
- A planned increase in event volume can fail at quota limits despite adequate apparent cloud capacity.
Explanation
Correct Answer
B:The specific residual risk is that overprovisioning wastes cost while underprovisioning may cause out-of-memory retries. The situation is: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. The missing response is to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. The engineering reason is that resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size. After remediation, verify: Worker telemetry validates a cheaper parsing configuration and sufficient memory for the join stage.
Incorrect Answers
A: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 overprovisioning wastes cost while underprovisioning may cause out-of-memory retries.
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 overprovisioning wastes cost while underprovisioning may cause out-of-memory retries.
D: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 overprovisioning wastes cost while underprovisioning may cause out-of-memory retries.
Question 250
A data platform team encounters this requirement: Internal teams expose raw tables directly as products and change column names without notifying consumers. Which implementation is MOST appropriate?
- Adopt federated stewardship with centrally defined data classifications and locally accountable domain owners.
- Publish a documented versioned data product interface with owners, contracts and deprecation checks.
- Design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions.
- Use federated catalog discovery and region-aware access patterns while retaining approved storage locations.
Explanation
Correct Answer
B:The appropriate design is to publish a documented versioned data product interface with owners, contracts and deprecation checks. This addresses the exact constraint: Internal teams expose raw tables directly as products and change column names without notifying consumers. The underlying principle is that a reusable data platform should treat published analytical datasets as governed contracts for dependent teams. If omitted, an unannounced schema edit can break dozens of dashboards and ML features simultaneously. A direct acceptance test is: A contract test detects a breaking field change before downstream consumers receive the new version.
Incorrect Answers
A:This action fits a separate situation: Business units own their data products but the central platform team must enforce consistent privacy rules. There it would make sense to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. It does not resolve this case, in which internal teams expose raw tables directly as products and change column names without notifying consumers. The needed control is to publish a documented versioned data product interface with owners, contracts and deprecation checks.
C:This action fits a separate situation: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. There it would make sense to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. It does not resolve this case, in which internal teams expose raw tables directly as products and change column names without notifying consumers. The needed control is to publish a documented versioned data product interface with owners, contracts and deprecation checks.
D:This action fits a separate situation: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. There it would make sense to use federated catalog discovery and region-aware access patterns while retaining approved storage locations. It does not resolve this case, in which internal teams expose raw tables directly as products and change column names without notifying consumers. The needed control is to publish a documented versioned data product interface with owners, contracts and deprecation checks.