Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 20
Question 190
The team accepts this control: Manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. What observable result should its acceptance test verify?
- An injected 503 is retried according to policy and the final step runs only after validated success.
- A tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion.
- A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
- 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 tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion. It directly validates the implementation to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. The underlying case is: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. This matters because declarative SQL transformation pipelines benefit from versioned dependencies and quality assertions. Without it, a manually changed transformation may break downstream tables while its source definition remains undocumented.
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 tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion.
C:This is proof for a different safeguard: Use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. That applies when a deployment workflow stores source database passwords as plaintext environment variables in CI logs. The present control instead requires the specific outcome: A tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion.
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 tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion.
Question 191
An architecture proposal calls for: Detect hot keys and apply supported fanout or key-distribution strategies before final aggregation. In this case: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. Which rationale MOST strongly supports the choice?
- A managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic.
- Kafka integration requires consistent consumption positions, error handling and sink identity across restarts.
- Windowing policy must account for late-arriving event timestamps rather than relying solely on processing arrival time.
- Skewed keys reduce parallelism because excessive state and work accumulate on one processing key.
Explanation
Correct Answer
D:The governing principle is that skewed keys reduce parallelism because excessive state and work accumulate on one processing key. It explains why the team should detect hot keys and apply supported fanout or key-distribution strategies before final aggregation. The current problem is: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. Without the safeguard, increasing worker count may not resolve the bottleneck when nearly all work remains on one key. A suitable proof is: Per-key processing metrics and a load test show reduced hot-key delay and correct aggregate totals.
Incorrect Answers
A: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 skewed keys reduce parallelism because excessive state and work accumulate on one processing key.
B:That principle applies primarily to a different design condition: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. There the relevant engineering response is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. For the given case, the controlling rationale is that skewed keys reduce parallelism because excessive state and work accumulate on one processing key.
C:That principle applies primarily to a different design condition: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. There the relevant engineering response is to use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. For the given case, the controlling rationale is that skewed keys reduce parallelism because excessive state and work accumulate on one processing key.
Question 192
An architecture proposal calls for: Evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. In this case: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. Which rationale MOST strongly supports the choice?
- A data warehouse model must represent unbounded one-to-many relationships without fixed column limits.
- BigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
- Historical attribute reporting requires preserving versions and nonoverlapping validity intervals for entities.
- Reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
Explanation
Correct Answer
D:The governing principle is that reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics. It explains why the team should evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. The current problem is: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. Without the safeguard, hourly dashboards can spend resources repeatedly calculating unchanged historical totals. A suitable proof is: A refresh test returns current approved numbers and reduces total query work compared with the base query.
Incorrect Answers
A:That principle applies primarily to a different design condition: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. There the relevant engineering response is to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. For the given case, the controlling rationale is that reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
B:That principle applies primarily to a different design condition: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. There the relevant engineering response is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. For the given case, the controlling rationale is that reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
C:That principle applies primarily to a different design condition: The warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. There the relevant engineering response is to implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. For the given case, the controlling rationale is that reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
Question 193
An organization does not implement the safeguard: Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. In the following situation, an analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. Which failure is MOST likely?
- An unbounded query can consume excessive on-demand analysis budget or slow shared reporting.
- Hourly dashboards can spend resources repeatedly calculating unchanged historical totals.
- An overnormalized analytical schema may spend excessive time joining simple repeated attributes.
- Orders containing a third item can silently lose revenue or require disruptive schema changes.
Explanation
Correct Answer
D:The specific residual risk is that orders containing a third item can silently lose revenue or require disruptive schema changes. The situation is: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. The missing response is to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. The engineering reason is that a data warehouse model must represent unbounded one-to-many relationships without fixed column limits. After remediation, verify: A four-item sample order is represented in full and its item sums reconcile to the parent order.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A reporting query accidentally scans an entire petabyte BigQuery table because an analyst omits a date filter. Its tailored control is to require partition filters and apply authorized maximum bytes billed or query cost controls where appropriate. In the present situation the more direct exposure is that orders containing a third item can silently lose revenue or require disruptive schema changes.
B:This failure mode belongs chiefly to another situation: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. Its tailored control is to evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. In the present situation the more direct exposure is that orders containing a third item can silently lose revenue or require disruptive schema changes.
C:This failure mode belongs chiefly to another situation: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. Its tailored control is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. In the present situation the more direct exposure is that orders containing a third item can silently lose revenue or require disruptive schema changes.
Question 194
A production review examines this scenario: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The team adopts: Parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. Which test BEST establishes the control works?
- Out-of-order test updates leave the target at the correct source version with no duplicate keys.
- The managed pipeline handles a load surge and meets latency targets without manual node administration.
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
- A multi-line order retains every nested item and reconciles line-level sums with the source payload.
Explanation
Correct Answer
D:This is the decisive test result: A multi-line order retains every nested item and reconciles line-level sums with the source payload. It directly validates the implementation to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. The underlying case is: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. This matters because schema-aware parsing preserves repeated relationships that ad hoc string flattening can discard. Without it, order totals can be understated when additional line items are lost during transformation.
Incorrect Answers
A:This is proof for a different safeguard: Use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. That applies when an order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. The present control instead requires the specific outcome: A multi-line order retains every nested item and reconciles line-level sums with the source payload.
B:This is proof for a different safeguard: Prefer a managed Dataflow streaming design when Beam semantics and service constraints match the workload. That applies when a new streaming transformation can be implemented in either a custom Spark cluster or Dataflow with autoscaling, and operations has no cluster team. The present control instead requires the specific outcome: A multi-line order retains every nested item and reconciles line-level sums with the source payload.
C:This is proof for a different safeguard: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. That applies when a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The present control instead requires the specific outcome: A multi-line order retains every nested item and reconciles line-level sums with the source payload.
Question 195
An operator has deployed the solution: Land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. In the situation where a new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. Which evidence BEST confirms success?
- An analyst searches the catalog and locates the correct owned dataset and its upstream origin.
- Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
- An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
- A representative Parquet dataset is independently readable with matching schema and row totals in both environments.
Explanation
Correct Answer
C:This is the decisive test result: An intentionally broken transformation is repaired and the affected period is replayed from retained raw input. It directly validates the implementation to land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. The underlying case is: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. This matters because durable staging separates source acquisition from later transformation and supports controlled replay. Without it, a transformation defect can destroy the only copy of source events and prevent correction.
Incorrect Answers
A: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: An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
B:This is proof for a different safeguard: Use documented schema evolution and compatibility checks with an explicit canonical representation. That applies when three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. The present control instead requires the specific outcome: An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
D:This is proof for a different safeguard: Store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. That applies when a company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. The present control instead requires the specific outcome: An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
Question 196
A production review examines this scenario: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. The team adopts: Tune joins, partition distribution and shuffle behavior before purchasing additional workers. Which test BEST establishes the control works?
- A timed job-based execution meets completion SLAs at lower total compute cost.
- A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
- Stage metrics show improved skew distribution and matching aggregate output after tuning.
- A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
Explanation
Correct Answer
C:This is the decisive test result: Stage metrics show improved skew distribution and matching aggregate output after tuning. It directly validates the implementation to tune joins, partition distribution and shuffle behavior before purchasing additional workers. The underlying case is: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. This matters because data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count. Without it, one hot reducer can dominate runtime while the rest of the cluster remains underused.
Incorrect Answers
A:This is proof for a different safeguard: Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. That applies when a nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The present control instead requires the specific outcome: Stage metrics show improved skew distribution and matching aggregate output after tuning.
B:This is proof for a different safeguard: Measure expected peak resource demand and request supported quotas or reservations before capacity expansion. That applies when an event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. The present control instead requires the specific outcome: Stage metrics show improved skew distribution and matching aggregate output after tuning.
D:This is proof for a different safeguard: Profile source throughput and worker utilization before changing cluster size or partition design. That applies when an analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. The present control instead requires the specific outcome: Stage metrics show improved skew distribution and matching aggregate output after tuning.
Question 197
The team is considering: Route structured Cloud Logging errors into an alert and owned incident response workflow. The context is: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. Which engineering principle is MOST relevant?
- Cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
- Operational alerts require actionable events, severity and ownership, not just passive archived logs.
- Quota failures must be distinguished from application exceptions and permission errors for correct remediation.
- Pipeline observability must expose data-quality losses as well as infrastructure job status.
Explanation
Correct Answer
B:The governing principle is that operational alerts require actionable events, severity and ownership, not just passive archived logs. It explains why the team should route structured Cloud Logging errors into an alert and owned incident response workflow. The current problem is: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. Without the safeguard, critical failures can remain invisible until consumers notice missing tables. A suitable proof is: A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
Incorrect Answers
A:That principle applies primarily to a different design condition: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. There the relevant engineering response is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. For the given case, the controlling rationale is that operational alerts require actionable events, severity and ownership, not just passive archived logs.
C:That principle applies primarily to a different design condition: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There the relevant engineering response is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. For the given case, the controlling rationale is that operational alerts require actionable events, severity and ownership, not just passive archived logs.
D:That principle applies primarily to a different design condition: An Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. There the relevant engineering response is to instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. For the given case, the controlling rationale is that operational alerts require actionable events, severity and ownership, not just passive archived logs.
Question 198
A project declines to apply this measure: Compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets. It faces: A high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. Which consequence is MOST directly unresolved?
- A stalled watermark can delay final aggregate output despite fast processing of new records.
- A self-managed long-lived cluster may create avoidable patching, scaling and availability obligations.
- A restarted connector may replay records or miss a partition if offsets are not managed correctly.
- Excess small files can overwhelm listing operations and degrade batch query performance.
Explanation
Correct Answer
D:The specific residual risk is that excess small files can overwhelm listing operations and degrade batch query performance. The situation is: A high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. The missing response is to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets. The engineering reason is that object layout and file size influence metadata overhead and scan efficiency in analytical engines. After remediation, verify: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A Dataflow stream computes event-time windows but operators mistake the watermark for the time of the last message read. Its tailored control is to monitor watermarks, input timestamps and processing lag to understand when windows are considered complete. In the present situation the more direct exposure is that excess small files can overwhelm listing operations and degrade batch query performance.
B:This failure mode belongs chiefly to another situation: A new streaming transformation can be implemented in either a custom Spark cluster or Dataflow with autoscaling, and operations has no cluster team. Its tailored control is to prefer a managed Dataflow streaming design when Beam semantics and service constraints match the workload. In the present situation the more direct exposure is that excess small files can overwhelm listing operations and degrade batch query performance.
C:This failure mode belongs chiefly to another situation: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. Its tailored control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. In the present situation the more direct exposure is that excess small files can overwhelm listing operations and degrade batch query performance.
Question 199
An architect must address the following condition: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. Which approach should be selected?
- Publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions.
- Plan location-compatible sharing and approved export paths before publishing the subscription.
- Manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets.
- Enforce partner-specific row access policies or separately governed audience views at the source.
Explanation
Correct Answer
D:The appropriate design is to enforce partner-specific row access policies or separately governed audience views at the source. This addresses the exact constraint: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. The underlying principle is that data-sharing policy must be enforced by identity even when several recipients use the same logical dataset. If omitted, a partner can enumerate another partner's territory if access is controlled only in a client application. A direct acceptance test is: Independent partner test identities retrieve disjoint authorized territory records.
Incorrect Answers
A:This action fits a separate situation: A data producer wants to distribute governed BigQuery datasets to partner companies without copying full tables into each partner project. There it would make sense to publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions. It does not resolve this case, in which a shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. The needed control is to enforce partner-specific row access policies or separately governed audience views at the source.
B:This action fits a separate situation: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. There it would make sense to plan location-compatible sharing and approved export paths before publishing the subscription. It does not resolve this case, in which a shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. The needed control is to enforce partner-specific row access policies or separately governed audience views at the source.
C:This action fits a separate situation: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. There it would make sense to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. It does not resolve this case, in which a shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. The needed control is to enforce partner-specific row access policies or separately governed audience views at the source.
Question 200
Consider a Google Cloud data engineering design: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. What action BEST meets the stated constraint?
- Use documented schema evolution and compatibility checks with an explicit canonical representation.
- Store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts.
- Register approved assets in a searchable catalog with owners, descriptions and lineage references.
- Decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers.
Explanation
Correct Answer
D:The appropriate design is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. This addresses the exact constraint: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The underlying principle is that loose coupling limits replacement costs when data processing systems evolve independently. If omitted, embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive. A direct acceptance test is: A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
Incorrect Answers
A:This action fits a separate situation: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. There it would make sense to use documented schema evolution and compatibility checks with an explicit canonical representation. It does not resolve this case, in which the enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The needed control is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers.
B:This action fits a separate situation: A company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. There it would make sense to store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. It does not resolve this case, in which the enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The needed control is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers.
C:This action fits a separate situation: Several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. There it would make sense to register approved assets in a searchable catalog with owners, descriptions and lineage references. It does not resolve this case, in which the enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The needed control is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers.