Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 46
Question 450
A production data pipeline has this problem: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. Which solution MOST directly corrects it?
- Profile source throughput and worker utilization before changing cluster size or partition design.
- Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster.
- Measure expected peak resource demand and request supported quotas or reservations before capacity expansion.
- Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics.
Explanation
Correct Answer
A:The appropriate design is to profile source throughput and worker utilization before changing cluster size or partition design. This addresses the exact constraint: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. The underlying principle is that adding compute does not solve an upstream I/O bottleneck that starves processing workers. If omitted, cost rises as unused workers wait for the same restricted data access path. A direct acceptance test is: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
Incorrect Answers
B:This action fits a separate situation: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. There it would make sense to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. It does not resolve this case, in which an analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. The needed control is to profile source throughput and worker utilization before changing cluster size or partition design.
C:This action fits a separate situation: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. There it would make sense to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. It does not resolve this case, in which an analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. The needed control is to profile source throughput and worker utilization before changing cluster size or partition design.
D:This action fits a separate situation: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. There it would make sense to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. It does not resolve this case, in which an analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. The needed control is to profile source throughput and worker utilization before changing cluster size or partition design.
Question 451
A production review examines this scenario: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The team adopts: Define immutable business event IDs and a deduplication boundary in the consumer and output design. Which test BEST establishes the control works?
- Publishing an identical business ID twice results in one accepted financial record after processing.
- A lineage and policy test confirms classified records land only in permitted storage with correct retention.
- A delayed-event test produces documented updates and meets the agreed freshness and finalization rules.
- A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
Explanation
Correct Answer
A:This is the decisive test result: Publishing an identical business ID twice results in one accepted financial record after processing. It directly validates the implementation to define immutable business event IDs and a deduplication boundary in the consumer and output design. The underlying case is: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. This matters because transport acknowledgments are not a substitute for business-level idempotence across producer retries. Without it, duplicated invoice events can lead to double counting or repeated external billing side effects.
Incorrect Answers
B:This is proof for a different safeguard: Partition data flows by classification and define separate approved landing, expiration and access rules. That applies when a shared event topic mixes support recordings and aggregated click counts with very different retention and privacy obligations. The present control instead requires the specific outcome: Publishing an identical business ID twice results in one accepted financial record after processing.
C:This is proof for a different safeguard: Specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. That applies when an IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. The present control instead requires the specific outcome: Publishing an identical business ID twice results in one accepted financial record after processing.
D:This is proof for a different safeguard: Assign a dedicated ingestion service account with source-specific access and only required destination permissions. That applies when a new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. The present control instead requires the specific outcome: Publishing an identical business ID twice results in one accepted financial record after processing.
Question 452
A data engineer recommends: Tune joins, partition distribution and shuffle behavior before purchasing additional workers. It addresses: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. What underlying principle explains the recommendation?
- Data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
- Provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
- Resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
- Short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
Explanation
Correct Answer
A:The governing principle is that data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count. It explains why the team should tune joins, partition distribution and shuffle behavior before purchasing additional workers. The current problem is: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. Without the safeguard, one hot reducer can dominate runtime while the rest of the cluster remains underused. A suitable proof is: Stage metrics show improved skew distribution and matching aggregate output after tuning.
Incorrect Answers
B:That principle applies primarily to a different design condition: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. There the relevant engineering response is to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. For the given case, the controlling rationale is that data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
C:That principle applies primarily to a different design condition: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. There the relevant engineering response is to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. For the given case, the controlling rationale is that data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
D:That principle applies primarily to a different design condition: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. There the relevant engineering response is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. For the given case, the controlling rationale is that data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
Question 453
The proposed safeguard is not implemented: Inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. The data platform currently faces: A warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. What direct risk remains?
- Repeated retries cannot succeed and excessive new roles may create a security regression.
- Critical failures can remain invisible until consumers notice missing tables.
- Business reports can lag for hours without a failed worker or visible red job status.
- A pipeline can appear healthy while losing an important subset of business transactions.
Explanation
Correct Answer
A:The specific residual risk is that repeated retries cannot succeed and excessive new roles may create a security regression. The situation is: A warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. The missing response is to inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. The engineering reason is that permission failures require identifying the denied principal and resource rather than treating the problem as transient availability. After remediation, verify: A diagnostic run identifies the missing narrowly scoped permission and succeeds after targeted correction.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. Its tailored control is to route structured Cloud Logging errors into an alert and owned incident response workflow. In the present situation the more direct exposure is that repeated retries cannot succeed and excessive new roles may create a security regression.
C: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 repeated retries cannot succeed and excessive new roles may create a security regression.
D:This failure mode belongs chiefly to another situation: An Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. Its tailored control is to instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. In the present situation the more direct exposure is that repeated retries cannot succeed and excessive new roles may create a security regression.
Question 454
A project declines to apply this measure: Use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. It faces: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. Which consequence is MOST directly unresolved?
- A model may appear highly accurate offline but fail when deployed with only information available at request time.
- A real-time endpoint may add cost without improving a once-per-day recommendation use case.
- The assistant may answer from unrelated or stale policy fragments without a defensible citation.
- An always-negative classifier may be deployed despite detecting no actual defaults.
Explanation
Correct Answer
D:The specific residual risk is that an always-negative classifier may be deployed despite detecting no actual defaults. The situation is: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. The missing response is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. The engineering reason is that class imbalance can make accuracy appear high while the model misses its minority target class. After remediation, verify: A held-out report includes minority-class recall, false positives and threshold trade-offs.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. Its tailored control is to use time-aware feature joins and hold out future periods so training information precedes each prediction point. In the present situation the more direct exposure is that an always-negative classifier may be deployed despite detecting no actual defaults.
B:This failure mode belongs chiefly to another situation: A business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. Its tailored control is to evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. In the present situation the more direct exposure is that an always-negative classifier may be deployed despite detecting no actual defaults.
C:This failure mode belongs chiefly to another situation: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. Its tailored control is to chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. In the present situation the more direct exposure is that an always-negative classifier may be deployed despite detecting no actual defaults.
Question 455
A production data pipeline has this problem: A Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. Which solution MOST directly corrects it?
- Encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration.
- Implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
- Use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior.
- Use an approved event trigger with object-identity deduplication and downstream orchestration.
Explanation
Correct Answer
A:The appropriate design is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. This addresses the exact constraint: A Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The underlying principle is that declarative dependency graphs ensure quality gates complete before downstream assets are considered ready. If omitted, reports may publish unreliable data because upstream validation has not completed. A direct acceptance test is: An injected failed assertion blocks dependent publication and is surfaced to the pipeline owner.
Incorrect Answers
B: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 Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The needed control is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration.
C: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 Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The needed control is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration.
D:This action fits a separate situation: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. There it would make sense to use an approved event trigger with object-identity deduplication and downstream orchestration. It does not resolve this case, in which a Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The needed control is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration.
Question 456
The team accepts this control: Evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. What observable result should its acceptance test verify?
- A four-item sample order is represented in full and its item sums reconcile to the parent order.
- A test customer changes segments and historical queries resolve the segment valid at each transaction date.
- A representative profile query reads all expected repeated values with improved scan and execution measures.
- A refresh test returns current approved numbers and reduces total query work compared with the base query.
Explanation
Correct Answer
D:This is the decisive test result: A refresh test returns current approved numbers and reduces total query work compared with the base query. It directly validates the implementation to evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. The underlying case is: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. This matters because reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics. Without it, hourly dashboards can spend resources repeatedly calculating unchanged historical totals.
Incorrect Answers
A:This is proof for a different safeguard: Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. That applies when an analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. The present control instead requires the specific outcome: A refresh test returns current approved numbers and reduces total query work compared with the base query.
B: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 refresh test returns current approved numbers and reduces total query work compared with the base query.
C:This is proof for a different safeguard: Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. That applies when a user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The present control instead requires the specific outcome: A refresh test returns current approved numbers and reduces total query work compared with the base query.
Question 457
An architecture proposal calls for: Review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. In this case: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. Which rationale MOST strongly supports the choice?
- Workload isolation prevents long-running transforms from consuming the resources needed by time-sensitive queries.
- Capacity governance needs measurable allocation by workload owner to make performance and cost decisions.
- Average compute usage can conceal short-lived capacity shortages that drive interactive waiting time.
- Query priority and execution timing should reflect latency expectations and available capacity.
Explanation
Correct Answer
C:The governing principle is that average compute usage can conceal short-lived capacity shortages that drive interactive waiting time. It explains why the team should review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. The current problem is: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. Without the safeguard, users can experience long query queues even though the daily average slot chart appears low. A suitable proof is: A peak concurrency test shows acceptable queue time under the selected reservation policy.
Incorrect Answers
A:That principle applies primarily to a different design condition: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. There the relevant engineering response is to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. For the given case, the controlling rationale is that average compute usage can conceal short-lived capacity shortages that drive interactive waiting time.
B:That principle applies primarily to a different design condition: Different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. There the relevant engineering response is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage. For the given case, the controlling rationale is that average compute usage can conceal short-lived capacity shortages that drive interactive waiting time.
D:That principle applies primarily to a different design condition: A data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. There the relevant engineering response is to choose suitable interactive or batch query priority and scheduling policies for the business use case. For the given case, the controlling rationale is that average compute usage can conceal short-lived capacity shortages that drive interactive waiting time.
Question 458
An architecture proposal calls for: Design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. In this case: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. Which rationale MOST strongly supports the choice?
- Orchestration must represent business dependencies rather than merely run steps at similar clock times.
- Consistent source contracts prevent schema drift from appearing later as broken joins or lost records.
- An intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
- Transport acknowledgments are not a substitute for business-level idempotence across producer retries.
Explanation
Correct Answer
C:The governing principle is that an intermittent network path requires durable producer-side recovery and protection of transfer boundaries. It explains why the team should design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. The current problem is: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. Without the safeguard, network interruption can silently drop sensor measurements or force repeated full-file copies. A suitable proof is: A controlled link outage queues records and preserves expected event IDs after connection restoration.
Incorrect Answers
A:That principle applies primarily to a different design condition: A batch extract must not start its warehouse transformation until both product and pricing sources have arrived. There the relevant engineering response is to model the upstream dependencies and readiness checks before selecting the orchestration method. For the given case, the controlling rationale is that an intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
B:That principle applies primarily to a different design condition: Two upstream teams publish JSON with different values and types for the same field called transaction_id. There the relevant engineering response is to agree a versioned event schema and producer contract, including compatibility and error-handling policy. For the given case, the controlling rationale is that an intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
D:That principle applies primarily to a different design condition: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. There the relevant engineering response is to define immutable business event IDs and a deduplication boundary in the consumer and output design. For the given case, the controlling rationale is that an intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
Question 459
A pipeline team implements the measure: Apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. Which result would provide the STRONGEST operational evidence of effectiveness?
- A controlled sensitive-table query produces a retained audit event identifying the querying principal and resource.
- A retention test expires eligible records while preserving specifically protected items under approved holds.
- The auditor queries the authorized view successfully but direct queries against the base table are denied.
- A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
Explanation
Correct Answer
B:This is the decisive test result: A retention test expires eligible records while preserving specifically protected items under approved holds. It directly validates the implementation to apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. The underlying case is: A data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. This matters because regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection. Without it, expired personal records may remain accessible indefinitely or legally held records may be deleted prematurely.
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 retention test expires eligible records while preserving specifically protected items under approved holds.
C:This is proof for a different safeguard: Expose approved results using a BigQuery authorized view or supported authorized dataset configuration. That applies when an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The present control instead requires the specific outcome: A retention test expires eligible records while preserving specifically protected items under approved holds.
D:This is proof for a different safeguard: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. That applies when a new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. The present control instead requires the specific outcome: A retention test expires eligible records while preserving specifically protected items under approved holds.
Question 460
A data platform team encounters this requirement: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. Which implementation is MOST appropriate?
- Use documented schema evolution and compatibility checks with an explicit canonical representation.
- Model future event volume, latency and retention tiers before fixing component and partitioning choices.
- Store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts.
- Land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations.
Explanation
Correct Answer
A:The appropriate design is to use documented schema evolution and compatibility checks with an explicit canonical representation. This addresses the exact constraint: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. The underlying principle is that evolvable contracts let diverse data producers change nonbreaking fields without corrupting shared consumers. If omitted, a newly added optional field can cause rejected records or unintended null-filled analytics. A direct acceptance test is: Old and new schema versions pass the agreed compatibility test and publish expected canonical fields.
Incorrect Answers
B:This action fits a separate situation: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. There it would make sense to model future event volume, latency and retention tiers before fixing component and partitioning choices. It does not resolve this case, in which three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. The needed control is to use documented schema evolution and compatibility checks with an explicit canonical representation.
C: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 three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. The needed control is to use documented schema evolution and compatibility checks with an explicit canonical representation.
D:This action fits a separate situation: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. There it would make sense to land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. It does not resolve this case, in which three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. The needed control is to use documented schema evolution and compatibility checks with an explicit canonical representation.