Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 34
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.
Question 331
An operator has deployed the solution: Use Cloud SQL for a supported relational database workload with managed backup and availability options. In the situation where a departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. Which evidence BEST confirms success?
- Archived objects remain retrievable through the approved process and comply with retention policy.
- A lifecycle simulation matches intended age transitions and a recovery test meets access deadlines.
- Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
- A peak write/read test shows even tablet load and bounded query latency for chosen row-key ranges.
Explanation
Correct Answer
C:This is the decisive test result: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan. It directly validates the implementation to use Cloud SQL for a supported relational database workload with managed backup and availability options. The underlying case is: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. This matters because cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features. Without it, using a warehouse as the primary transaction database can complicate record-level updates and constraints.
Incorrect Answers
A:This is proof for a different safeguard: Store the objects in Cloud Storage with an appropriate storage class, retention and access policy. That applies when a legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. The present control instead requires the specific outcome: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
B:This is proof for a different safeguard: Apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers. That applies when a startup stores two years of logs at high storage cost although only one month is used interactively. The present control instead requires the specific outcome: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
D:This is proof for a different safeguard: Design a Bigtable row-key schema for device and time access patterns with hotspot controls. That applies when a telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The present control instead requires the specific outcome: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
Question 332
Consider a Google Cloud data engineering design: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. What action BEST meets the stated constraint?
- Assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements.
- Redesign the row key using device or hash prefixes and validate distribution against typical range queries.
- Apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers.
- Evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design.
Explanation
Correct Answer
B:The appropriate design is to redesign the row key using device or hash prefixes and validate distribution against typical range queries. This addresses the exact constraint: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. The underlying principle is that bigtable scales by contiguous key ranges, making poorly distributed sequential writes a hotspot risk. If omitted, new tablets may not balance load while all recent events target the same row-key range. A direct acceptance test is: Key-space metrics show distributed writes with acceptable latency for required device-time scans.
Incorrect Answers
A:This action fits a separate situation: A high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. There it would make sense to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements. It does not resolve this case, in which an IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. The needed control is to redesign the row key using device or hash prefixes and validate distribution against typical range queries.
C: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 an IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. The needed control is to redesign the row key using device or hash prefixes and validate distribution against typical range queries.
D:This action fits a separate situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There it would make sense to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. It does not resolve this case, in which an IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. The needed control is to redesign the row key using device or hash prefixes and validate distribution against typical range queries.
Question 333
The proposed safeguard is not implemented: Push supported filtering and aggregation into BigQuery and return only required summarized columns. The data platform currently faces: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. What direct risk remains?
- Client memory and network transfer can become bottlenecks while exposing unneeded detailed records.
- Repeated expensive aggregation can saturate shared analytics resources and delay reporting.
- Users may bypass dashboard filters and retrieve global customer records with raw table permissions.
- Changes in event filtering may look like customer growth when only the calculation changed.
Explanation
Correct Answer
A:The specific residual risk is that client memory and network transfer can become bottlenecks while exposing unneeded detailed records. The situation is: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. The missing response is to push supported filtering and aggregation into BigQuery and return only required summarized columns. The engineering reason is that query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity. After remediation, verify: A query trace shows predicates applied in BigQuery and a smaller result transferred to the client.
Incorrect Answers
B: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 client memory and network transfer can become bottlenecks while exposing unneeded detailed records.
C:This failure mode belongs chiefly to another situation: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. Its tailored control is to serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. In the present situation the more direct exposure is that client memory and network transfer can become bottlenecks while exposing unneeded detailed records.
D:This failure mode belongs chiefly to another situation: Data scientists and operations teams each call a customer active using incompatible event definitions. Its tailored control is to publish a reviewed metric contract defining event eligibility, time windows and entity grain. In the present situation the more direct exposure is that client memory and network transfer can become bottlenecks while exposing unneeded detailed records.
Question 334
The team is considering: Reorganize lake object partitions and compact small files according to query frequency and ingestion windows. The context is: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. Which engineering principle is MOST relevant?
- Separating raw from curated zones preserves replayability and helps consumers distinguish untrusted from approved records.
- Data-lake scan cost and latency depend on reasonable file sizes and partition path design.
- A shared physical lake still needs data-level access separation based on classification and consumer roles.
- Governed lake operations require provenance and stewardship as well as durable object storage.
Explanation
Correct Answer
B:The governing principle is that data-lake scan cost and latency depend on reasonable file sizes and partition path design. It explains why the team should reorganize lake object partitions and compact small files according to query frequency and ingestion windows. The current problem is: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. Without the safeguard, object listing and opening overhead may dominate actual data scan time. A suitable proof is: A compaction benchmark reduces object count and metadata latency while preserving row counts.
Incorrect Answers
A:That principle applies primarily to a different design condition: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. There the relevant engineering response is to keep protected raw data and publish separately validated curated datasets with explicit lineage references. For the given case, the controlling rationale is that data-lake scan cost and latency depend on reasonable file sizes and partition path design.
C:That principle applies primarily to a different design condition: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. There the relevant engineering response is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. For the given case, the controlling rationale is that data-lake scan cost and latency depend on reasonable file sizes and partition path design.
D:That principle applies primarily to a different design condition: Object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. There the relevant engineering response is to publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. For the given case, the controlling rationale is that data-lake scan cost and latency depend on reasonable file sizes and partition path design.
Question 335
The proposed safeguard is not implemented: Validate critical fields, expected uniqueness and population-level reconciliation before publication. The data platform currently faces: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. What direct risk remains?
- The database may prove unrecoverable or too slow to restore when a real regional disruption occurs.
- Customer counts and attribution models can become biased when duplicate and null identifiers enter analytics.
- An automatic retry can inflate daily revenue despite a successful retry status.
- Wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails.
Explanation
Correct Answer
B:The specific residual risk is that customer counts and attribution models can become biased when duplicate and null identifiers enter analytics. The situation is: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The missing response is to validate critical fields, expected uniqueness and population-level reconciliation before publication. The engineering reason is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output. After remediation, verify: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. Its tailored control is to set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. In the present situation the more direct exposure is that customer counts and attribution models can become biased when duplicate and null identifiers enter analytics.
C:This failure mode belongs chiefly to another situation: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. Its tailored control is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. In the present situation the more direct exposure is that customer counts and attribution models can become biased when duplicate and null identifiers enter analytics.
D:This failure mode belongs chiefly to another situation: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. Its tailored control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures. In the present situation the more direct exposure is that customer counts and attribution models can become biased when duplicate and null identifiers enter analytics.
Question 336
The proposed safeguard is not implemented: Publish masked or tokenized fields and explicitly authorize any permitted unmasked roles. The data platform currently faces: A dataset shared with contractors includes direct phone numbers that are not needed for their analytical report. What direct risk remains?
- Broad read access exposes invoice detail that is outside the contractual reporting purpose.
- A forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
- A collaborator may copy personal identifiers even though the approved task requires only aggregates.
- A partner can enumerate another partner's territory if access is controlled only in a client application.
Explanation
Correct Answer
C:The specific residual risk is that a collaborator may copy personal identifiers even though the approved task requires only aggregates. The situation is: A dataset shared with contractors includes direct phone numbers that are not needed for their analytical report. The missing response is to publish masked or tokenized fields and explicitly authorize any permitted unmasked roles. The engineering reason is that de-identification must be applied to shared outputs as well as restricted source tables. After remediation, verify: A contractor's query returns approved tokens or redacted values without source phone numbers.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. Its tailored control is to share an authorized aggregate view or published derived table instead of granting source table access. In the present situation the more direct exposure is that a collaborator may copy personal identifiers even though the approved task requires only aggregates.
B:This failure mode belongs chiefly to another situation: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. Its tailored control is to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. In the present situation the more direct exposure is that a collaborator may copy personal identifiers even though the approved task requires only aggregates.
D:This failure mode belongs chiefly to another situation: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. Its tailored control is to enforce partner-specific row access policies or separately governed audience views at the source. In the present situation the more direct exposure is that a collaborator may copy personal identifiers even though the approved task requires only aggregates.
Question 337
An architect must address the following condition: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. Which approach should be selected?
- Evaluate supported BigQuery ML training and evaluation on the governed analytical dataset.
- Evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks.
- Use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost.
- Use time-aware feature joins and hold out future periods so training information precedes each prediction point.
Explanation
Correct Answer
C:The appropriate design is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost. This addresses the exact constraint: A loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. The underlying principle is that class imbalance can make accuracy appear high while the model misses its minority target class. If omitted, an always-negative classifier may be deployed despite detecting no actual defaults. A direct acceptance test is: A held-out report includes minority-class recall, false positives and threshold trade-offs.
Incorrect Answers
A:This action fits a separate situation: An analyst wants to predict customer churn from warehouse features without exporting the dataset into a separately managed training service. There it would make sense to evaluate supported BigQuery ML training and evaluation on the governed analytical dataset. It does not resolve this case, in which a loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. The needed control is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost.
B:This action fits a separate situation: A business wants batch product recommendations for every account and already maintains clean historical interactions in BigQuery. There it would make sense to evaluate an appropriate BigQuery ML model and scheduled batch prediction workflow with held-out ranking checks. It does not resolve this case, in which a loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. The needed control is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost.
D:This action fits a separate situation: A fraud team joins customer transactions to labels generated weeks later and accidentally exposes future outcomes in training features. There it would make sense to use time-aware feature joins and hold out future periods so training information precedes each prediction point. It does not resolve this case, in which a loan approval training set has only a few positive default examples and raw accuracy hides missed high-risk cases. The needed control is to use imbalance-aware evaluation such as precision, recall and appropriate classification thresholds for the business cost.
Question 338
The proposed safeguard is not implemented: Grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. The data platform currently faces: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. What direct risk remains?
- Giving dashboard users all columns could expose regulated identity information to an unauthorized team.
- A developer test can truncate the production reporting table or modify production data unexpectedly.
- A suspected export may be impossible to attribute if data-access logs are disabled or discarded.
- Granting broad project Owner access to fix the error would expose unrelated financial data and administration.
Explanation
Correct Answer
D:The specific residual risk is that granting broad project Owner access to fix the error would expose unrelated financial data and administration. The situation is: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. The missing response is to grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. The engineering reason is that bigQuery query execution authority and permission to read source table data are separate access checks. After remediation, verify: The analyst runs the approved query but cannot read an unrelated restricted dataset.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Its tailored control is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. In the present situation the more direct exposure is that granting broad project Owner access to fix the error would expose unrelated financial data and administration.
B:This failure mode belongs chiefly to another situation: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Its tailored control is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. In the present situation the more direct exposure is that granting broad project Owner access to fix the error would expose unrelated financial data and administration.
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 granting broad project Owner access to fix the error would expose unrelated financial data and administration.
Question 339
The engineering team ignores the recommended change: Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. The current state is: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. What is the greatest specific exposure?
- An unreviewed worker change can alter production transforms without a traceable release identifier.
- Repeated full extracts can overload source transactions and may miss intermediate updates.
- Malformed events can disappear from metrics or propagate incorrect null fields into fact tables.
- A malformed model answer or leaked PII can contaminate analytics and violate data protection requirements.
Explanation
Correct Answer
A:The specific residual risk is that an unreviewed worker change can alter production transforms without a traceable release identifier. The situation is: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The missing response is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. The engineering reason is that versioned pipeline artifacts improve reproducibility of deployment and rollback across environments. After remediation, verify: Two runs launched from the pinned template report the intended container digest and equivalent sample output.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A bank's relational source updates customer records continuously and the analytics team needs those changes without polling the full table. Its tailored control is to use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata. In the present situation the more direct exposure is that an unreviewed worker change can alter production transforms without a traceable release identifier.
C:This failure mode belongs chiefly to another situation: A JSON event producer adds nested optional fields and several records fail parsing without any retained diagnostics. Its tailored control is to introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy. In the present situation the more direct exposure is that an unreviewed worker change can alter production transforms without a traceable release identifier.
D:This failure mode belongs chiefly to another situation: A pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. Its tailored control is to insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. In the present situation the more direct exposure is that an unreviewed worker change can alter production transforms without a traceable release identifier.
Question 340
The team is considering: Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. The context is: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Which engineering principle is MOST relevant?
- A consistent snapshot and change stream must be combined without missing or double-applying source mutations.
- AI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
- Atomic transactions protect logically related mutations from inconsistent partial execution.
- Fault tolerance requires coordinated recovery of source position and processing state after interruption.
Explanation
Correct Answer
C:The governing principle is that atomic transactions protect logically related mutations from inconsistent partial execution. It explains why the team should use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. The current problem is: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Without the safeguard, inventory may be decremented without the corresponding ledger entry when the second update fails. A suitable proof is: An injected error rolls back both intended table changes and leaves balances consistent.
Incorrect Answers
A:That principle applies primarily to a different design condition: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. There the relevant engineering response is to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. For the given case, the controlling rationale is that atomic transactions protect logically related mutations from inconsistent partial execution.
B: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 atomic transactions protect logically related mutations from inconsistent partial execution.
D: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 atomic transactions protect logically related mutations from inconsistent partial execution.