Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 47
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.
Question 461
A project declines to apply this measure: Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. It faces: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. Which consequence is MOST directly unresolved?
- A suspected export may be impossible to attribute if data-access logs are disabled or discarded.
- Giving dashboard users all columns could expose regulated identity information to an unauthorized team.
- A developer test can truncate the production reporting table or modify production data unexpectedly.
- A leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
Explanation
Correct Answer
D:The specific residual risk is that a leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it. The situation is: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. The missing response is to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. The engineering reason is that short-lived, scoped identities reduce credential theft exposure and enable accountable workload authentication. After remediation, verify: The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. Its tailored control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. In the present situation the more direct exposure is that a leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
B:This failure mode belongs chiefly to another situation: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Its tailored control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. In the present situation the more direct exposure is that a leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
C:This failure mode belongs chiefly to another situation: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Its tailored control is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. In the present situation the more direct exposure is that a leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
Question 462
The proposed safeguard is not implemented: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. The data platform currently faces: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. What direct risk remains?
- Downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
- Without explicit panes, analysts may mistake preliminary counts for final business totals.
- Separate hand-maintained implementations may classify identical records differently across batch and stream paths.
- Repeated full extracts can overload source transactions and may miss intermediate updates.
Explanation
Correct Answer
A:The specific residual risk is that downstream users can query protected fields if raw payloads are copied directly into the shared warehouse. The situation is: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The missing response is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. The engineering reason is that privacy transformations need to operate before data crosses into a broadly accessible destination. After remediation, verify: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. Its tailored control is to configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. In the present situation the more direct exposure is that downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
C:This failure mode belongs chiefly to another situation: A company needs one transformation pipeline for daily archive files and live events with the same business rules. Its tailored control is to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. In the present situation the more direct exposure is that downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
D:This failure mode belongs chiefly to another situation: A bank's relational source updates customer records continuously and the analytics team needs those changes without polling the full table. Its tailored control is to use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata. In the present situation the more direct exposure is that downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
Question 463
An organization does not implement the safeguard: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. In the following situation, a new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. Which failure is MOST likely?
- Creating a US-region staging table could violate residency policy even when the final report is European.
- A misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
- Giving dashboard users all columns could expose regulated identity information to an unauthorized team.
- A suspected export may be impossible to attribute if data-access logs are disabled or discarded.
Explanation
Correct Answer
B:The specific residual risk is that a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary. The situation is: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. The missing response is to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. The engineering reason is that preventive organization controls enforce placement rules even when individual project owners deploy valid templates. After remediation, verify: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A multinational organization must keep European patient datasets in an approved European location during processing and storage. Its tailored control is to create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. In the present situation the more direct exposure is that a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
C:This failure mode belongs chiefly to another situation: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Its tailored control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. In the present situation the more direct exposure is that a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
D:This failure mode belongs chiefly to another situation: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. Its tailored control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. In the present situation the more direct exposure is that a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
Question 464
The proposed safeguard is not implemented: Implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation. The data platform currently faces: Historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. What direct risk remains?
- Manual launches can be forgotten and repeated invocations can publish duplicate outputs.
- An automated retry can double count business records in a daily report.
- A poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations.
- Reports may publish unreliable data because upstream validation has not completed.
Explanation
Correct Answer
C:The specific residual risk is that a poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations. The situation is: Historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The missing response is to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation. The engineering reason is that backfills are separate governed operations whose data ranges must not race with current daily publication. After remediation, verify: A sampled backfill alters only requested periods while fresh daily runs continue correctly.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. Its tailored control is to use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. In the present situation the more direct exposure is that a poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations.
B:This failure mode belongs chiefly to another situation: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. Its tailored control is to design idempotent task boundaries with stable run identifiers and transactional target publication. In the present situation the more direct exposure is that a poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations.
D:This failure mode belongs chiefly to another situation: A Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. Its tailored control is to encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. In the present situation the more direct exposure is that a poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations.
Question 465
The team accepts this control: Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. What observable result should its acceptance test verify?
- Counts, sampled checksums and source change positions reconcile at a documented consistency point.
- A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
- Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
- A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
Explanation
Correct Answer
A:This is the decisive test result: Counts, sampled checksums and source change positions reconcile at a documented consistency point. It directly validates the implementation to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. The underlying case is: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. This matters because a consistent snapshot and change stream must be combined without missing or double-applying source mutations. Without it, the target may silently omit rows modified during the transition from bulk copy to streaming replication.
Incorrect Answers
B:This is proof for a different safeguard: Introduce schema and business-rule validation with quarantined records and explicit correction procedures. That applies when a merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. The present control instead requires the specific outcome: Counts, sampled checksums and source change positions reconcile at a documented consistency point.
C:This is proof for a different safeguard: Validate critical fields, expected uniqueness and population-level reconciliation before publication. That applies when an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The present control instead requires the specific outcome: Counts, sampled checksums and source change positions reconcile at a documented consistency point.
D:This is proof for a different safeguard: Set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. That applies when a risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. The present control instead requires the specific outcome: Counts, sampled checksums and source change positions reconcile at a documented consistency point.
Question 466
A pipeline team implements the measure: Design idempotent task boundaries with stable run identifiers and transactional target publication. Which result would provide the STRONGEST operational evidence of effectiveness?
- A sampled backfill alters only requested periods while fresh daily runs continue correctly.
- Running the same DAG execution twice yields one authoritative output per data partition.
- An injected failed assertion blocks dependent publication and is surfaced to the pipeline owner.
- A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
Explanation
Correct Answer
B:This is the decisive test result: Running the same DAG execution twice yields one authoritative output per data partition. It directly validates the implementation to design idempotent task boundaries with stable run identifiers and transactional target publication. The underlying case is: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. This matters because repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output. Without it, an automated retry can double count business records in a daily report.
Incorrect Answers
A:This is proof for a different safeguard: Implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation. That applies when historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The present control instead requires the specific outcome: Running the same DAG execution twice yields one authoritative output per data partition.
C:This is proof for a different safeguard: Encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. That applies when a Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The present control instead requires the specific outcome: Running the same DAG execution twice yields one authoritative output per data partition.
D:This is proof for a different safeguard: Use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. That applies when a serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. The present control instead requires the specific outcome: Running the same DAG execution twice yields one authoritative output per data partition.
Question 467
Consider a Google Cloud data engineering design: Different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. What action BEST meets the stated constraint?
- Apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate.
- Define reservation assignments or chargeback attribution by project and monitor edition/slot usage.
- Assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads.
- Review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload.
Explanation
Correct Answer
B:The appropriate design is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage. This addresses the exact constraint: Different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The underlying principle is that capacity governance needs measurable allocation by workload owner to make performance and cost decisions. If omitted, one team's jobs can consume shared capacity while another is blamed for the resulting delays. A direct acceptance test is: Reservation metrics attribute slot consumption to the expected projects and agree with the schedule.
Incorrect Answers
A:This action fits a separate situation: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. There it would make sense to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. It does not resolve this case, in which different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The needed control is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage.
C:This action fits a separate situation: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. There it would make sense to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. It does not resolve this case, in which different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The needed control is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage.
D:This action fits a separate situation: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. There it would make sense to review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. It does not resolve this case, in which different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The needed control is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage.
Question 468
The proposed safeguard is not implemented: Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. The data platform currently faces: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. What direct risk remains?
- An overnormalized analytical schema may spend excessive time joining simple repeated attributes.
- Joining records at mismatched granularity can multiply revenue values and corrupt comparisons.
- Partitioning alone may still scan most blocks for customers within each daily partition.
- A prior-month cohort report can incorrectly use today's customer segment after an overwrite.
Explanation
Correct Answer
A:The specific residual risk is that an overnormalized analytical schema may spend excessive time joining simple repeated attributes. The situation is: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The missing response is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. The engineering reason is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities. After remediation, verify: A representative profile query reads all expected repeated values with improved scan and execution measures.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. Its tailored control is to model conformed dimensions and a documented fact table grain before creating reporting views. In the present situation the more direct exposure is that an overnormalized analytical schema may spend excessive time joining simple repeated attributes.
C:This failure mode belongs chiefly to another situation: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. Its tailored control is to cluster the partitioned BigQuery table on frequently filtered customer or account columns. In the present situation the more direct exposure is that an overnormalized analytical schema may spend excessive time joining simple repeated attributes.
D:This failure mode belongs chiefly to another situation: The warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. Its tailored control is to implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. In the present situation the more direct exposure is that an overnormalized analytical schema may spend excessive time joining simple repeated attributes.
Question 469
A production data pipeline has this problem: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. Which solution MOST directly corrects it?
- Manage Dataform definitions and assertions in version control with controlled compilation and workflow execution.
- Create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
- Keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs.
- Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
Explanation
Correct Answer
D:The appropriate design is to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. This addresses the exact constraint: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The underlying principle is that managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment. If omitted, a transient API failure can leave one step unexecuted while the workflow reports a false overall success. A direct acceptance test is: An injected 503 is retried according to policy and the final step runs only after validated success.
Incorrect Answers
A:This action fits a separate situation: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. There it would make sense to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. It does not resolve this case, in which a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The needed control is to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
B:This action fits a separate situation: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. There it would make sense to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. It does not resolve this case, in which a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The needed control is to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
C:This action fits a separate situation: A faulty new streaming transformation is deployed and operators cannot restore the prior version without discarding accumulated data. There it would make sense to keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. It does not resolve this case, in which a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The needed control is to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
Question 470
The team is considering: Chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. The context is: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. Which engineering principle is MOST relevant?
- Embedding granularity influences whether retrieval returns precise evidence instead of broad unrelated context.
- Temporal leakage produces unrealistic evaluation scores when future data enters historical feature construction.
- Batch ML scoring should match product objectives and data availability rather than require online serving by default.
- RAG preparation requires searchable text representations and attribution to the original documents.
Explanation
Correct Answer
D:The governing principle is that rAG preparation requires searchable text representations and attribution to the original documents. It explains why the team should chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. The current problem is: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. Without the safeguard, the assistant may answer from unrelated or stale policy fragments without a defensible citation. A suitable proof is: A test query retrieves relevant approved passages and references their correct document versions.
Incorrect Answers
A:That principle applies primarily to a different design condition: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. There the relevant engineering response is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. For the given case, the controlling rationale is that rAG preparation requires searchable text representations and attribution to the original documents.
B:That principle applies primarily to a different design condition: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. There the relevant engineering response is to use time-aware feature joins and hold out future periods so training information precedes each prediction point. For the given case, the controlling rationale is that rAG preparation requires searchable text representations and attribution to the original documents.
C:That principle applies primarily to a different design condition: A business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. There the relevant engineering response is to evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. For the given case, the controlling rationale is that rAG preparation requires searchable text representations and attribution to the original documents.