Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 68
Question 670
An operator has deployed the solution: Choose suitable interactive or batch query priority and scheduling policies for the business use case. In the situation where a data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. Which evidence BEST confirms success?
- A load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
- A broad query hits the configured cost guardrail while a bounded analysis succeeds.
- Reservation metrics attribute slot consumption to the expected projects and agree with the schedule.
- The batch job waits appropriately while a protected interactive query meets its response SLO.
Explanation
Correct Answer
D:This is the decisive test result: The batch job waits appropriately while a protected interactive query meets its response SLO. It directly validates the implementation to choose suitable interactive or batch query priority and scheduling policies for the business use case. The underlying case is: A data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. This matters because query priority and execution timing should reflect latency expectations and available capacity. Without it, low-urgency work can contend with urgent analytical queries and delay user decisions.
Incorrect Answers
A:This is proof for a different safeguard: Assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. That applies when business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. The present control instead requires the specific outcome: The batch job waits appropriately while a protected interactive query meets its response SLO.
B:This is proof for a different safeguard: Apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. That applies when a finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The present control instead requires the specific outcome: The batch job waits appropriately while a protected interactive query meets its response SLO.
C:This is proof for a different safeguard: Define reservation assignments or chargeback attribution by project and monitor edition/slot usage. That applies when different departments share one BigQuery reservation and nobody can explain who used the slots during a busy hour. The present control instead requires the specific outcome: The batch job waits appropriately while a protected interactive query meets its response SLO.
Question 671
The design review proposes the following action: Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. The triggering condition is: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. Which technical principle BEST justifies it?
- Warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits.
- Cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
- Quota failures must be distinguished from application exceptions and permission errors for correct remediation.
- A job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
Explanation
Correct Answer
A:The governing principle is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits. It explains why the team should inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. The current problem is: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. Without the safeguard, a skewed join may remain slow even after costly reservation expansion. A suitable proof is: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
Incorrect Answers
B:That principle applies primarily to a different design condition: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. There the relevant engineering response is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. For the given case, the controlling rationale is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits.
C:That principle applies primarily to a different design condition: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There the relevant engineering response is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. For the given case, the controlling rationale is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits.
D:That principle applies primarily to a different design condition: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. There the relevant engineering response is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. For the given case, the controlling rationale is that warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits.
Question 672
A data engineer recommends: Version feature transformations and validate training-serving parity before model promotion. It addresses: An online model receives categorical features computed differently from the training query maintained in BigQuery. What underlying principle explains the recommendation?
- Class imbalance can make accuracy appear high while the model misses its minority target class.
- Feature skew can invalidate model accuracy even when both training and inference code execute without error.
- Vector search must preserve the underlying document's access restrictions rather than bypass them through derived representations.
- Embedding granularity influences whether retrieval returns precise evidence instead of broad unrelated context.
Explanation
Correct Answer
B:The governing principle is that feature skew can invalidate model accuracy even when both training and inference code execute without error. It explains why the team should version feature transformations and validate training-serving parity before model promotion. The current problem is: An online model receives categorical features computed differently from the training query maintained in BigQuery. Without the safeguard, predictions may degrade because production normalizes or encodes values differently from training. A suitable proof is: The same raw test entity produces matching approved feature vectors in offline and online paths.
Incorrect Answers
A:That principle applies primarily to a different design condition: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. There the relevant engineering response is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. For the given case, the controlling rationale is that feature skew can invalidate model accuracy even when both training and inference code execute without error.
C: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 feature skew can invalidate model accuracy even when both training and inference code execute without error.
D:That principle applies primarily to a different design condition: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. There the relevant engineering response is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. For the given case, the controlling rationale is that feature skew can invalidate model accuracy even when both training and inference code execute without error.
Question 673
The team accepts this control: Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. What observable result should its acceptance test verify?
- The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
- The auditor queries the authorized view successfully but direct queries against the base table are denied.
- Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
- A development identity can write to test datasets but cannot modify production tables without approved promotion.
Explanation
Correct Answer
A:This is the decisive test result: The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity. It directly validates the implementation to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. The underlying case is: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. This matters because short-lived, scoped identities reduce credential theft exposure and enable accountable workload authentication. Without it, a leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
Incorrect Answers
B:This is proof for a different safeguard: Expose approved results using a BigQuery authorized view or supported authorized dataset configuration. That applies when an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The present control instead requires the specific outcome: The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
C:This is proof for a different safeguard: Use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. That applies when a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The present control instead requires the specific outcome: The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
D:This is proof for a different safeguard: Separate development and production data resources and authorize deploy-only service accounts for guarded promotion. That applies when developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. The present control instead requires the specific outcome: The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
Question 674
An architecture proposal calls for: Use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. In this case: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. Which rationale MOST strongly supports the choice?
- Class imbalance can make accuracy appear high while the model misses its minority target class.
- 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.
- Batch ML scoring should match product objectives and data availability rather than require online serving by default.
Explanation
Correct Answer
A:The governing principle is that class imbalance can make accuracy appear high while the model misses its minority target class. It explains why the team should use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. The current problem is: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. Without the safeguard, an always-negative classifier may be deployed despite detecting no actual defaults. A suitable proof is: A held-out report includes minority-class recall, false positives and threshold trade-offs.
Incorrect Answers
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 class imbalance can make accuracy appear high while the model misses its minority target class.
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 class imbalance can make accuracy appear high while the model misses its minority target class.
D:That principle applies primarily to a different design condition: A business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. There the relevant engineering response is to evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. For the given case, the controlling rationale is that class imbalance can make accuracy appear high while the model misses its minority target class.
Question 675
A project declines to apply this measure: Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. It faces: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. Which consequence is MOST directly unresolved?
- The target may silently omit rows modified during the transition from bulk copy to streaming replication.
- A generated query may join restricted tables or produce invalid financial totals with a plausible narrative.
- Wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails.
- An automatic retry can inflate daily revenue despite a successful retry status.
Explanation
Correct Answer
A:The specific residual risk is that the target may silently omit rows modified during the transition from bulk copy to streaming replication. The situation is: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. The missing response is to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. The engineering reason is that a consistent snapshot and change stream must be combined without missing or double-applying source mutations. After remediation, verify: Counts, sampled checksums and source change positions reconcile at a documented consistency point.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. Its tailored control is to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. In the present situation the more direct exposure is that the target may silently omit rows modified during the transition from bulk copy to streaming replication.
C:This failure mode belongs chiefly to another situation: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. Its tailored control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures. In the present situation the more direct exposure is that the target may silently omit rows modified during the transition from bulk copy to streaming replication.
D:This failure mode belongs chiefly to another situation: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. Its tailored control is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. In the present situation the more direct exposure is that the target may silently omit rows modified during the transition from bulk copy to streaming replication.
Question 676
An architect must address the following condition: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. Which approach should be selected?
- Configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints.
- Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster.
- Apply partition pruning and measure bytes processed before increasing compute or running frequency.
- Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics.
Explanation
Correct Answer
B:The appropriate design is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. This addresses the exact constraint: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The underlying principle is that short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines. If omitted, persistent workers can create excessive cost for a small daily processing window. A direct acceptance test is: A timed job-based execution meets completion SLAs at lower total compute cost.
Incorrect Answers
A:This action fits a separate situation: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. There it would make sense to configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. It does not resolve this case, in which a nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The needed control is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster.
C:This action fits a separate situation: A scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. There it would make sense to apply partition pruning and measure bytes processed before increasing compute or running frequency. It does not resolve this case, in which a nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The needed control is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster.
D:This action fits a separate situation: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. There it would make sense to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. It does not resolve this case, in which a nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The needed control is to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster.
Question 677
A production data pipeline has this problem: A source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. Which solution MOST directly corrects it?
- Assess Database Migration Service support and an initial load plus continuous replication cutover plan.
- Design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation.
- Retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria.
- Map time zones, collations and data types explicitly and validate representative migration edge cases.
Explanation
Correct Answer
D:The appropriate design is to map time zones, collations and data types explicitly and validate representative migration edge cases. This addresses the exact constraint: A source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The underlying principle is that data migration fidelity includes semantic conversions, not merely record-count equality. If omitted, transactions can move into the wrong reporting day and join keys can stop matching after migration. A direct acceptance test is: Tests around daylight-saving transitions and mixed-case keys match an approved source-system oracle.
Incorrect Answers
A:This action fits a separate situation: A company moves a supported transactional database to Cloud SQL and needs a short final application outage. There it would make sense to assess Database Migration Service support and an initial load plus continuous replication cutover plan. It does not resolve this case, in which a source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The needed control is to map time zones, collations and data types explicitly and validate representative migration edge cases.
B:This action fits a separate situation: A legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. There it would make sense to design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. It does not resolve this case, in which a source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The needed control is to map time zones, collations and data types explicitly and validate representative migration edge cases.
C:This action fits a separate situation: A cutover plan overwrites old source extracts immediately and offers no route back if target reporting fails. There it would make sense to retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria. It does not resolve this case, in which a source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The needed control is to map time zones, collations and data types explicitly and validate representative migration edge cases.
Question 678
An organization does not implement the safeguard: Issue time-bounded governed access and automate revocation or periodic review of the sharing entitlement. In the following situation, a temporary outside research contract should grant access to one dataset for thirty days, not indefinitely. Which failure is MOST likely?
- A collaborator may copy personal identifiers even though the approved task requires only aggregates.
- A forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
- The outside contractor may retain sensitive access months after the project ends.
- Manual extracts can create outdated, untracked partner datasets with inconsistent revocation behavior.
Explanation
Correct Answer
C:The specific residual risk is that the outside contractor may retain sensitive access months after the project ends. The situation is: A temporary outside research contract should grant access to one dataset for thirty days, not indefinitely. The missing response is to issue time-bounded governed access and automate revocation or periodic review of the sharing entitlement. The engineering reason is that temporary data sharing needs expiry controls rather than relying on manual memories to revoke privileges. After remediation, verify: A test entitlement expires on schedule and access audit records show no subsequent permitted queries.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A dataset shared with contractors includes direct phone numbers that are not needed for their analytical report. Its tailored control is to publish masked or tokenized fields and explicitly authorize any permitted unmasked roles. In the present situation the more direct exposure is that the outside contractor may retain sensitive access months after the project ends.
B:This failure mode belongs chiefly to another situation: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. Its tailored control is to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. In the present situation the more direct exposure is that the outside contractor may retain sensitive access months after the project ends.
D:This failure mode belongs chiefly to another situation: A data producer wants to distribute governed BigQuery datasets to partner companies without copying full tables into each partner project. Its tailored control is to publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions. In the present situation the more direct exposure is that the outside contractor may retain sensitive access months after the project ends.
Question 679
A production review examines this scenario: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The team adopts: Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. Which test BEST establishes the control works?
- Query statistics show fewer scanned blocks and acceptable performance for selective customer filters.
- A known order sample reconciles through the fact table and each dimension without duplicate amount inflation.
- A representative profile query reads all expected repeated values with improved scan and execution measures.
- A four-item sample order is represented in full and its item sums reconcile to the parent order.
Explanation
Correct Answer
C:This is the decisive test result: A representative profile query reads all expected repeated values with improved scan and execution measures. It directly validates the implementation to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. The underlying case is: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. This matters because bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities. Without it, an overnormalized analytical schema may spend excessive time joining simple repeated attributes.
Incorrect Answers
A:This is proof for a different safeguard: Cluster the partitioned BigQuery table on frequently filtered customer or account columns. That applies when a warehouse table already partitions by day but repeated analyses filter by customer_id within those days. The present control instead requires the specific outcome: A representative profile query reads all expected repeated values with improved scan and execution measures.
B:This is proof for a different safeguard: Model conformed dimensions and a documented fact table grain before creating reporting views. That applies when sales leadership needs reproducible regional revenue and product category measures across many dashboards. The present control instead requires the specific outcome: A representative profile query reads all expected repeated values with improved scan and execution measures.
D:This is proof for a different safeguard: Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. That applies when an analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. The present control instead requires the specific outcome: A representative profile query reads all expected repeated values with improved scan and execution measures.
Question 680
A production review examines this scenario: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The team adopts: Decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. Which test BEST establishes the control works?
- A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
- A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
- An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
- A representative Parquet dataset is independently readable with matching schema and row totals in both environments.
Explanation
Correct Answer
B:This is the decisive test result: A consumer test reads an equivalent published contract from the replacement backend without changing business logic. It directly validates the implementation to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. The underlying case is: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. This matters because loose coupling limits replacement costs when data processing systems evolve independently. Without it, embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
Incorrect Answers
A:This is proof for a different safeguard: Model future event volume, latency and retention tiers before fixing component and partitioning choices. That applies when a growing online business chooses a storage architecture only for today's ten-thousand daily transactions. The present control instead requires the specific outcome: A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
C: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 consumer test reads an equivalent published contract from the replacement backend without changing business logic.
D:This is proof for a different safeguard: Store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. That applies when a company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. The present control instead requires the specific outcome: A consumer test reads an equivalent published contract from the replacement backend without changing business logic.