Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 58
Question 570
Consider a Google Cloud data engineering design: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. What action BEST meets the stated constraint?
- Use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
- Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
- Store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
- Redesign the row key using device or hash prefixes and validate distribution against typical range queries.
Explanation
Correct Answer
C:The appropriate design is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy. This addresses the exact constraint: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. The underlying principle is that cloud Storage is an object store appropriate for large unstructured assets and lifecycle management. If omitted, keeping cold documents in expensive frequently queried relational tables may increase storage and maintenance cost. A direct acceptance test is: Archived objects remain retrievable through the approved process and comply with retention policy.
Incorrect Answers
A:This action fits a separate situation: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. There it would make sense to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. It does not resolve this case, in which a legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. The needed control is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
B:This action fits a separate situation: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. There it would make sense to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. It does not resolve this case, in which a legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. The needed control is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
D:This action fits a separate situation: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. There it would make sense to redesign the row key using device or hash prefixes and validate distribution against typical range queries. It does not resolve this case, in which a legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. The needed control is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
Question 571
The design review proposes the following action: Keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. The triggering condition is: A faulty new streaming transformation is deployed and operators cannot restore the prior version without discarding accumulated data. Which technical principle BEST justifies it?
- A workflow DAG makes producer-consumer ordering explicit instead of relying on coincident schedules.
- Declarative SQL transformation pipelines benefit from versioned dependencies and quality assertions.
- Pipeline release automation must treat credentials as controlled secrets rather than ordinary build parameters.
- Changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback.
Explanation
Correct Answer
D:The governing principle is that changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback. It explains why the team should keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. The current problem is: A faulty new streaming transformation is deployed and operators cannot restore the prior version without discarding accumulated data. Without the safeguard, a quick restart may lose state or duplicate downstream writes during emergency rollback. A suitable proof is: A staged rollback reestablishes prior output logic and reconciles unprocessed events after transition.
Incorrect Answers
A:That principle applies primarily to a different design condition: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. There the relevant engineering response is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. For the given case, the controlling rationale is that changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback.
B:That principle applies primarily to a different design condition: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. There the relevant engineering response is to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. For the given case, the controlling rationale is that changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback.
C:That principle applies primarily to a different design condition: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. There the relevant engineering response is to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. For the given case, the controlling rationale is that changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback.
Question 572
The team is considering: Use Cloud SQL for a supported relational database workload with managed backup and availability options. The context is: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. Which engineering principle is MOST relevant?
- Bigtable scales by contiguous key ranges, making poorly distributed sequential writes a hotspot risk.
- Lake-based SQL access can query external files while preserving separately managed storage and access boundaries.
- BigQuery is designed for scalable analytical SQL rather than serving high-frequency single-row OLTP updates.
- Cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features.
Explanation
Correct Answer
D:The governing principle is that cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features. It explains why the team should use Cloud SQL for a supported relational database workload with managed backup and availability options. The current problem is: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. Without the safeguard, using a warehouse as the primary transaction database can complicate record-level updates and constraints. A suitable proof is: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
Incorrect Answers
A:That principle applies primarily to a different design condition: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. There the relevant engineering response is to redesign the row key using device or hash prefixes and validate distribution against typical range queries. For the given case, the controlling rationale is that cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features.
B:That principle applies primarily to a different design condition: A data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. There the relevant engineering response is to evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. For the given case, the controlling rationale is that cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features.
C:That principle applies primarily to a different design condition: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. There the relevant engineering response is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. For the given case, the controlling rationale is that cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features.
Question 573
The engineering team ignores the recommended change: Use dashboard access controls and approved report embedding or sharing settings tied to data permissions. The current state is: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. What is the greatest specific exposure?
- A forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
- The outside contractor may retain sensitive access months after the project ends.
- A dropped column can break third-party daily reports without the provider noticing.
- A convenient cross-region copy may violate residency terms or incur avoidable transfer charges.
Explanation
Correct Answer
A:The specific residual risk is that a forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls. The situation is: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. The missing response is to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. The engineering reason is that publishing a report link is not sufficient authorization to view the data it references. After remediation, verify: A nonmember opening the shared link is denied the protected report and underlying data.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A temporary outside research contract should grant access to one dataset for thirty days, not indefinitely. Its tailored control is to issue time-bounded governed access and automate revocation or periodic review of the sharing entitlement. In the present situation the more direct exposure is that a forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
C:This failure mode belongs chiefly to another situation: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. Its tailored control is to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. In the present situation the more direct exposure is that a forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
D:This failure mode belongs chiefly to another situation: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. Its tailored control is to plan location-compatible sharing and approved export paths before publishing the subscription. In the present situation the more direct exposure is that a forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
Question 574
The proposed safeguard is not implemented: Design a Bigtable row-key schema for device and time access patterns with hotspot controls. The data platform currently faces: A telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. What direct risk remains?
- Using a warehouse as the primary transaction database can complicate record-level updates and constraints.
- A conventional single-region database may fail the geographic availability and write scalability requirements.
- Choosing a mismatched storage engine may force unnecessary SQL rewrites and fail performance targets.
- A sequential timestamp prefix can create a write hotspot that limits horizontal scale.
Explanation
Correct Answer
D:The specific residual risk is that a sequential timestamp prefix can create a write hotspot that limits horizontal scale. The situation is: A telecom service looks up billions of time-indexed device readings by device ID and timestamp with very low latency. The missing response is to design a Bigtable row-key schema for device and time access patterns with hotspot controls. The engineering reason is that bigtable suits wide-column, low-latency key-range access when row keys distribute read and write traffic appropriately. After remediation, verify: A peak write/read test shows even tablet load and bounded query latency for chosen row-key ranges.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. Its tailored control is to use Cloud SQL for a supported relational database workload with managed backup and availability options. In the present situation the more direct exposure is that a sequential timestamp prefix can create a write hotspot that limits horizontal scale.
B:This failure mode belongs chiefly to another situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. Its tailored control is to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. In the present situation the more direct exposure is that a sequential timestamp prefix can create a write hotspot that limits horizontal scale.
C:This failure mode belongs chiefly to another situation: A high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. Its tailored control is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements. In the present situation the more direct exposure is that a sequential timestamp prefix can create a write hotspot that limits horizontal scale.
Question 575
An architecture proposal calls for: Manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. In this case: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. Which rationale MOST strongly supports the choice?
- De-identification must be applied to shared outputs as well as restricted source tables.
- Publishing a report link is not sufficient authorization to view the data it references.
- Shared data is an API-like dependency whose breaking changes require controlled communication.
- Data-sharing policy must be enforced by identity even when several recipients use the same logical dataset.
Explanation
Correct Answer
C:The governing principle is that shared data is an API-like dependency whose breaking changes require controlled communication. It explains why the team should manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. The current problem is: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. Without the safeguard, a dropped column can break third-party daily reports without the provider noticing. A suitable proof is: A breaking-change test blocks publication until dependent consumers acknowledge or migrate.
Incorrect Answers
A:That principle applies primarily to a different design condition: A dataset shared with contractors includes direct phone numbers that are not needed for their analytical report. There the relevant engineering response is to publish masked or tokenized fields and explicitly authorize any permitted unmasked roles. For the given case, the controlling rationale is that shared data is an API-like dependency whose breaking changes require controlled communication.
B:That principle applies primarily to a different design condition: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. There the relevant engineering response is to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. For the given case, the controlling rationale is that shared data is an API-like dependency whose breaking changes require controlled communication.
D:That principle applies primarily to a different design condition: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. There the relevant engineering response is to enforce partner-specific row access policies or separately governed audience views at the source. For the given case, the controlling rationale is that shared data is an API-like dependency whose breaking changes require controlled communication.
Question 576
The team accepts this control: Use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. What observable result should its acceptance test verify?
- A drill restores the intended prior partition and reconciles its checksum against a saved reference.
- A forced halfway restart produces the same final row-key inventory as a clean reference run.
- A regional outage rehearsal starts essential workloads in the approved alternate region within targets.
- A controlled failover demonstrates application reconnection within the documented recovery target.
Explanation
Correct Answer
B:This is the decisive test result: A forced halfway restart produces the same final row-key inventory as a clean reference run. It directly validates the implementation to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. The underlying case is: A batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. This matters because failure recovery must not change logical results when the same unit of work is replayed. Without it, a transient worker failure can double daily customer counts while every task eventually finishes.
Incorrect Answers
A:This is proof for a different safeguard: Plan supported table recovery or versioned backup processes and test restoration into a controlled target. That applies when a data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. The present control instead requires the specific outcome: A forced halfway restart produces the same final row-key inventory as a clean reference run.
C:This is proof for a different safeguard: Design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. That applies when a regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The present control instead requires the specific outcome: A forced halfway restart produces the same final row-key inventory as a clean reference run.
D:This is proof for a different safeguard: Select supported Cloud SQL high availability or failover design and validate application reconnection behavior. That applies when a critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. The present control instead requires the specific outcome: A forced halfway restart produces the same final row-key inventory as a clean reference run.
Question 577
Consider a Google Cloud data engineering design: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. What action BEST meets the stated constraint?
- Enforce partner-specific row access policies or separately governed audience views at the source.
- Use dashboard access controls and approved report embedding or sharing settings tied to data permissions.
- Share an authorized aggregate view or published derived table instead of granting source table access.
- Plan location-compatible sharing and approved export paths before publishing the subscription.
Explanation
Correct Answer
C:The appropriate design is to share an authorized aggregate view or published derived table instead of granting source table access. This addresses the exact constraint: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The underlying principle is that least-privilege data sharing should disclose only the result required by the external consumer. If omitted, broad read access exposes invoice detail that is outside the contractual reporting purpose. A direct acceptance test is: A vendor query succeeds on the approved summary and fails on the raw invoice table.
Incorrect Answers
A:This action fits a separate situation: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. There it would make sense to enforce partner-specific row access policies or separately governed audience views at the source. It does not resolve this case, in which a vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The needed control is to share an authorized aggregate view or published derived table instead of granting source table access.
B:This action fits a separate situation: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. There it would make sense to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. It does not resolve this case, in which a vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The needed control is to share an authorized aggregate view or published derived table instead of granting source table access.
D:This action fits a separate situation: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. There it would make sense to plan location-compatible sharing and approved export paths before publishing the subscription. It does not resolve this case, in which a vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The needed control is to share an authorized aggregate view or published derived table instead of granting source table access.
Question 578
A data engineer recommends: Create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. It addresses: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. What underlying principle explains the recommendation?
- Data masking or field-level restrictions prevent unnecessary disclosure while preserving approved analytics.
- Business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
- Precomputed aggregates can serve recurring BI queries more efficiently when the refresh and query requirements align.
- Query plan evidence can distinguish data skew, excessive scans and costly joins from insufficient overall compute.
Explanation
Correct Answer
B:The governing principle is that business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics. It explains why the team should create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. The current problem is: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. Without the safeguard, interactive dashboards may time out while repeatedly scanning full historical event logs. A suitable proof is: A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
Incorrect Answers
A:That principle applies primarily to a different design condition: A report exposes employee compensation ranges but should hide direct salary amounts from most readers. There the relevant engineering response is to use supported dynamic data masking or column-level authorization with a non-sensitive published calculation. For the given case, the controlling rationale is that business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
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 business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
D:That principle applies primarily to a different design condition: A BigQuery query slows dramatically after a new join and the engineer tries increasing slot capacity without inspecting its plan. There the relevant engineering response is to review execution stages, shuffle volume and join cardinality before choosing rewrite or capacity changes. For the given case, the controlling rationale is that business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
Question 579
Consider a Google Cloud data engineering design: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. What action BEST meets the stated constraint?
- Partition the table on an appropriate event-date field and enforce qualifying partition filters.
- Preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table.
- Consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
- Cluster the partitioned BigQuery table on frequently filtered customer or account columns.
Explanation
Correct Answer
C:The appropriate design is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records. This addresses the exact constraint: A user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The underlying principle is that bigQuery denormalization with STRUCT and ARRAY can reduce unnecessary joins for suitable hierarchical entities. If omitted, an overnormalized analytical schema may spend excessive time joining simple repeated attributes. A direct acceptance test is: A representative profile query reads all expected repeated values with improved scan and execution measures.
Incorrect Answers
A:This action fits a separate situation: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. There it would make sense to partition the table on an appropriate event-date field and enforce qualifying partition filters. It does not resolve this case, in which a user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The needed control is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
B:This action fits a separate situation: An analytics API flattens all repeated line items into one wide row with fixed item1 and item2 columns. There it would make sense to preserve variable-length child items in a repeatable nested structure or an explicitly modeled child fact table. It does not resolve this case, in which a user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The needed control is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
D:This action fits a separate situation: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. There it would make sense to cluster the partitioned BigQuery table on frequently filtered customer or account columns. It does not resolve this case, in which a user profile query repeatedly joins many one-to-many address and preference tables and has unacceptable dashboard latency. The needed control is to consider BigQuery nested and repeated fields where the query pattern benefits from colocated child records.
Question 580
A data engineer recommends: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. It addresses: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. What underlying principle explains the recommendation?
- A managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic.
- A watermark expresses progress in event time and a bound on expected older data, not simply wall-clock arrival time.
- Privacy transformations need to operate before data crosses into a broadly accessible destination.
- Upserts require handling duplicate and out-of-order updates to preserve the intended latest record.
Explanation
Correct Answer
C:The governing principle is that privacy transformations need to operate before data crosses into a broadly accessible destination. It explains why the team should apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. The current problem is: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. Without the safeguard, downstream users can query protected fields if raw payloads are copied directly into the shared warehouse. A suitable proof is: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
Incorrect Answers
A:That principle applies primarily to a different design condition: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. There the relevant engineering response is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. For the given case, the controlling rationale is that privacy transformations need to operate before data crosses into a broadly accessible destination.
B:That principle applies primarily to a different design condition: A Dataflow stream computes event-time windows but operators mistake the watermark for the time of the last message read. There the relevant engineering response is to monitor watermarks, input timestamps and processing lag to understand when windows are considered complete. For the given case, the controlling rationale is that privacy transformations need to operate before data crosses into a broadly accessible destination.
D:That principle applies primarily to a different design condition: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. There the relevant engineering response is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. For the given case, the controlling rationale is that privacy transformations need to operate before data crosses into a broadly accessible destination.