Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 39
Question 380
Consider a Google Cloud data engineering design: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. What action BEST meets the stated constraint?
- Select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay.
- Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate.
- Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing.
- Detect hot keys and apply supported fanout or key-distribution strategies before final aggregation.
Explanation
Correct Answer
A:The appropriate design is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. This addresses the exact constraint: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The underlying principle is that kafka integration requires consistent consumption positions, error handling and sink identity across restarts. If omitted, a restarted connector may replay records or miss a partition if offsets are not managed correctly. A direct acceptance test is: A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
Incorrect Answers
B:This action fits a separate situation: A company needs one transformation pipeline for daily archive files and live events with the same business rules. There it would make sense to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. It does not resolve this case, in which a business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The needed control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay.
C:This action fits a separate situation: A Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. There it would make sense to use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. It does not resolve this case, in which a business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The needed control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay.
D:This action fits a separate situation: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. There it would make sense to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation. It does not resolve this case, in which a business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The needed control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay.
Question 381
An organization does not implement the safeguard: Configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. In the following situation, petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. Which failure is MOST likely?
- Persistent workers can create excessive cost for a small daily processing window.
- One hot reducer can dominate runtime while the rest of the cluster remains underused.
- Unbounded scans can consume a large budget without improving the freshness of any report.
- An unreviewed class switch can make occasional investigations costlier than projected.
Explanation
Correct Answer
D:The specific residual risk is that an unreviewed class switch can make occasional investigations costlier than projected. The situation is: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. The missing response is to configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. The engineering reason is that storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges. After remediation, verify: A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. Its tailored control is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. In the present situation the more direct exposure is that an unreviewed class switch can make occasional investigations costlier than projected.
B:This failure mode belongs chiefly to another situation: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. Its tailored control is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. In the present situation the more direct exposure is that an unreviewed class switch can make occasional investigations costlier than projected.
C:This failure mode belongs chiefly to another situation: A scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. Its tailored control is to apply partition pruning and measure bytes processed before increasing compute or running frequency. In the present situation the more direct exposure is that an unreviewed class switch can make occasional investigations costlier than projected.
Question 382
The team accepts this control: Use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. What observable result should its acceptance test verify?
- An answerability test retrieves the intended section with acceptable recall and valid source attribution.
- A test query retrieves relevant approved passages and references their correct document versions.
- A scheduled prediction produces one scored record per eligible account and meets agreed relevance metrics.
- A held-out report includes minority-class recall, false positives and threshold trade-offs.
Explanation
Correct Answer
D:This is the decisive test result: A held-out report includes minority-class recall, false positives and threshold trade-offs. It directly validates the implementation to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. The underlying case is: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. This matters because class imbalance can make accuracy appear high while the model misses its minority target class. Without it, an always-negative classifier may be deployed despite detecting no actual defaults.
Incorrect Answers
A:This is proof for a different safeguard: Choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. That applies when a document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The present control instead requires the specific outcome: A held-out report includes minority-class recall, false positives and threshold trade-offs.
B:This is proof for a different safeguard: Chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. That applies when a support team wants retrieval-augmented responses from thousands of unstructured policy documents. The present control instead requires the specific outcome: A held-out report includes minority-class recall, false positives and threshold trade-offs.
C:This is proof for a different safeguard: Evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. That applies when a business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. The present control instead requires the specific outcome: A held-out report includes minority-class recall, false positives and threshold trade-offs.
Question 383
An architect must address the following condition: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. Which approach should be selected?
- Use checkpointed or idempotent output publication and reconcile before marking a restarted job successful.
- Keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics.
- Design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover.
- Plan supported table recovery or versioned backup processes and test restoration into a controlled target.
Explanation
Correct Answer
C:The appropriate design is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. This addresses the exact constraint: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The underlying principle is that multi-region recovery requires dependencies as well as data to be available in the alternate location. If omitted, a replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery. A direct acceptance test is: A regional outage rehearsal starts essential workloads in the approved alternate region within targets.
Incorrect Answers
A:This action fits a separate situation: A batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. There it would make sense to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. It does not resolve this case, in which a regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The needed control is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover.
B: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 regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The needed control is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover.
D: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 regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The needed control is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover.
Question 384
A pipeline team implements the measure: Select supported Cloud SQL high availability or failover design and validate application reconnection behavior. Which result would provide the STRONGEST operational evidence of effectiveness?
- A cache-node failure test restores service from the authoritative state and checks the tolerated loss boundary.
- A controlled failover demonstrates application reconnection within the documented recovery target.
- A timed outage test restores consumption and reconciles business event IDs to the retained source.
- A forced halfway restart produces the same final row-key inventory as a clean reference run.
Explanation
Correct Answer
B:This is the decisive test result: A controlled failover demonstrates application reconnection within the documented recovery target. It directly validates the implementation to select supported Cloud SQL high availability or failover design and validate application reconnection behavior. The underlying case is: A critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. This matters because availability requirements must include failover of stateful databases and dependent client connectivity. Without it, an application can remain offline although replacement database capacity exists in another zone.
Incorrect Answers
A:This is proof for a different safeguard: Keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics. That applies when 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. The present control instead requires the specific outcome: A controlled failover demonstrates application reconnection within the documented recovery target.
C:This is proof for a different safeguard: Preserve adequate subscription retention and implement bounded replay with stable deduplication keys. That applies when a Pub/Sub subscriber is down for an hour and returns to a large backlog with events that may be delivered repeatedly. The present control instead requires the specific outcome: A controlled failover demonstrates application reconnection within the documented recovery target.
D:This is proof for a different safeguard: Use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. That applies when a batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. The present control instead requires the specific outcome: A controlled failover demonstrates application reconnection within the documented recovery target.
Question 385
The design review proposes the following action: Evaluate supported BigQuery ML training and evaluation on the governed analytical dataset. The triggering condition is: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. Which technical principle BEST justifies it?
- Vector search must preserve the underlying document's access restrictions rather than bypass them through derived representations.
- Temporal leakage produces unrealistic evaluation scores when future data enters historical feature construction.
- RAG preparation requires searchable text representations and attribution to the original documents.
- In-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance.
Explanation
Correct Answer
D:The governing principle is that in-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance. It explains why the team should evaluate supported BigQuery ML training and evaluation on the governed analytical dataset. The current problem is: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. Without the safeguard, unnecessary data exports can create extra security boundaries and versioning inconsistencies. A suitable proof is: A held-out evaluation produces documented quality metrics and a traceable model version using the governed tables.
Incorrect Answers
A:That principle applies primarily to a different design condition: A RAG project creates embeddings from confidential contracts and places them in a vector store accessible to every employee. There the relevant engineering response is to apply document entitlement filtering and privacy controls before and during embedding retrieval. For the given case, the controlling rationale is that in-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance.
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 in-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance.
C:That principle applies primarily to a different design condition: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. There the relevant engineering response is to chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. For the given case, the controlling rationale is that in-warehouse machine learning can simplify suitable tabular model development while retaining warehouse governance.
Question 386
An operator has deployed the solution: Plan location-compatible sharing and approved export paths before publishing the subscription. In the situation where a customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. Which evidence BEST confirms success?
- A location audit of subscriber access and any copies confirms that all created assets are in permitted regions.
- A vendor query succeeds on the approved summary and fails on the raw invoice table.
- A nonmember opening the shared link is denied the protected report and underlying data.
- A breaking-change test blocks publication until dependent consumers acknowledge or migrate.
Explanation
Correct Answer
A:This is the decisive test result: A location audit of subscriber access and any copies confirms that all created assets are in permitted regions. It directly validates the implementation to plan location-compatible sharing and approved export paths before publishing the subscription. The underlying case is: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. This matters because data sharing must account for geographic processing and storage constraints on both producer and consumer sides. Without it, a convenient cross-region copy may violate residency terms or incur avoidable transfer charges.
Incorrect Answers
B:This is proof for a different safeguard: Share an authorized aggregate view or published derived table instead of granting source table access. That applies when a vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The present control instead requires the specific outcome: A location audit of subscriber access and any copies confirms that all created assets are in permitted regions.
C:This is proof for a different safeguard: Use dashboard access controls and approved report embedding or sharing settings tied to data permissions. That applies when an internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. The present control instead requires the specific outcome: A location audit of subscriber access and any copies confirms that all created assets are in permitted regions.
D:This is proof for a different safeguard: Manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. That applies when a provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. The present control instead requires the specific outcome: A location audit of subscriber access and any copies confirms that all created assets are in permitted regions.
Question 387
An organization does not implement the safeguard: Apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. In the following situation, a media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. Which failure is MOST likely?
- Enabling incompatible writers can expose readers to partial commits or inconsistent schema snapshots.
- A marketing identity could read restricted employee records by listing the common object bucket.
- Object listing and opening overhead may dominate actual data scan time.
- Uniform hot storage can create avoidable expense or manual cleanup can delete held records.
Explanation
Correct Answer
D:The specific residual risk is that uniform hot storage can create avoidable expense or manual cleanup can delete held records. The situation is: A media lake contains years of raw data but retention policy requires old noncritical assets to move to lower-cost tiers. The missing response is to apply Cloud Storage object lifecycle policies with access-aware class transitions and approved retention exceptions. The engineering reason is that a data lake must manage storage lifecycle separately from compute so cold data does not incur hot-storage cost indefinitely. After remediation, verify: Test objects follow the approved lifecycle while protected objects remain retrievable under their holds.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. Its tailored control is to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. In the present situation the more direct exposure is that uniform hot storage can create avoidable expense or manual cleanup can delete held records.
B:This failure mode belongs chiefly to another situation: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. Its tailored control is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. In the present situation the more direct exposure is that uniform hot storage can create avoidable expense or manual cleanup can delete held records.
C:This failure mode belongs chiefly to another situation: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. Its tailored control is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows. In the present situation the more direct exposure is that uniform hot storage can create avoidable expense or manual cleanup can delete held records.
Question 388
A data platform team encounters this requirement: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. Which implementation is MOST appropriate?
- Choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types.
- Chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality.
- Apply document entitlement filtering and privacy controls before and during embedding retrieval.
- Use time-aware feature joins and hold out future periods so training information precedes each prediction point.
Explanation
Correct Answer
A:The appropriate design is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. This addresses the exact constraint: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The underlying principle is that embedding granularity influences whether retrieval returns precise evidence instead of broad unrelated context. If omitted, important paragraphs may be buried in oversized chunks and omitted from response context. A direct acceptance test is: An answerability test retrieves the intended section with acceptable recall and valid source attribution.
Incorrect Answers
B:This action fits a separate situation: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. There it would make sense to chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. It does not resolve this case, in which a document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The needed control is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types.
C:This action fits a separate situation: A RAG project creates embeddings from confidential contracts and places them in a vector store accessible to every employee. There it would make sense to apply document entitlement filtering and privacy controls before and during embedding retrieval. It does not resolve this case, in which a document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The needed control is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types.
D:This action fits a separate situation: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. There it would make sense to use time-aware feature joins and hold out future periods so training information precedes each prediction point. It does not resolve this case, in which a document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The needed control is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types.
Question 389
A pipeline team implements the measure: Use supported dynamic data masking or column-level authorization with a non-sensitive published calculation. Which result would provide the STRONGEST operational evidence of effectiveness?
- Boundary-time transactions reconcile to the same assigned business date in all approved reports.
- A nonprivileged analyst sees the approved masked value while an authorized payroll role sees the original.
- A regional user sees the permitted figures and is denied direct access to restricted global rows.
- A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
Explanation
Correct Answer
B:This is the decisive test result: A nonprivileged analyst sees the approved masked value while an authorized payroll role sees the original. It directly validates the implementation to use supported dynamic data masking or column-level authorization with a non-sensitive published calculation. The underlying case is: A report exposes employee compensation ranges but should hide direct salary amounts from most readers. This matters because data masking or field-level restrictions prevent unnecessary disclosure while preserving approved analytics. Without it, a broadly shared visualization can expose identifiable employee compensation details.
Incorrect Answers
A:This is proof for a different safeguard: Define governed date and time-zone conversion rules for consistent business reporting periods. That applies when global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The present control instead requires the specific outcome: A nonprivileged analyst sees the approved masked value while an authorized payroll role sees the original.
C:This is proof for a different safeguard: Serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. That applies when a departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. The present control instead requires the specific outcome: A nonprivileged analyst sees the approved masked value while an authorized payroll role sees the original.
D:This is proof for a different safeguard: Create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. That applies when marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. The present control instead requires the specific outcome: A nonprivileged analyst sees the approved masked value while an authorized payroll role sees the original.
Question 390
A production data pipeline has this problem: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. Which solution MOST directly corrects it?
- Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys.
- Expose approved results using a BigQuery authorized view or supported authorized dataset configuration.
- Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations.
- Create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy.
Explanation
Correct Answer
B:The appropriate design is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration. This addresses the exact constraint: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The underlying principle is that authorized views can share derived information without granting consumers direct access to every referenced base table. If omitted, granting base-table read permissions might leak individual invoice details not required by the audit. A direct acceptance test is: The auditor queries the authorized view successfully but direct queries against the base table are denied.
Incorrect Answers
A:This action fits a separate situation: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. There it would make sense to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. It does not resolve this case, in which an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The needed control is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration.
C:This action fits a separate situation: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. There it would make sense to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. It does not resolve this case, in which an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The needed control is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration.
D:This action fits a separate situation: A multinational organization must keep European patient datasets in an approved European location during processing and storage. There it would make sense to create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. It does not resolve this case, in which an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The needed control is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration.