Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 10
Question 90
The team accepts this control: Define governed date and time-zone conversion rules for consistent business reporting periods. What observable result should its acceptance test verify?
- A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
- A sampled population produces the same active-customer count through two independent approved implementations.
- Boundary-time transactions reconcile to the same assigned business date in all approved reports.
- A query trace shows predicates applied in BigQuery and a smaller result transferred to the client.
Explanation
Correct Answer
C:This is the decisive test result: Boundary-time transactions reconcile to the same assigned business date in all approved reports. It directly validates the implementation to define governed date and time-zone conversion rules for consistent business reporting periods. The underlying case is: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. This matters because analytical measures are comparable only when the time boundary and temporal semantics are documented. Without it, one transaction can be counted on different reporting days across regional dashboards.
Incorrect Answers
A: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: Boundary-time transactions reconcile to the same assigned business date in all approved reports.
B:This is proof for a different safeguard: Publish a reviewed metric contract defining event eligibility, time windows and entity grain. That applies when data scientists and operations teams each call a customer active using incompatible event definitions. The present control instead requires the specific outcome: Boundary-time transactions reconcile to the same assigned business date in all approved reports.
D:This is proof for a different safeguard: Push supported filtering and aggregation into BigQuery and return only required summarized columns. That applies when a BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. The present control instead requires the specific outcome: Boundary-time transactions reconcile to the same assigned business date in all approved reports.
Question 91
The proposed safeguard is not implemented: Combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. The data platform currently faces: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. What direct risk remains?
- A misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
- A principal inside the perimeter might improperly gain access if broad table roles remain unchanged.
- A leaked static key could allow an attacker to read warehouse data until an operator discovers and revokes it.
- Expired personal records may remain accessible indefinitely or legally held records may be deleted prematurely.
Explanation
Correct Answer
B:The specific residual risk is that a principal inside the perimeter might improperly gain access if broad table roles remain unchanged. The situation is: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The missing response is to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. The engineering reason is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions. After remediation, verify: An unauthorized in-perimeter identity is denied table access even though its network context satisfies perimeter policy.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. Its tailored control is to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. In the present situation the more direct exposure is that a principal inside the perimeter might improperly gain access if broad table roles remain unchanged.
C:This failure mode belongs chiefly to another situation: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. Its tailored control is to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. In the present situation the more direct exposure is that a principal inside the perimeter might improperly gain access if broad table roles remain unchanged.
D:This failure mode belongs chiefly to another situation: A data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. Its tailored control is to apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. In the present situation the more direct exposure is that a principal inside the perimeter might improperly gain access if broad table roles remain unchanged.
Question 92
A production review examines this scenario: Two upstream teams publish JSON with different values and types for the same field called transaction_id. The team adopts: Agree a versioned event schema and producer contract, including compatibility and error-handling policy. Which test BEST establishes the control works?
- An outbound test payload contains only fields approved for the enrichment service.
- Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
- A lineage and policy test confirms classified records land only in permitted storage with correct retention.
- Publishing an identical business ID twice results in one accepted financial record after processing.
Explanation
Correct Answer
B:This is the decisive test result: Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload. It directly validates the implementation to agree a versioned event schema and producer contract, including compatibility and error-handling policy. The underlying case is: Two upstream teams publish JSON with different values and types for the same field called transaction_id. This matters because consistent source contracts prevent schema drift from appearing later as broken joins or lost records. Without it, a producer release can break consumers when numeric IDs replace previously used strings.
Incorrect Answers
A:This is proof for a different safeguard: Plan an approved de-identification stage and data-contract checks before external enrichment requests. That applies when a third-party supplier proposes sending customer PII to a general-purpose enrichment API before anonymization. The present control instead requires the specific outcome: Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
C:This is proof for a different safeguard: Partition data flows by classification and define separate approved landing, expiration and access rules. That applies when a shared event topic mixes support recordings and aggregated click counts with very different retention and privacy obligations. The present control instead requires the specific outcome: Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
D:This is proof for a different safeguard: Define immutable business event IDs and a deduplication boundary in the consumer and output design. That applies when a billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The present control instead requires the specific outcome: Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
Question 93
The team accepts this control: Partition the table on an appropriate event-date field and enforce qualifying partition filters. What observable result should its acceptance test verify?
- Query statistics show fewer scanned blocks and acceptable performance for selective customer filters.
- A query dry run and execution scan only expected dates and show reduced bytes processed.
- A representative profile query reads all expected repeated values with improved scan and execution measures.
- A refresh test returns current approved numbers and reduces total query work compared with the base query.
Explanation
Correct Answer
B:This is the decisive test result: A query dry run and execution scan only expected dates and show reduced bytes processed. It directly validates the implementation to partition the table on an appropriate event-date field and enforce qualifying partition filters. The underlying case is: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. This matters because partition pruning reduces BigQuery bytes scanned when filters select the partitioning column. Without it, scanning unneeded historical partitions can make daily reporting expensive and slow.
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 query dry run and execution scan only expected dates and show reduced bytes processed.
C:This is proof for a different safeguard: Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. That applies when a user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The present control instead requires the specific outcome: A query dry run and execution scan only expected dates and show reduced bytes processed.
D:This is proof for a different safeguard: Evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. That applies when a team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. The present control instead requires the specific outcome: A query dry run and execution scan only expected dates and show reduced bytes processed.
Question 94
The design review proposes the following action: Apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. The triggering condition is: A data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. Which technical principle BEST justifies it?
- BigQuery query execution authority and permission to read source table data are separate access checks.
- Environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
- Regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection.
- Short-lived, scoped identities reduce credential theft exposure and enable accountable workload authentication.
Explanation
Correct Answer
C:The governing principle is that regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection. It explains why the team should apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. The current problem is: A data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. Without the safeguard, expired personal records may remain accessible indefinitely or legally held records may be deleted prematurely. A suitable proof is: A retention test expires eligible records while preserving specifically protected items under approved holds.
Incorrect Answers
A:That principle applies primarily to a different design condition: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. There the relevant engineering response is to grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. For the given case, the controlling rationale is that regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection.
B:That principle applies primarily to a different design condition: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. There the relevant engineering response is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. For the given case, the controlling rationale is that regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection.
D:That principle applies primarily to a different design condition: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. There the relevant engineering response is to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. For the given case, the controlling rationale is that regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection.
Question 95
A production review examines this scenario: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The team adopts: Validate critical fields, expected uniqueness and population-level reconciliation before publication. Which test BEST establishes the control works?
- Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
- Repeated delivery of one payment event results in one durable charge and one settlement reference.
- A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
- An injected error rolls back both intended table changes and leaves balances consistent.
Explanation
Correct Answer
A:This is the decisive test result: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation. It directly validates the implementation to validate critical fields, expected uniqueness and population-level reconciliation before publication. The underlying case is: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. This matters because data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output. Without it, customer counts and attribution models can become biased when duplicate and null identifiers enter analytics.
Incorrect Answers
B:This is proof for a different safeguard: Choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. That applies when a payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. The present control instead requires the specific outcome: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
C:This is proof for a different safeguard: Set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. That applies when a risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. The present control instead requires the specific outcome: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
D:This is proof for a different safeguard: Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. That applies when a BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. The present control instead requires the specific outcome: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
Question 96
A data engineer recommends: Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. It addresses: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. What underlying principle explains the recommendation?
- Historical attribute reporting requires preserving versions and nonoverlapping validity intervals for entities.
- Reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
- BigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
- Incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known.
Explanation
Correct Answer
C:The governing principle is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities. It explains why the team should consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. The current problem is: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. Without the safeguard, an overnormalized analytical schema may spend excessive time joining simple repeated attributes. A suitable proof is: A representative profile query reads all expected repeated values with improved scan and execution measures.
Incorrect Answers
A:That principle applies primarily to a different design condition: The warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. There the relevant engineering response is to implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. For the given case, the controlling rationale is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
B:That principle applies primarily to a different design condition: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. There the relevant engineering response is to evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. For the given case, the controlling rationale is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
D:That principle applies primarily to a different design condition: A warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. There the relevant engineering response is to use incremental partition-aware transformations and recompute only the required correction horizon. For the given case, the controlling rationale is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
Question 97
An architect must address the following condition: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. Which approach should be selected?
- Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
- Schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry.
- Create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
- Use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks.
Explanation
Correct Answer
C:The appropriate design is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. This addresses the exact constraint: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. The underlying principle is that a workflow DAG makes producer-consumer ordering explicit instead of relying on coincident schedules. If omitted, downstream reporting can publish a mixture of new and stale source partitions. A direct acceptance test is: A simulated upstream failure prevents the dependent task from starting and records the blocked dependency.
Incorrect Answers
A:This action fits a separate situation: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. There it would make sense to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. It does not resolve this case, in which an hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. The needed control is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
B:This action fits a separate situation: A Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. There it would make sense to schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry. It does not resolve this case, in which an hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. The needed control is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
D:This action fits a separate situation: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. There it would make sense to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. It does not resolve this case, in which an hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. The needed control is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
Question 98
A production review examines this scenario: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. The team adopts: Assign a dedicated ingestion service account with source-specific access and only required destination permissions. Which test BEST establishes the control works?
- A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
- An outbound test payload contains only fields approved for the enrichment service.
- A missing pricing artifact blocks the dependent transform while reporting the unmet prerequisite.
- A lineage and policy test confirms classified records land only in permitted storage with correct retention.
Explanation
Correct Answer
A:This is the decisive test result: A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets. It directly validates the implementation to assign a dedicated ingestion service account with source-specific access and only required destination permissions. The underlying case is: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. This matters because pipeline identity should separate automated data acquisition from personal user credentials and limit source access. Without it, a departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets.
Incorrect Answers
B:This is proof for a different safeguard: Plan an approved de-identification stage and data-contract checks before external enrichment requests. That applies when a third-party supplier proposes sending customer PII to a general-purpose enrichment API before anonymization. The present control instead requires the specific outcome: A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
C:This is proof for a different safeguard: Model the upstream dependencies and readiness checks before selecting the orchestration method. That applies when a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The present control instead requires the specific outcome: A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
D:This is proof for a different safeguard: Partition data flows by classification and define separate approved landing, expiration and access rules. That applies when a shared event topic mixes support recordings and aggregated click counts with very different retention and privacy obligations. The present control instead requires the specific outcome: A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
Question 99
An operator has deployed the solution: Run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. In the situation where an existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. Which evidence BEST confirms success?
- A late-event simulation yields an early provisional pane and an expected corrected final view.
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
- A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
- The malformed event reaches the dead-letter path with diagnostic context while healthy events continue.
Explanation
Correct Answer
C:This is the decisive test result: A benchmark executes the existing job with matching output and acceptable completion cost on managed workers. It directly validates the implementation to run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. The underlying case is: An existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. This matters because dataproc can preserve Spark processing capabilities while reducing infrastructure administration requirements. Without it, rewriting complex, working Spark transformations unnecessarily may introduce regressions and slow migration.
Incorrect Answers
A:This is proof for a different safeguard: Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. That applies when an operations dashboard needs an early approximate count and a later corrected count for late mobile activity. The present control instead requires the specific outcome: A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
B:This is proof for a different safeguard: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. That applies when a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The present control instead requires the specific outcome: A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
D:This is proof for a different safeguard: Configure controlled retry limits and an authorized dead-letter topic with an owned replay or inspection process. That applies when one malformed Pub/Sub payload is retried indefinitely and repeatedly blocks progress for a subscription consumer. The present control instead requires the specific outcome: A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
Question 100
A pipeline team implements the measure: Use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. Which result would provide the STRONGEST operational evidence of effectiveness?
- A scripted late-arrival test produces the documented correction behavior and expected reconciled totals.
- A controlled sample produces matching normalized records from batch replay and stream processing.
- A forced sink timeout and retry yield one externally recorded charge per business transaction.
- Only a complete validated file loads and a quality count matches the source manifest.
Explanation
Correct Answer
D:This is the decisive test result: Only a complete validated file loads and a quality count matches the source manifest. It directly validates the implementation to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. The underlying case is: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. This matters because batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary. Without it, an unvalidated partial file can replace a complete daily partition or produce incorrect field types.
Incorrect Answers
A:This is proof for a different safeguard: Use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. That applies when a utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. The present control instead requires the specific outcome: Only a complete validated file loads and a quality count matches the source manifest.
B:This is proof for a different safeguard: Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. That applies when a company needs one transformation pipeline for daily archive files and live events with the same business rules. The present control instead requires the specific outcome: Only a complete validated file loads and a quality count matches the source manifest.
C:This is proof for a different safeguard: Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. That applies when a Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. The present control instead requires the specific outcome: Only a complete validated file loads and a quality count matches the source manifest.