Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 22
Question 210
The team is considering: Serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. The context is: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. Which engineering principle is MOST relevant?
- BI access design should constrain data at its governed source rather than trusting only frontend filters.
- Query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
- Analytical measures are comparable only when the time boundary and temporal semantics are documented.
- A shared semantic layer reduces contradictory metric calculations across independently authored visualizations.
Explanation
Correct Answer
A:The governing principle is that bI access design should constrain data at its governed source rather than trusting only frontend filters. It explains why the team should serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. The current problem is: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. Without the safeguard, users may bypass dashboard filters and retrieve global customer records with raw table permissions. A suitable proof is: A regional user sees the permitted figures and is denied direct access to restricted global rows.
Incorrect Answers
B:That principle applies primarily to a different design condition: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. There the relevant engineering response is to push supported filtering and aggregation into BigQuery and return only required summarized columns. For the given case, the controlling rationale is that bI access design should constrain data at its governed source rather than trusting only frontend filters.
C:That principle applies primarily to a different design condition: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. There the relevant engineering response is to define governed date and time-zone conversion rules for consistent business reporting periods. For the given case, the controlling rationale is that bI access design should constrain data at its governed source rather than trusting only frontend filters.
D:That principle applies primarily to a different design condition: Executives see different net-revenue definitions in Looker dashboards maintained by three departments. There the relevant engineering response is to centralize governed business measures in a reviewed Looker semantic model with explicit source contracts. For the given case, the controlling rationale is that bI access design should constrain data at its governed source rather than trusting only frontend filters.
Question 211
A production data pipeline has this problem: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. Which solution MOST directly corrects it?
- Assign a dedicated ingestion service account with source-specific access and only required destination permissions.
- Plan a Cloud Storage landing path with object notifications or a batch schedule and atomic publish of validated results.
- Include supported Cloud KMS key integration and service identity access in the ingestion architecture.
- Use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink.
Explanation
Correct Answer
D:The appropriate design is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink. This addresses the exact constraint: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. The underlying principle is that decoupled messaging absorbs independent producer and consumer rates without blocking the mobile transaction. If omitted, sending every event synchronously to the warehouse can create application latency and lost events during demand spikes. A direct acceptance test is: An injected surge is retained in the subscription and eventually reconciles to the expected analytical count.
Incorrect Answers
A:This action fits a separate situation: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. There it would make sense to assign a dedicated ingestion service account with source-specific access and only required destination permissions. It does not resolve this case, in which thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. The needed control is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink.
B:This action fits a separate situation: A partner drops compressed sales files every midnight and the warehouse needs one validated daily snapshot. There it would make sense to plan a Cloud Storage landing path with object notifications or a batch schedule and atomic publish of validated results. It does not resolve this case, in which thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. The needed control is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink.
C:This action fits a separate situation: A compliance feed writes data to Cloud Storage but requires customer-managed encryption keys and auditable key access. There it would make sense to include supported Cloud KMS key integration and service identity access in the ingestion architecture. It does not resolve this case, in which thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. The needed control is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink.
Question 212
A project declines to apply this measure: Model peak event rate, retained backlog and downstream throughput for the planned pipeline stages. It faces: A marketing platform predicts ten times the daily message volume during campaigns but its ingestion sizing uses average traffic. Which consequence is MOST directly unresolved?
- Running transforms against partially uploaded files may publish incomplete revenue reports.
- Sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
- A holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works.
- A price-sensitive revenue report can combine new orders with stale product prices.
Explanation
Correct Answer
C:The specific residual risk is that a holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works. The situation is: A marketing platform predicts ten times the daily message volume during campaigns but its ingestion sizing uses average traffic. The missing response is to model peak event rate, retained backlog and downstream throughput for the planned pipeline stages. The engineering reason is that capacity planning must cover bursts and replay demand instead of only ordinary average throughput. After remediation, verify: A peak-load rehearsal drains backlog within the accepted recovery window without exceeding quotas.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A partner drops compressed sales files every midnight and the warehouse needs one validated daily snapshot. Its tailored control is to plan a Cloud Storage landing path with object notifications or a batch schedule and atomic publish of validated results. In the present situation the more direct exposure is that a holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works.
B:This failure mode belongs chiefly to another situation: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. Its tailored control is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink. In the present situation the more direct exposure is that a holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works.
D:This failure mode belongs chiefly to another situation: A batch extract must not start its warehouse transformation until both product and pricing sources have arrived. Its tailored control is to model the upstream dependencies and readiness checks before selecting the orchestration method. In the present situation the more direct exposure is that a holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works.
Question 213
A data engineer recommends: Push supported filtering and aggregation into BigQuery and return only required summarized columns. It addresses: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. What underlying principle explains the recommendation?
- Query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
- Analytical measures are comparable only when the time boundary and temporal semantics are documented.
- Precomputed aggregates can serve recurring BI queries more efficiently when the refresh and query requirements align.
- Business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
Explanation
Correct Answer
A:The governing principle is that query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity. It explains why the team should push supported filtering and aggregation into BigQuery and return only required summarized columns. The current problem is: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. Without the safeguard, client memory and network transfer can become bottlenecks while exposing unneeded detailed records. A suitable proof is: A query trace shows predicates applied in BigQuery and a smaller result transferred to the client.
Incorrect Answers
B:That principle applies primarily to a different design condition: Global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. There the relevant engineering response is to define governed date and time-zone conversion rules for consistent business reporting periods. For the given case, the controlling rationale is that query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
C:That principle applies primarily to a different design condition: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. There the relevant engineering response is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. For the given case, the controlling rationale is that query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
D:That principle applies primarily to a different design condition: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. There the relevant engineering response is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. For the given case, the controlling rationale is that query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
Question 214
A pipeline team implements the measure: Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. Which result would provide the STRONGEST operational evidence of effectiveness?
- A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
- A forced sink timeout and retry yield one externally recorded charge per business transaction.
- Out-of-order test updates leave the target at the correct source version with no duplicate keys.
- A benchmark executes the existing job with matching output and acceptable completion cost on managed workers.
Explanation
Correct Answer
B:This is the decisive test result: A forced sink timeout and retry yield one externally recorded charge per business transaction. It directly validates the implementation to use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. The underlying case is: A Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. This matters because exactly-once internal stream processing does not automatically make arbitrary external side effects exactly once. Without it, a retried output request can charge the same transaction multiple times despite correct stream aggregation.
Incorrect Answers
A: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 forced sink timeout and retry yield one externally recorded charge per business transaction.
C:This is proof for a different safeguard: Use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. That applies when an order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. The present control instead requires the specific outcome: A forced sink timeout and retry yield one externally recorded charge per business transaction.
D:This is proof for a different safeguard: Run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. That applies when an existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. The present control instead requires the specific outcome: A forced sink timeout and retry yield one externally recorded charge per business transaction.
Question 215
Consider a Google Cloud data engineering design: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. What action BEST meets the stated constraint?
- Choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier.
- Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover.
- Validate critical fields, expected uniqueness and population-level reconciliation before publication.
- Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
Explanation
Correct Answer
C:The appropriate design is to validate critical fields, expected uniqueness and population-level reconciliation before publication. This addresses the exact constraint: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The underlying principle is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output. If omitted, customer counts and attribution models can become biased when duplicate and null identifiers enter analytics. A direct acceptance test is: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
Incorrect Answers
A:This action fits a separate situation: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. There it would make sense to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. It does not resolve this case, in which an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The needed control is to validate critical fields, expected uniqueness and population-level reconciliation before publication.
B:This action fits a separate situation: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. There it would make sense to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. It does not resolve this case, in which an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The needed control is to validate critical fields, expected uniqueness and population-level reconciliation before publication.
D:This action fits a separate situation: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. There it would make sense to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. It does not resolve this case, in which an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The needed control is to validate critical fields, expected uniqueness and population-level reconciliation before publication.
Question 216
An architect must address the following condition: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Which approach should be selected?
- Define BigQuery row access policies linked to authorized territory principals rather than copying all rows into shared dashboards.
- Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations.
- Combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization.
- Apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role.
Explanation
Correct Answer
D:The appropriate design is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. This addresses the exact constraint: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The underlying principle is that column-level authorization can permit useful analytical fields while preventing access to sensitive columns. If omitted, giving dashboard users all columns could expose regulated identity information to an unauthorized team. A direct acceptance test is: A support account queries approved totals but receives denial when selecting the restricted identity column.
Incorrect Answers
A:This action fits a separate situation: Regional account managers share one BigQuery sales table but must see only rows belonging to their assigned territory. There it would make sense to define BigQuery row access policies linked to authorized territory principals rather than copying all rows into shared dashboards. It does not resolve this case, in which a customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The needed control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role.
B:This action fits a separate situation: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. There it would make sense to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. It does not resolve this case, in which a customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The needed control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role.
C:This action fits a separate situation: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. There it would make sense to combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. It does not resolve this case, in which a customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The needed control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role.
Question 217
An operator has deployed the solution: Evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. In the situation where a BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. Which evidence BEST confirms success?
- A sampled population produces the same active-customer count through two independent approved implementations.
- A regional user sees the permitted figures and is denied direct access to restricted global rows.
- Two dashboards query the shared measure and reconcile to the same approved finance reference.
- A supported dashboard workload records better p95 latency with the expected acceleration metrics.
Explanation
Correct Answer
D:This is the decisive test result: A supported dashboard workload records better p95 latency with the expected acceleration metrics. It directly validates the implementation to evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. The underlying case is: A BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. This matters because bI acceleration can reduce interactive dashboard latency for eligible analytical access patterns. Without it, direct full-table scans for every dashboard refresh may raise latency and analysis cost.
Incorrect Answers
A: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: A supported dashboard workload records better p95 latency with the expected acceleration metrics.
B:This is proof for a different safeguard: Serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. That applies when a departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. The present control instead requires the specific outcome: A supported dashboard workload records better p95 latency with the expected acceleration metrics.
C:This is proof for a different safeguard: Centralize governed business measures in a reviewed Looker semantic model with explicit source contracts. That applies when executives see different net-revenue definitions in Looker dashboards maintained by three departments. The present control instead requires the specific outcome: A supported dashboard workload records better p95 latency with the expected acceleration metrics.
Question 218
The team is considering: Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. The context is: A company needs one transformation pipeline for daily archive files and live events with the same business rules. Which engineering principle is MOST relevant?
- Batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary.
- AI enrichment must enforce privacy, response validation and failure handling like any external transformation.
- Windowing policy must account for late-arriving event timestamps rather than relying solely on processing arrival time.
- A unified transformation model reduces drift between historical backfills and real-time calculations.
Explanation
Correct Answer
D:The governing principle is that a unified transformation model reduces drift between historical backfills and real-time calculations. It explains why the team should use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. The current problem is: A company needs one transformation pipeline for daily archive files and live events with the same business rules. Without the safeguard, separate hand-maintained implementations may classify identical records differently across batch and stream paths. A suitable proof is: A controlled sample produces matching normalized records from batch replay and stream processing.
Incorrect Answers
A: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 a unified transformation model reduces drift between historical backfills and real-time calculations.
B:That principle applies primarily to a different design condition: A pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. There the relevant engineering response is to insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. For the given case, the controlling rationale is that a unified transformation model reduces drift between historical backfills and real-time calculations.
C:That principle applies primarily to a different design condition: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. There the relevant engineering response is to use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. For the given case, the controlling rationale is that a unified transformation model reduces drift between historical backfills and real-time calculations.
Question 219
An operator has deployed the solution: Measure expected peak resource demand and request supported quotas or reservations before capacity expansion. In the situation where an event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. Which evidence BEST confirms success?
- Worker telemetry validates a cheaper parsing configuration and sufficient memory for the join stage.
- Stage metrics show improved skew distribution and matching aggregate output after tuning.
- A before-and-after execution shows the same business total with sharply lower bytes billed.
- A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
Explanation
Correct Answer
D:This is the decisive test result: A scaling rehearsal meets required throughput with explicit headroom and no quota errors. It directly validates the implementation to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. The underlying case is: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. This matters because provisioning plans must account for platform quotas and enforceable workload capacity boundaries. Without it, a planned increase in event volume can fail at quota limits despite adequate apparent cloud capacity.
Incorrect Answers
A:This is proof for a different safeguard: Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. That applies when a Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. The present control instead requires the specific outcome: A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
B:This is proof for a different safeguard: Tune joins, partition distribution and shuffle behavior before purchasing additional workers. That applies when a Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. The present control instead requires the specific outcome: A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
C:This is proof for a different safeguard: Apply partition pruning and measure bytes processed before increasing compute or running frequency. That applies when a scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. The present control instead requires the specific outcome: A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
Question 220
The engineering team ignores the recommended change: Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The current state is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. What is the greatest specific exposure?
- A restarted connector may replay records or miss a partition if offsets are not managed correctly.
- A delayed older update can overwrite a more recent customer address and corrupt reporting history.
- A network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
- An unreviewed worker change can alter production transforms without a traceable release identifier.
Explanation
Correct Answer
C:The specific residual risk is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged. The situation is: Pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. The missing response is to implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. The engineering reason is that at-least-once delivery can repeat messages and requires idempotent consumers for business-correct outputs. After remediation, verify: An induced subscriber crash and redelivery yield one logical output for the tested event ID.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. Its tailored control is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
B:This failure mode belongs chiefly to another situation: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. Its tailored control is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.
D:This failure mode belongs chiefly to another situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Its tailored control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. In the present situation the more direct exposure is that a network retry can produce duplicate orders or billing events even when every message is eventually acknowledged.