Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 32
Question 310
An organization does not implement the safeguard: Design idempotent task boundaries with stable run identifiers and transactional target publication. In the following situation, a Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. Which failure is MOST likely?
- File arrival can be missed or delayed and repeated notifications may process the same file twice.
- Reports may publish unreliable data because upstream validation has not completed.
- Manual launches can be forgotten and repeated invocations can publish duplicate outputs.
- An automated retry can double count business records in a daily report.
Explanation
Correct Answer
D:The specific residual risk is that an automated retry can double count business records in a daily report. The situation is: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. The missing response is to design idempotent task boundaries with stable run identifiers and transactional target publication. The engineering reason is that repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output. After remediation, verify: Running the same DAG execution twice yields one authoritative output per data partition.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. Its tailored control is to use an approved event trigger with object-identity deduplication and downstream orchestration. In the present situation the more direct exposure is that an automated retry can double count business records in a daily report.
B: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 an automated retry can double count business records in a daily report.
C: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 an automated retry can double count business records in a daily report.
Question 311
A project declines to apply this measure: Review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. It faces: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. Which consequence is MOST directly unresolved?
- A bulk nightly ETL can starve executive dashboards during the reporting window.
- One team's jobs can consume shared capacity while another is blamed for the resulting delays.
- An accidental query without filters may scan far more data than the team is authorized to spend.
- Users can experience long query queues even though the daily average slot chart appears low.
Explanation
Correct Answer
D:The specific residual risk is that users can experience long query queues even though the daily average slot chart appears low. The situation is: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. The missing response is to review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. The engineering reason is that average compute usage can conceal short-lived capacity shortages that drive interactive waiting time. After remediation, verify: A peak concurrency test shows acceptable queue time under the selected reservation policy.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. Its tailored control is to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. In the present situation the more direct exposure is that users can experience long query queues even though the daily average slot chart appears low.
B:This failure mode belongs chiefly to another situation: Different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. Its tailored control is to define reservation assignments or chargeback attribution by project and monitor edition/slot usage. In the present situation the more direct exposure is that users can experience long query queues even though the daily average slot chart appears low.
C:This failure mode belongs chiefly to another situation: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. Its tailored control is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. In the present situation the more direct exposure is that users can experience long query queues even though the daily average slot chart appears low.
Question 312
An architecture proposal calls for: Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. In this case: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. Which rationale MOST strongly supports the choice?
- Triggers can emit provisional windows before final event-time completeness is known.
- Batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary.
- Poison messages need bounded isolation so a permanently unprocessable record does not destabilize healthy traffic.
- Warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed.
Explanation
Correct Answer
D:The governing principle is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed. It explains why the team should select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. The current problem is: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. Without the safeguard, an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards. A suitable proof is: A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
Incorrect Answers
A:That principle applies primarily to a different design condition: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. There the relevant engineering response is to configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. For the given case, the controlling rationale is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed.
B:That principle applies primarily to a different design condition: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. There the relevant engineering response is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. For the given case, the controlling rationale is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed.
C:That principle applies primarily to a different design condition: One malformed Pub/Sub payload is retried indefinitely and repeatedly blocks progress for a subscription consumer. There the relevant engineering response is to configure controlled retry limits and an authorized dead-letter topic with an owned replay or inspection process. For the given case, the controlling rationale is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed.
Question 313
A pipeline team implements the measure: Keep protected raw data and publish separately validated curated datasets with explicit lineage references. Which result would provide the STRONGEST operational evidence of effectiveness?
- A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
- An incompatible file is quarantined with a schema-difference report while compatible partitions remain queryable.
- Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
- An approved analyst can read public lake partitions but is denied access to classified employee data.
Explanation
Correct Answer
A:This is the decisive test result: A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes. It directly validates the implementation to keep protected raw data and publish separately validated curated datasets with explicit lineage references. The underlying case is: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. This matters because separating raw from curated zones preserves replayability and helps consumers distinguish untrusted from approved records. Without it, a mapping bug may permanently destroy the original evidence needed for a corrected backfill.
Incorrect Answers
B:This is proof for a different safeguard: Register schemas in the lake catalog and validate evolution before promoting newly landed partitions. That applies when new Parquet files arrive with type changes and analysts cannot tell why some partitions fail in BigQuery external queries. The present control instead requires the specific outcome: A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
C:This is proof for a different safeguard: Apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. That applies when a media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. The present control instead requires the specific outcome: A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
D:This is proof for a different safeguard: Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. That applies when teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The present control instead requires the specific outcome: A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
Question 314
A data platform team encounters this requirement: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. Which implementation is MOST appropriate?
- Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities.
- Design stable order identifiers and idempotent MERGE or deduplication at the reporting sink.
- Validate critical fields, expected uniqueness and population-level reconciliation before publication.
- Introduce schema and business-rule validation with quarantined records and explicit correction procedures.
Explanation
Correct Answer
B:The appropriate design is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. This addresses the exact constraint: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The underlying principle is that replay safety depends on preserving business identity and enforcing idempotence at durable outputs. If omitted, an automatic retry can inflate daily revenue despite a successful retry status. A direct acceptance test is: Processing the same input batch twice produces exactly one row per business order in the target.
Incorrect Answers
A:This action fits a separate situation: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There it would make sense to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. It does not resolve this case, in which a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The needed control is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink.
C:This action fits a separate situation: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. There it would make sense to validate critical fields, expected uniqueness and population-level reconciliation before publication. It does not resolve this case, in which a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The needed control is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink.
D:This action fits a separate situation: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. There it would make sense to introduce schema and business-rule validation with quarantined records and explicit correction procedures. It does not resolve this case, in which a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The needed control is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink.
Question 315
A data platform team encounters this requirement: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. Which implementation is MOST appropriate?
- Evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations.
- Use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata.
- Keep protected raw data and publish separately validated curated datasets with explicit lineage references.
- Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
Explanation
Correct Answer
C:The appropriate design is to keep protected raw data and publish separately validated curated datasets with explicit lineage references. This addresses the exact constraint: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The underlying principle is that separating raw from curated zones preserves replayability and helps consumers distinguish untrusted from approved records. If omitted, a mapping bug may permanently destroy the original evidence needed for a corrected backfill. A direct acceptance test is: A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
Incorrect Answers
A:This action fits a separate situation: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. There it would make sense to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. It does not resolve this case, in which a lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The needed control is to keep protected raw data and publish separately validated curated datasets with explicit lineage references.
B:This action fits a separate situation: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. There it would make sense to use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. It does not resolve this case, in which a lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The needed control is to keep protected raw data and publish separately validated curated datasets with explicit lineage references.
D:This action fits a separate situation: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. There it would make sense to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. It does not resolve this case, in which a lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The needed control is to keep protected raw data and publish separately validated curated datasets with explicit lineage references.
Question 316
A data platform team encounters this requirement: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. Which implementation is MOST appropriate?
- Define governed date and time-zone conversion rules for consistent business reporting periods.
- Use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation.
- Serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience.
- Review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes.
Explanation
Correct Answer
B:The appropriate design is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. This addresses the exact constraint: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The underlying principle is that precomputed aggregates can serve recurring BI queries more efficiently when the refresh and query requirements align. If omitted, repeated expensive aggregation can saturate shared analytics resources and delay reporting. A direct acceptance test is: The materialized aggregate matches the approved source query and reduces processed bytes under typical refreshes.
Incorrect Answers
A:This action fits a separate situation: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. There it would make sense to define governed date and time-zone conversion rules for consistent business reporting periods. It does not resolve this case, in which a sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The needed control is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation.
C:This action fits a separate situation: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. There it would make sense to serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. It does not resolve this case, in which a sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The needed control is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation.
D:This action fits a separate situation: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. There it would make sense to review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. It does not resolve this case, in which a sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The needed control is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation.
Question 317
An operator has deployed the solution: Include supported Cloud KMS key integration and service identity access in the ingestion architecture. In the situation where a compliance feed writes data to Cloud Storage but requires customer-managed encryption keys and auditable key access. Which evidence BEST confirms success?
- 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 missing pricing artifact blocks the dependent transform while reporting the unmet prerequisite.
- A key-rotation rehearsal retains successful authorized writes and logs rejected unauthorized key operations.
Explanation
Correct Answer
D:This is the decisive test result: A key-rotation rehearsal retains successful authorized writes and logs rejected unauthorized key operations. It directly validates the implementation to include supported Cloud KMS key integration and service identity access in the ingestion architecture. The underlying case is: A compliance feed writes data to Cloud Storage but requires customer-managed encryption keys and auditable key access. This matters because encryption design must include the actual writer and reader principals as well as storage configuration. Without it, a permission error after key rotation may block ingestion or encourage unsafe fallback storage.
Incorrect Answers
A: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: A key-rotation rehearsal retains successful authorized writes and logs rejected unauthorized key operations.
B: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: A key-rotation rehearsal retains successful authorized writes and logs rejected unauthorized key operations.
C:This is proof for a different safeguard: Model the upstream dependencies and readiness checks before selecting the orchestration method. That applies when a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The present control instead requires the specific outcome: A key-rotation rehearsal retains successful authorized writes and logs rejected unauthorized key operations.
Question 318
The design review proposes the following action: Design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. The triggering condition is: A legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. Which technical principle BEST justifies it?
- A safe migration plan preserves a recoverable prior state until downstream consumers accept the replacement.
- A migration is complete only when analytical semantics and business measures match agreed expectations.
- Migration networking must satisfy data protection requirements and enough sustained bandwidth to meet cutover timing.
- CDC pipelines preserve ongoing source changes without repeatedly copying every operational table.
Explanation
Correct Answer
D:The governing principle is that cDC pipelines preserve ongoing source changes without repeatedly copying every operational table. It explains why the team should design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. The current problem is: A legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. Without the safeguard, frequent full extracts can overload production databases and still miss updates between schedules. A suitable proof is: A source insert, update and delete flow through to the analytical target with consistent business keys.
Incorrect Answers
A:That principle applies primarily to a different design condition: A cutover plan overwrites old source extracts immediately and offers no route back if target reporting fails. There the relevant engineering response is to retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria. For the given case, the controlling rationale is that cDC pipelines preserve ongoing source changes without repeatedly copying every operational table.
B:That principle applies primarily to a different design condition: A retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. There the relevant engineering response is to run parallel output validation and reconcile critical business totals by period before final switching. For the given case, the controlling rationale is that cDC pipelines preserve ongoing source changes without repeatedly copying every operational table.
C:That principle applies primarily to a different design condition: A migration copies large databases over a public route that violates internal network isolation requirements. There the relevant engineering response is to choose supported private connectivity and route throughput tests before bulk migration begins. For the given case, the controlling rationale is that cDC pipelines preserve ongoing source changes without repeatedly copying every operational table.
Question 319
The team is considering: Use federated catalog discovery and region-aware access patterns while retaining approved storage locations. The context is: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. Which engineering principle is MOST relevant?
- Data platform traceability requires connecting source lineage and transformations to final published data products.
- Machine-enforced classifications help governance policies persist across independently managed data assets.
- Metadata discovery and governance can be centralized logically without moving all source data across borders.
- Resource structure is a security and cost-management boundary, not simply a naming convention.
Explanation
Correct Answer
C:The governing principle is that metadata discovery and governance can be centralized logically without moving all source data across borders. It explains why the team should use federated catalog discovery and region-aware access patterns while retaining approved storage locations. The current problem is: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. Without the safeguard, a consolidation proposal may breach sovereignty policies simply to make assets searchable. A suitable proof is: The catalog finds regional assets while data movement logs confirm no unauthorized cross-border copies.
Incorrect Answers
A:That principle applies primarily to a different design condition: A regulated analytics program cannot trace its report fields through source systems after an audit query. There the relevant engineering response is to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. For the given case, the controlling rationale is that metadata discovery and governance can be centralized logically without moving all source data across borders.
B:That principle applies primarily to a different design condition: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. There the relevant engineering response is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. For the given case, the controlling rationale is that metadata discovery and governance can be centralized logically without moving all source data across borders.
D:That principle applies primarily to a different design condition: A company creates one Google Cloud project for every analyst and gives them broad permissions to all production datasets. There the relevant engineering response is to define a project and dataset hierarchy separating teams, environments and shared governed assets. For the given case, the controlling rationale is that metadata discovery and governance can be centralized logically without moving all source data across borders.
Question 320
An operator has deployed the solution: Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. In the situation where a company needs one transformation pipeline for daily archive files and live events with the same business rules. Which evidence BEST confirms success?
- A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
- Two runs launched from the pinned template report the intended container digest and equivalent sample output.
- A controlled sample produces matching normalized records from batch replay and stream processing.
- Injected sensitive tickets have identifiers removed and invalid enrichment results are quarantined.
Explanation
Correct Answer
C:This is the decisive test result: A controlled sample produces matching normalized records from batch replay and stream processing. It directly validates the implementation to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. The underlying case is: A company needs one transformation pipeline for daily archive files and live events with the same business rules. This matters because a unified transformation model reduces drift between historical backfills and real-time calculations. Without it, separate hand-maintained implementations may classify identical records differently across batch and stream paths.
Incorrect Answers
A:This is proof for a different safeguard: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. That applies when an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The present control instead requires the specific outcome: A controlled sample produces matching normalized records from batch replay and stream processing.
B:This is proof for a different safeguard: Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. That applies when a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The present control instead requires the specific outcome: A controlled sample produces matching normalized records from batch replay and stream processing.
D:This is proof for a different safeguard: Insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. That applies when a pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. The present control instead requires the specific outcome: A controlled sample produces matching normalized records from batch replay and stream processing.