Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 33
Question 320
An operator has deployed the solution: Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. In the situation where a company needs one transformation pipeline for daily archive files and live events with the same business rules. Which evidence BEST confirms success?
- A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
- Two runs launched from the pinned template report the intended container digest and equivalent sample output.
- A controlled sample produces matching normalized records from batch replay and stream processing.
- Injected sensitive tickets have identifiers removed and invalid enrichment results are quarantined.
Explanation
Correct Answer
C:This is the decisive test result: A controlled sample produces matching normalized records from batch replay and stream processing. It directly validates the implementation to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. The underlying case is: A company needs one transformation pipeline for daily archive files and live events with the same business rules. This matters because a unified transformation model reduces drift between historical backfills and real-time calculations. Without it, separate hand-maintained implementations may classify identical records differently across batch and stream paths.
Incorrect Answers
A:This is proof for a different safeguard: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. That applies when an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The present control instead requires the specific outcome: A controlled sample produces matching normalized records from batch replay and stream processing.
B:This is proof for a different safeguard: Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. That applies when a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The present control instead requires the specific outcome: A controlled sample produces matching normalized records from batch replay and stream processing.
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 controlled sample produces matching normalized records from batch replay and stream processing.
Question 321
Consider a Google Cloud data engineering design: A telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. What action BEST meets the stated constraint?
- Apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers.
- Use Cloud SQL for a supported relational database workload with managed backup and availability options.
- Design a Bigtable row-key schema for device and time access patterns with hotspot controls.
- Consider Firestore document modeling and indexes appropriate for the application query patterns.
Explanation
Correct Answer
C:The appropriate design is to design a Bigtable row-key schema for device and time access patterns with hotspot controls. This addresses the exact constraint: A telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The underlying principle is that bigtable suits wide-column, low-latency key-range access when row keys distribute read and write traffic appropriately. If omitted, a sequential timestamp prefix can create a write hotspot that limits horizontal scale. A direct acceptance test is: A peak write/read test shows even tablet load and bounded query latency for chosen row-key ranges.
Incorrect Answers
A:This action fits a separate situation: A startup stores two years of logs at high storage cost although only one month is used interactively. There it would make sense to apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers. It does not resolve this case, in which a telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The needed control is to design a Bigtable row-key schema for device and time access patterns with hotspot controls.
B:This action fits a separate situation: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. There it would make sense to use Cloud SQL for a supported relational database workload with managed backup and availability options. It does not resolve this case, in which a telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The needed control is to design a Bigtable row-key schema for device and time access patterns with hotspot controls.
D:This action fits a separate situation: A field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. There it would make sense to consider Firestore document modeling and indexes appropriate for the application query patterns. It does not resolve this case, in which a telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The needed control is to design a Bigtable row-key schema for device and time access patterns with hotspot controls.
Question 322
The engineering team ignores the recommended change: Evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. The current state is: A BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. What is the greatest specific exposure?
- Repeated expensive aggregation can saturate shared analytics resources and delay reporting.
- Client memory and network transfer can become bottlenecks while exposing unneeded detailed records.
- Direct full-table scans for every dashboard refresh may raise latency and analysis cost.
- Interactive dashboards may time out while repeatedly scanning full historical event logs.
Explanation
Correct Answer
C:The specific residual risk is that direct full-table scans for every dashboard refresh may raise latency and analysis cost. The situation is: A BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. The missing response is to evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. The engineering reason is that bI acceleration can reduce interactive dashboard latency for eligible analytical access patterns. After remediation, verify: A supported dashboard workload records better p95 latency with the expected acceleration metrics.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. Its tailored control is to use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. In the present situation the more direct exposure is that direct full-table scans for every dashboard refresh may raise latency and analysis cost.
B:This failure mode belongs chiefly to another situation: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. Its tailored control is to push supported filtering and aggregation into BigQuery and return only required summarized columns. In the present situation the more direct exposure is that direct full-table scans for every dashboard refresh may raise latency and analysis cost.
D:This failure mode belongs chiefly to another situation: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. Its tailored control is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. In the present situation the more direct exposure is that direct full-table scans for every dashboard refresh may raise latency and analysis cost.
Question 323
The engineering team ignores the recommended change: Separate development and production data resources and authorize deploy-only service accounts for guarded promotion. The current state is: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. What is the greatest specific exposure?
- Unclassified payment fields could be copied into lower-trust analytics environments or exports.
- Creating a US-region staging table could violate residency policy even when the final report is European.
- A suspected export may be impossible to attribute if data-access logs are disabled or discarded.
- A developer test can truncate the production reporting table or modify production data unexpectedly.
Explanation
Correct Answer
D:The specific residual risk is that a developer test can truncate the production reporting table or modify production data unexpectedly. The situation is: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. The missing response is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. The engineering reason is that environment isolation reduces accidental cross-environment writes and limits the impact of development credentials. After remediation, verify: A development identity can write to test datasets but cannot modify production tables without approved promotion.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. Its tailored control is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. In the present situation the more direct exposure is that a developer test can truncate the production reporting table or modify production data unexpectedly.
B:This failure mode belongs chiefly to another situation: A multinational organization must keep European patient datasets in an approved European location during processing and storage. Its tailored control is to create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. In the present situation the more direct exposure is that a developer test can truncate the production reporting table or modify production data unexpectedly.
C:This failure mode belongs chiefly to another situation: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. Its tailored control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. In the present situation the more direct exposure is that a developer test can truncate the production reporting table or modify production data unexpectedly.
Question 324
The proposed safeguard is not implemented: Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. The data platform currently faces: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. What direct risk remains?
- A marketing identity could read restricted employee records by listing the common object bucket.
- Enabling incompatible writers can expose readers to partial commits or inconsistent schema snapshots.
- An upstream schema change can silently break downstream risk models with no responsible team identified.
- A mapping bug may permanently destroy the original evidence needed for a corrected backfill.
Explanation
Correct Answer
A:The specific residual risk is that a marketing identity could read restricted employee records by listing the common object bucket. The situation is: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The missing response is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. The engineering reason is that a shared physical lake still needs data-level access separation based on classification and consumer roles. After remediation, verify: An approved analyst can read public lake partitions but is denied access to classified employee data.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. Its tailored control is to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. In the present situation the more direct exposure is that a marketing identity could read restricted employee records by listing the common object bucket.
C:This failure mode belongs chiefly to another situation: Object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. Its tailored control is to publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. In the present situation the more direct exposure is that a marketing identity could read restricted employee records by listing the common object bucket.
D:This failure mode belongs chiefly to another situation: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. Its tailored control is to keep protected raw data and publish separately validated curated datasets with explicit lineage references. In the present situation the more direct exposure is that a marketing identity could read restricted employee records by listing the common object bucket.
Question 325
An organization does not implement the safeguard: Choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. In the following situation, a document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. Which failure is MOST likely?
- An unauthorized user may retrieve sensitive contract content through semantically similar passages.
- The assistant may answer from unrelated or stale policy fragments without a defensible citation.
- Unnecessary data exports can create extra security boundaries and versioning inconsistencies.
- Important paragraphs may be buried in oversized chunks and omitted from response context.
Explanation
Correct Answer
D:The specific residual risk is that important paragraphs may be buried in oversized chunks and omitted from response context. The situation is: A document search prototype embeds entire hundred-page manuals as single chunks and loses specific answers. The missing response is to choose content-aware chunking and retrieval metadata with overlap and measured relevance for the document types. The engineering reason is that embedding granularity influences whether retrieval returns precise evidence instead of broad unrelated context. After remediation, verify: An answerability test retrieves the intended section with acceptable recall and valid source attribution.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A RAG project creates embeddings from confidential contracts and places them in a vector store accessible to every employee. Its tailored control is to apply document entitlement filtering and privacy controls before and during embedding retrieval. In the present situation the more direct exposure is that important paragraphs may be buried in oversized chunks and omitted from response context.
B:This failure mode belongs chiefly to another situation: A support team wants retrieval-augmented responses from thousands of unstructured policy documents. Its tailored control is to chunk and embed approved document content with retrievable source identifiers and evaluate semantic retrieval quality. In the present situation the more direct exposure is that important paragraphs may be buried in oversized chunks and omitted from response context.
C:This failure mode belongs chiefly to another situation: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. Its tailored control is to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset. In the present situation the more direct exposure is that important paragraphs may be buried in oversized chunks and omitted from response context.
Question 326
A data platform team encounters this requirement: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. Which implementation is MOST appropriate?
- Choose suitable interactive or batch query priority and scheduling policies for the business use case.
- Assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads.
- Review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload.
- Apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate.
Explanation
Correct Answer
D:The appropriate design is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. This addresses the exact constraint: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The underlying principle is that business workload governance requires financial guardrails in addition to technical query correctness. If omitted, an accidental query without filters may scan far more data than the team is authorized to spend. A direct acceptance test is: A broad query hits the configured cost guardrail while a bounded analysis succeeds.
Incorrect Answers
A:This action fits a separate situation: A data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. There it would make sense to choose suitable interactive or batch query priority and scheduling policies for the business use case. It does not resolve this case, in which a finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The needed control is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate.
B:This action fits a separate situation: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. There it would make sense to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. It does not resolve this case, in which a finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The needed control is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate.
C:This action fits a separate situation: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. There it would make sense to review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. It does not resolve this case, in which a finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. The needed control is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate.
Question 327
A pipeline team implements the measure: Inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. Which result would provide the STRONGEST operational evidence of effectiveness?
- 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.
- A test budget threshold and billing report identify the intended service, project and spend driver.
- A diagnostic run identifies the missing narrowly scoped permission and succeeds after targeted correction.
Explanation
Correct Answer
B:This is the decisive test result: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query. It directly validates the implementation to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. The underlying case is: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. This matters because warehouse troubleshooting should use observed stages and slot contention rather than guess at resource limits. Without it, a skewed join may remain slow even after costly reservation expansion.
Incorrect Answers
A:This is proof for a different safeguard: Route structured Cloud Logging errors into an alert and owned incident response workflow. That applies when a BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. The present control instead requires the specific outcome: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
C: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: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
D:This is proof for a different safeguard: Inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. That applies when a warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. The present control instead requires the specific outcome: Job-stage evidence identifies the bottleneck and the selected correction improves the affected query.
Question 328
The design review proposes the following action: Adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. The triggering condition is: Business units own their data products but the central platform team must enforce consistent privacy rules. Which technical principle BEST justifies it?
- Resource structure is a security and cost-management boundary, not simply a naming convention.
- Machine-enforced classifications help governance policies persist across independently managed data assets.
- A reusable data platform should treat published analytical datasets as governed contracts for dependent teams.
- Federated governance balances local data expertise with common enterprise control expectations.
Explanation
Correct Answer
D:The governing principle is that federated governance balances local data expertise with common enterprise control expectations. It explains why the team should adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. The current problem is: Business units own their data products but the central platform team must enforce consistent privacy rules. Without the safeguard, teams can interpret the same customer classification differently and leak restricted fields to consumers. A suitable proof is: Two domain products use the same protected classification policy with named accountable stewards.
Incorrect Answers
A:That principle applies primarily to a different design condition: A company creates one Google Cloud project for every analyst and gives them broad permissions to all production datasets. There the relevant engineering response is to define a project and dataset hierarchy separating teams, environments and shared governed assets. For the given case, the controlling rationale is that federated governance balances local data expertise with common enterprise control expectations.
B:That principle applies primarily to a different design condition: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. There the relevant engineering response is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. For the given case, the controlling rationale is that federated governance balances local data expertise with common enterprise control expectations.
C:That principle applies primarily to a different design condition: Internal teams expose raw tables directly as products and change column names without notifying consumers. There the relevant engineering response is to publish a documented versioned data product interface with owners, contracts and deprecation checks. For the given case, the controlling rationale is that federated governance balances local data expertise with common enterprise control expectations.
Question 329
An architect must address the following condition: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. Which approach should be selected?
- Parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model.
- Detect hot keys and apply supported fanout or key-distribution strategies before final aggregation.
- Use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing.
- Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
Explanation
Correct Answer
B:The appropriate design is to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation. This addresses the exact constraint: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. The underlying principle is that skewed keys reduce parallelism because excessive state and work accumulate on one processing key. If omitted, increasing worker count may not resolve the bottleneck when nearly all work remains on one key. A direct acceptance test is: Per-key processing metrics and a load test show reduced hot-key delay and correct aggregate totals.
Incorrect Answers
A:This action fits a separate situation: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. There it would make sense to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. It does not resolve this case, in which a distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. The needed control is to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation.
C:This action fits a separate situation: A Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. There it would make sense to use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. It does not resolve this case, in which a distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. The needed control is to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation.
D:This action fits a separate situation: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. There it would make sense to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. It does not resolve this case, in which a distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. The needed control is to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation.
Question 330
The design review proposes the following action: Model conformed dimensions and a documented fact table grain before creating reporting views. The triggering condition is: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. Which technical principle BEST justifies it?
- BigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities.
- A clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.
- A data warehouse model must represent unbounded one-to-many relationships without fixed column limits.
- Historical attribute reporting requires preserving versions and nonoverlapping validity intervals for entities.
Explanation
Correct Answer
B:The governing principle is that a clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions. It explains why the team should model conformed dimensions and a documented fact table grain before creating reporting views. The current problem is: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. Without the safeguard, joining records at mismatched granularity can multiply revenue values and corrupt comparisons. A suitable proof is: A known order sample reconciles through the fact table and each dimension without duplicate amount inflation.
Incorrect Answers
A:That principle applies primarily to a different design condition: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. There the relevant engineering response is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. For the given case, the controlling rationale is that a clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.
C:That principle applies primarily to a different design condition: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. There the relevant engineering response is to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. For the given case, the controlling rationale is that a clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.
D: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 a clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.