Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 23
Question 220
The engineering team ignores the recommended change: Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The current state is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. What is the greatest specific exposure?
- A restarted connector may replay records or miss a partition if offsets are not managed correctly.
- A delayed older update can overwrite a more recent customer address and corrupt reporting history.
- A network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
- An unreviewed worker change can alter production transforms without a traceable release identifier.
Explanation
Correct Answer
C:The specific residual risk is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged. The situation is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. The missing response is to implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The engineering reason is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs. After remediation, verify: An induced subscriber crash and redelivery yield one logical output for the tested event ID.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. Its tailored control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
B:This failure mode belongs chiefly to another situation: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. Its tailored control is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
D:This failure mode belongs chiefly to another situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Its tailored control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
Question 221
The proposed safeguard is not implemented: Check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. The data platform currently faces: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. What direct risk remains?
- A public or underprovisioned transfer path can expose data and extend the migration beyond the agreed window.
- A temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant.
- The migration may miss its deadline because an undersized connection spends months uploading raw objects.
- A custom script may miss pagination, authentication renewal or late source corrections.
Explanation
Correct Answer
D:The specific residual risk is that a custom script may miss pagination, authentication renewal or late source corrections. The situation is: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. The missing response is to check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. The engineering reason is that managed connectors simplify recurring ingest when the source and required extraction semantics are supported. After remediation, verify: A scheduled transfer imports the expected source partition and records retry and completion status.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A migration copies large databases over a public route that violates internal network isolation requirements. Its tailored control is to choose supported private connectivity and route throughput tests before bulk migration begins. In the present situation the more direct exposure is that a custom script may miss pagination, authentication renewal or late source corrections.
B:This failure mode belongs chiefly to another situation: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. Its tailored control is to inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. In the present situation the more direct exposure is that a custom script may miss pagination, authentication renewal or late source corrections.
C:This failure mode belongs chiefly to another situation: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. Its tailored control is to evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. In the present situation the more direct exposure is that a custom script may miss pagination, authentication renewal or late source corrections.
Question 222
A data engineer recommends: Inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. It addresses: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. What underlying principle explains the recommendation?
- Physical transfer can be appropriate when bulk dataset size makes ordinary network upload impractical.
- A safe migration plan preserves a recoverable prior state until downstream consumers accept the replacement.
- Continuous migration reduces downtime when the source and target database engines are supported.
- A compliant migration must account for temporary copies as well as final data residence.
Explanation
Correct Answer
D:The governing principle is that a compliant migration must account for temporary copies as well as final data residence. It explains why the team should inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. The current problem is: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. Without the safeguard, a temporary export bucket in the wrong jurisdiction can breach policy even if the destination is compliant. A suitable proof is: The migration inventory and access logs show every staging and destination resource uses an allowed location.
Incorrect Answers
A:That principle applies primarily to a different design condition: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. There the relevant engineering response is to evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. For the given case, the controlling rationale is that a compliant migration must account for temporary copies as well as final data residence.
B: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 a compliant migration must account for temporary copies as well as final data residence.
C:That principle applies primarily to a different design condition: A company moves a supported transactional database to Cloud SQL and needs a short final application outage. There the relevant engineering response is to assess Database Migration Service support and an initial load plus continuous replication cutover plan. For the given case, the controlling rationale is that a compliant migration must account for temporary copies as well as final data residence.
Question 223
An operator has deployed the solution: Use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. In the situation where a data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. Which evidence BEST confirms success?
- An approved analyst can read public lake partitions but is denied access to classified employee data.
- A faulty transform is rebuilt from retained raw objects without changing the original ingest bytes.
- Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
- Independent engines read a representative column subset with matching types and expected row counts.
Explanation
Correct Answer
D:This is the decisive test result: Independent engines read a representative column subset with matching types and expected row counts. It directly validates the implementation to use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. The underlying case is: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. This matters because columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed. Without it, opaque serialized blobs can make cross-engine processing expensive and cause schema mismatch failures.
Incorrect Answers
A: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: Independent engines read a representative column subset with matching types and expected row counts.
B:This is proof for a different safeguard: Keep protected raw data and publish separately validated curated datasets with explicit lineage references. That applies when a lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. The present control instead requires the specific outcome: Independent engines read a representative column subset with matching types and expected row counts.
C:This is proof for a different safeguard: Evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. That applies when a multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. The present control instead requires the specific outcome: Independent engines read a representative column subset with matching types and expected row counts.
Question 224
Consider a Google Cloud data engineering design: Historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. What action BEST meets the stated constraint?
- Use an approved event trigger with object-identity deduplication and downstream orchestration.
- Use Cloud Workflows conditional steps and bounded error handling with a defined compensation path.
- Use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior.
- Implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
Explanation
Correct Answer
D:The appropriate design is to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation. This addresses the exact constraint: Historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The underlying principle is that backfills are separate governed operations whose data ranges must not race with current daily publication. If omitted, a poorly scoped backfill can overwrite new records or swamp interactive warehouse reservations. A direct acceptance test is: A sampled backfill alters only requested periods while fresh daily runs continue correctly.
Incorrect Answers
A: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 historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The needed control is to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
B:This action fits a separate situation: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. There it would make sense to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. It does not resolve this case, in which historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The needed control is to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
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 historical corrections require replaying three weeks of events while ordinary daily pipelines continue to run. The needed control is to implement a parameterized backfill DAG with bounded date ranges, dependency isolation and controlled reconciliation.
Question 225
An architect must address the following condition: A batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. Which approach should be selected?
- Keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics.
- Plan supported table recovery or versioned backup processes and test restoration into a controlled target.
- Use checkpointed or idempotent output publication and reconcile before marking a restarted job successful.
- Select supported Cloud SQL high availability or failover design and validate application reconnection behavior.
Explanation
Correct Answer
C:The appropriate design is to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. This addresses the exact constraint: A batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. The underlying principle is that failure recovery must not change logical results when the same unit of work is replayed. If omitted, a transient worker failure can double daily customer counts while every task eventually finishes. A direct acceptance test is: A forced halfway restart produces the same final row-key inventory as a clean reference run.
Incorrect Answers
A:This action fits a separate situation: An ecommerce platform keeps Redis cache data as its only copy of customer shopping-cart totals and assumes a replica removes all data-loss risk. There it would make sense to keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics. It does not resolve this case, in which a batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. The needed control is to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful.
B:This action fits a separate situation: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. There it would make sense to plan supported table recovery or versioned backup processes and test restoration into a controlled target. It does not resolve this case, in which a batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. The needed control is to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful.
D:This action fits a separate situation: A critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. There it would make sense to select supported Cloud SQL high availability or failover design and validate application reconnection behavior. It does not resolve this case, in which a batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. The needed control is to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful.
Question 226
A pipeline team implements the measure: Adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. Which result would provide the STRONGEST operational evidence of effectiveness?
- Two domain products use the same protected classification policy with named accountable stewards.
- A test group can access only its approved environment and costs can be attributed to the correct project.
- A sampled report metric resolves through the registered lineage graph to source records and transformations.
- The catalog finds regional assets while data movement logs confirm no unauthorized cross-border copies.
Explanation
Correct Answer
A:This is the decisive test result: Two domain products use the same protected classification policy with named accountable stewards. It directly validates the implementation to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. The underlying case is: Business units own their data products but the central platform team must enforce consistent privacy rules. This matters because federated governance balances local data expertise with common enterprise control expectations. Without it, teams can interpret the same customer classification differently and leak restricted fields to consumers.
Incorrect Answers
B:This is proof for a different safeguard: Define a project and dataset hierarchy separating teams, environments and shared governed assets. That applies when a company creates one Google Cloud project for every analyst and gives them broad permissions to all production datasets. The present control instead requires the specific outcome: Two domain products use the same protected classification policy with named accountable stewards.
C:This is proof for a different safeguard: Capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. That applies when a regulated analytics program cannot trace its report fields through source systems after an audit query. The present control instead requires the specific outcome: Two domain products use the same protected classification policy with named accountable stewards.
D:This is proof for a different safeguard: Use federated catalog discovery and region-aware access patterns while retaining approved storage locations. That applies when regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. The present control instead requires the specific outcome: Two domain products use the same protected classification policy with named accountable stewards.
Question 227
The team accepts this control: Model future event volume, latency and retention tiers before fixing component and partitioning choices. What observable result should its acceptance test verify?
- A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
- An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
- An analyst searches the catalog and locates the correct owned dataset and its upstream origin.
- A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
Explanation
Correct Answer
A:This is the decisive test result: A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost. It directly validates the implementation to model future event volume, latency and retention tiers before fixing component and partitioning choices. The underlying case is: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. This matters because an architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign. Without it, a rigid initial design may exceed throughput limits as traffic and historical data volume increase.
Incorrect Answers
B:This is proof for a different safeguard: Land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. That applies when a new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. The present control instead requires the specific outcome: A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
C:This is proof for a different safeguard: Register approved assets in a searchable catalog with owners, descriptions and lineage references. That applies when several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. The present control instead requires the specific outcome: A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
D:This is proof for a different safeguard: Decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. That applies when the enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The present control instead requires the specific outcome: A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
Question 228
The engineering team ignores the recommended change: Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. The current state is: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. What is the greatest specific exposure?
- Inventory may be decremented without the corresponding ledger entry when the second update fails.
- A generated query may join restricted tables or produce invalid financial totals with a plausible narrative.
- The database may prove unrecoverable or too slow to restore when a real regional disruption occurs.
- A retry can charge a customer twice when an external sink lacks deduplication.
Explanation
Correct Answer
B:The specific residual risk is that a generated query may join restricted tables or produce invalid financial totals with a plausible narrative. The situation is: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. The missing response is to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. The engineering reason is that aI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls. After remediation, verify: An intentionally unauthorized generated statement is blocked and a known result is checked against a verified baseline.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Its tailored control is to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. In the present situation the more direct exposure is that a generated query may join restricted tables or produce invalid financial totals with a plausible narrative.
C:This failure mode belongs chiefly to another situation: A risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. Its tailored control is to set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. In the present situation the more direct exposure is that a generated query may join restricted tables or produce invalid financial totals with a plausible narrative.
D:This failure mode belongs chiefly to another situation: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. Its tailored control is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. In the present situation the more direct exposure is that a generated query may join restricted tables or produce invalid financial totals with a plausible narrative.
Question 229
The design review proposes the following action: Apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. The triggering condition is: A media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. Which technical principle BEST justifies it?
- A data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely.
- Columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
- Lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
- A shared physical lake still needs data-level access separation based on classification and consumer roles.
Explanation
Correct Answer
A:The governing principle is that a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely. It explains why the team should apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. The current problem is: A media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. Without the safeguard, uniform hot storage can create avoidable expense or manual cleanup can delete held records. A suitable proof is: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
Incorrect Answers
B:That principle applies primarily to a different design condition: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. There the relevant engineering response is to use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. For the given case, the controlling rationale is that a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely.
C:That principle applies primarily to a different design condition: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. There the relevant engineering response is to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. For the given case, the controlling rationale is that a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely.
D:That principle applies primarily to a different design condition: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. There the relevant engineering response is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. For the given case, the controlling rationale is that a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely.
Question 230
An architect must address the following condition: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. Which approach should be selected?
- Build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate.
- Use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
- 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.
Explanation
Correct Answer
B:The appropriate design is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. This addresses the exact constraint: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The underlying principle is that orchestration retries require idempotent transformation and publication boundaries. If omitted, transient errors can double daily metrics when a job appends twice after an uncertain first outcome. A direct acceptance test is: An injected retry completes with exactly one authoritative set of rows for the scheduled data interval.
Incorrect Answers
A:This action fits a separate situation: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. There it would make sense to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. It does not resolve this case, in which a scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
C: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 scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
D: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 scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.