Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 11
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.
Question 101
A data platform team encounters this requirement: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. Which implementation is MOST appropriate?
- Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
- Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
- Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
- Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing.
Explanation
Correct Answer
A:The appropriate design is to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. This addresses the exact constraint: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. The underlying principle is that pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message. If omitted, a shipment cancellation could be processed before its creation event when order keys are missing. A direct acceptance test is: A published create-update-cancel sequence retains per-order order at the subscriber during the test.
Incorrect Answers
B:This action fits a separate situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. There it would make sense to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. It does not resolve this case, in which a fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. The needed control is to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
C:This action fits a separate situation: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. There it would make sense to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. It does not resolve this case, in which a fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. The needed control is to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
D: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 fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. The needed control is to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
Question 102
An architecture proposal calls for: Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. In this case: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. Which rationale MOST strongly supports the choice?
- Spanner is intended for horizontally scalable relational workloads requiring strong transactional consistency.
- Cloud Storage is an object store appropriate for large unstructured assets and lifecycle management.
- A low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes.
- AlloyDB targets demanding PostgreSQL-compatible operational workloads while retaining managed database practices.
Explanation
Correct Answer
C:The governing principle is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes. It explains why the team should use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. The current problem is: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. Without the safeguard, stale cached prices can reach customers if invalidation and expiration are not defined. A suitable proof is: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Incorrect Answers
A:That principle applies primarily to a different design condition: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There the relevant engineering response is to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. For the given case, the controlling rationale is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes.
B:That principle applies primarily to a different design condition: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. There the relevant engineering response is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy. For the given case, the controlling rationale is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes.
D:That principle applies primarily to a different design condition: A high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. There the relevant engineering response is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements. For the given case, the controlling rationale is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes.
Question 103
Consider a Google Cloud data engineering design: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. What action BEST meets the stated constraint?
- Grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset.
- Use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access.
- Expose approved results using a BigQuery authorized view or supported authorized dataset configuration.
- Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys.
Explanation
Correct Answer
B:The appropriate design is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. This addresses the exact constraint: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The underlying principle is that privacy controls require discovering sensitive fields and matching access and retention to their classification. If omitted, unclassified payment fields could be copied into lower-trust analytics environments or exports. A direct acceptance test is: Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
Incorrect Answers
A:This action fits a separate situation: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. There it would make sense to grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. It does not resolve this case, in which a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The needed control is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access.
C:This action fits a separate situation: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. There it would make sense to expose approved results using a BigQuery authorized view or supported authorized dataset configuration. It does not resolve this case, in which a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The needed control is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access.
D: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 a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The needed control is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access.
Question 104
The team is considering: Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The context is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. Which engineering principle is MOST relevant?
- A managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic.
- At-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs.
- Batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary.
- Upserts require handling duplicate and out-of-order updates to preserve the intended latest record.
Explanation
Correct Answer
B:The governing principle is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs. It explains why the team should implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The current problem is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. Without the safeguard, a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged. A suitable proof is: An induced subscriber crash and redelivery yield one logical output for the tested event ID.
Incorrect Answers
A:That principle applies primarily to a different design condition: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. There the relevant engineering response is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. For the given case, the controlling rationale is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs.
C:That principle applies primarily to a different design condition: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. There the relevant engineering response is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. For the given case, the controlling rationale is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs.
D:That principle applies primarily to a different design condition: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. There the relevant engineering response is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. For the given case, the controlling rationale is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs.
Question 105
An operator has deployed the solution: Route structured Cloud Logging errors into an alert and owned incident response workflow. In the situation where a BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. Which evidence BEST confirms success?
- A test budget threshold and billing report identify the intended service, project and spend driver.
- A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
- Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
- An invalid-input injection increments the rejected count and creates a retrievable quarantine record.
Explanation
Correct Answer
B:This is the decisive test result: A deliberately failed extract produces a timely alert with job ID and the responsible on-call group. It directly validates the implementation to route structured Cloud Logging errors into an alert and owned incident response workflow. The underlying case is: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. This matters because operational alerts require actionable events, severity and ownership, not just passive archived logs. Without it, critical failures can remain invisible until consumers notice missing tables.
Incorrect Answers
A:This is proof for a different safeguard: Use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. That applies when a data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. The present control instead requires the specific outcome: A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
C:This is proof for a different safeguard: Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. That applies when bigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. The present control instead requires the specific outcome: A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
D:This is proof for a different safeguard: Instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. That applies when an Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. The present control instead requires the specific outcome: A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
Question 106
An operator has deployed the solution: Implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. In the situation where the warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. Which evidence BEST confirms success?
- Query statistics show fewer scanned blocks and acceptable performance for selective customer filters.
- A refresh test returns current approved numbers and reduces total query work compared with the base query.
- A test customer changes segments and historical queries resolve the segment valid at each transaction date.
- 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 test customer changes segments and historical queries resolve the segment valid at each transaction date. It directly validates the implementation to implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. The underlying case is: The warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. This matters because historical attribute reporting requires preserving versions and nonoverlapping validity intervals for entities. Without it, a prior-month cohort report can incorrectly use today's customer segment after an overwrite.
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 test customer changes segments and historical queries resolve the segment valid at each transaction date.
B: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 test customer changes segments and historical queries resolve the segment valid at each transaction date.
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 test customer changes segments and historical queries resolve the segment valid at each transaction date.
Question 107
The team accepts this control: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. What observable result should its acceptance test verify?
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
- A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
- An induced subscriber crash and redelivery yield one logical output for the tested event ID.
- Injected sensitive tickets have identifiers removed and invalid enrichment results are quarantined.
Explanation
Correct Answer
A:This is the decisive test result: A representative mapped feed runs from source to target with traceable schema and observed pipeline status. It directly validates the implementation to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. The underlying case is: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. This matters because a managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic. Without it, handwritten integration code may increase maintenance effort for routine column mapping changes.
Incorrect Answers
B:This is proof for a different safeguard: Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. That applies when a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The present control instead requires the specific outcome: A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
C:This is proof for a different safeguard: Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. That applies when pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. The present control instead requires the specific outcome: A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
D:This is proof for a different safeguard: Insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. That applies when a pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. The present control instead requires the specific outcome: A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
Question 108
The team is considering: Cluster the partitioned BigQuery table on frequently filtered customer or account columns. The context is: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. Which engineering principle is MOST relevant?
- Clustering can prune storage blocks inside selected partitions for selective filters.
- Partition pruning reduces BigQuery bytes scanned when filters select the partitioning column.
- Reusable precomputed results can reduce repeated analytical work when supported by query and refresh semantics.
- A clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.
Explanation
Correct Answer
A:The governing principle is that clustering can prune storage blocks inside selected partitions for selective filters. It explains why the team should cluster the partitioned BigQuery table on frequently filtered customer or account columns. The current problem is: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. Without the safeguard, partitioning alone may still scan most blocks for customers within each daily partition. A suitable proof is: Query statistics show fewer scanned blocks and acceptable performance for selective customer filters.
Incorrect Answers
B:That principle applies primarily to a different design condition: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. There the relevant engineering response is to partition the table on an appropriate event-date field and enforce qualifying partition filters. For the given case, the controlling rationale is that clustering can prune storage blocks inside selected partitions for selective filters.
C: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 clustering can prune storage blocks inside selected partitions for selective filters.
D:That principle applies primarily to a different design condition: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. There the relevant engineering response is to model conformed dimensions and a documented fact table grain before creating reporting views. For the given case, the controlling rationale is that clustering can prune storage blocks inside selected partitions for selective filters.
Question 109
A production review examines this scenario: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. The team adopts: Build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. Which test BEST establishes the control works?
- The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
- A release record ties the running job to a reviewed commit, approved image digest and tested rollback.
- An injected retry completes with exactly one authoritative set of rows for the scheduled data interval.
- An injected 503 is retried according to policy and the final step runs only after validated success.
Explanation
Correct Answer
B:This is the decisive test result: A release record ties the running job to a reviewed commit, approved image digest and tested rollback. It directly validates the implementation to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. The underlying case is: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. This matters because pipeline deployment should be reproducible from reviewed source and an immutable artifact reference. Without it, a local unreviewed edit can alter production transformations and be impossible to reproduce or revert.
Incorrect Answers
A:This is proof for a different safeguard: Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. That applies when a newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The present control instead requires the specific outcome: A release record ties the running job to a reviewed commit, approved image digest and tested rollback.
C:This is proof for a different safeguard: Use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. That applies when a scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The present control instead requires the specific outcome: A release record ties the running job to a reviewed commit, approved image digest and tested rollback.
D:This is proof for a different safeguard: Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. That applies when a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The present control instead requires the specific outcome: A release record ties the running job to a reviewed commit, approved image digest and tested rollback.
Question 110
The design review proposes the following action: Track data freshness and completeness SLIs alongside job execution status and route threshold breaches. The triggering condition is: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Which technical principle BEST justifies it?
- Pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
- Fault tolerance requires coordinated recovery of source position and processing state after interruption.
- A processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems.
- AI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
Explanation
Correct Answer
A:The governing principle is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs. It explains why the team should track data freshness and completeness SLIs alongside job execution status and route threshold breaches. The current problem is: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Without the safeguard, an outdated dashboard may drive incorrect operational decisions despite an all-green job list. A suitable proof is: A simulated source delay triggers a freshness alert even when the pipeline reports no task failure.
Incorrect Answers
B:That principle applies primarily to a different design condition: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. There the relevant engineering response is to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
C:That principle applies primarily to a different design condition: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. There the relevant engineering response is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
D:That principle applies primarily to a different design condition: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There the relevant engineering response is to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. For the given case, the controlling rationale is that pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.