Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 57
Question 560
The design review proposes the following action: Specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. The triggering condition is: An IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. Which technical principle BEST justifies it?
- Pipeline identity should separate automated data acquisition from personal user credentials and limit source access.
- Latency contracts must distinguish time of occurrence, arrival time and when reports are considered final.
- An intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
- Encryption design must include the actual writer and reader principals as well as storage configuration.
Explanation
Correct Answer
B:The governing principle is that latency contracts must distinguish time of occurrence, arrival time and when reports are considered final. It explains why the team should specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. The current problem is: An IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. Without the safeguard, reports may exclude delayed devices or silently revise totals after users believe the window closed. A suitable proof is: A delayed-event test produces documented updates and meets the agreed freshness and finalization rules.
Incorrect Answers
A:That principle applies primarily to a different design condition: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. There the relevant engineering response is to assign a dedicated ingestion service account with source-specific access and only required destination permissions. For the given case, the controlling rationale is that latency contracts must distinguish time of occurrence, arrival time and when reports are considered final.
C:That principle applies primarily to a different design condition: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. There the relevant engineering response is to design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. For the given case, the controlling rationale is that latency contracts must distinguish time of occurrence, arrival time and when reports are considered final.
D:That principle applies primarily to a different design condition: A compliance feed writes data to Cloud Storage but requires customer-managed encryption keys and auditable key access. There the relevant engineering response is to include supported Cloud KMS key integration and service identity access in the ingestion architecture. For the given case, the controlling rationale is that latency contracts must distinguish time of occurrence, arrival time and when reports are considered final.
Question 561
An architecture proposal calls for: Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. In this case: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. Which rationale MOST strongly supports the choice?
- Short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
- Adding compute does not solve an upstream I/O bottleneck that starves processing workers.
- Data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
- Elastic processing capacity should respond to workload changes while respecting service quotas and cost limits.
Explanation
Correct Answer
A:The governing principle is that short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines. It explains why the team should choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. The current problem is: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. Without the safeguard, persistent workers can create excessive cost for a small daily processing window. A suitable proof is: A timed job-based execution meets completion SLAs at lower total compute cost.
Incorrect Answers
B:That principle applies primarily to a different design condition: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. There the relevant engineering response is to profile source throughput and worker utilization before changing cluster size or partition design. For the given case, the controlling rationale is that short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
C:That principle applies primarily to a different design condition: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. There the relevant engineering response is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. For the given case, the controlling rationale is that short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
D:That principle applies primarily to a different design condition: A Dataflow job falls behind during flash-sale traffic but uses fixed worker capacity sized for ordinary days. There the relevant engineering response is to tune supported Dataflow autoscaling and worker constraints against peak backlog and latency objectives. For the given case, the controlling rationale is that short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines.
Question 562
The team is considering: Use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. The context is: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. Which engineering principle is MOST relevant?
- Separating raw from curated zones preserves replayability and helps consumers distinguish untrusted from approved records.
- Lake schema governance makes incompatible source changes visible before they break downstream analysis.
- Columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
- Lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
Explanation
Correct Answer
C:The governing principle is that columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed. It explains why the team should use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. The current problem is: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. Without the safeguard, opaque serialized blobs can make cross-engine processing expensive and cause schema mismatch failures. A suitable proof is: Independent engines read a representative column subset with matching types and expected 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 columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
B:That principle applies primarily to a different design condition: New Parquet files arrive with type changes and analysts cannot tell why some partitions fail in BigQuery external queries. There the relevant engineering response is to register schemas in the lake catalog and validate evolution before promoting newly landed partitions. For the given case, the controlling rationale is that columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
D:That principle applies primarily to a different design condition: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. There the relevant engineering response is to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. For the given case, the controlling rationale is that columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
Question 563
The engineering team ignores the recommended change: Land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. The current state is: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. What is the greatest specific exposure?
- A transformation defect can destroy the only copy of source events and prevent correction.
- Embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
- A rigid initial design may exceed throughput limits as traffic and historical data volume increase.
- Departments may pay to ingest conflicting copies of the same data and publish inconsistent definitions.
Explanation
Correct Answer
A:The specific residual risk is that a transformation defect can destroy the only copy of source events and prevent correction. The situation is: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. The missing response is to land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. The engineering reason is that durable staging separates source acquisition from later transformation and supports controlled replay. After remediation, verify: An intentionally broken transformation is repaired and the affected period is replayed from retained raw input.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. Its tailored control is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. In the present situation the more direct exposure is that a transformation defect can destroy the only copy of source events and prevent correction.
C:This failure mode belongs chiefly to another situation: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. Its tailored control is to model future event volume, latency and retention tiers before fixing component and partitioning choices. In the present situation the more direct exposure is that a transformation defect can destroy the only copy of source events and prevent correction.
D:This failure mode belongs chiefly to another situation: Several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. Its tailored control is to register approved assets in a searchable catalog with owners, descriptions and lineage references. In the present situation the more direct exposure is that a transformation defect can destroy the only copy of source events and prevent correction.
Question 564
An operator has deployed the solution: Publish a reviewed metric contract defining event eligibility, time windows and entity grain. In the situation where data scientists and operations teams each call a customer active using incompatible event definitions. Which evidence BEST confirms success?
- The materialized aggregate matches the approved source query and reduces processed bytes under typical refreshes.
- A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
- A supported dashboard workload records better p95 latency with the expected acceleration metrics.
- A sampled population produces the same active-customer count through two independent approved implementations.
Explanation
Correct Answer
D:This is the decisive test result: A sampled population produces the same active-customer count through two independent approved implementations. It directly validates the implementation to publish a reviewed metric contract defining event eligibility, time windows and entity grain. The underlying case is: Data scientists and operations teams each call a customer active using incompatible event definitions. This matters because consistent metric definitions are required to compare results across dashboards and analytical teams. Without it, changes in event filtering may look like customer growth when only the calculation changed.
Incorrect Answers
A:This is proof for a different safeguard: Use a BigQuery materialized view or governed refreshed aggregate for an eligible repeated calculation. That applies when a sales dashboard recalculates the same hourly grouped revenue from a large base table for dozens of users. The present control instead requires the specific outcome: A sampled population produces the same active-customer count through two independent approved implementations.
B:This is proof for a different safeguard: Create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. That applies when marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. The present control instead requires the specific outcome: A sampled population produces the same active-customer count through two independent approved implementations.
C:This is proof for a different safeguard: Evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. That applies when a BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. The present control instead requires the specific outcome: A sampled population produces the same active-customer count through two independent approved implementations.
Question 565
An architecture proposal calls for: Consider Firestore document modeling and indexes appropriate for the application query patterns. In this case: A field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. Which rationale MOST strongly supports the choice?
- Cloud Storage is an object store appropriate for large unstructured assets and lifecycle management.
- Lake-based SQL access can query external files while preserving separately managed storage and access boundaries.
- Firestore is a document-oriented operational database for application access rather than a bulk analytical warehouse.
- A low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes.
Explanation
Correct Answer
C:The governing principle is that firestore is a document-oriented operational database for application access rather than a bulk analytical warehouse. It explains why the team should consider Firestore document modeling and indexes appropriate for the application query patterns. The current problem is: A field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. Without the safeguard, using a batch warehouse query for every mobile read can cause unacceptable user-facing latency. A suitable proof is: A device client retrieves authorized documents through expected indexed queries under representative concurrency.
Incorrect Answers
A:That principle applies primarily to a different design condition: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. There the relevant engineering response is to store the objects in Cloud Storage with an appropriate storage class, retention and access policy. For the given case, the controlling rationale is that firestore is a document-oriented operational database for application access rather than a bulk analytical warehouse.
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 firestore is a document-oriented operational database for application access rather than a bulk analytical warehouse.
D:That principle applies primarily to a different design condition: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. There the relevant engineering response is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. For the given case, the controlling rationale is that firestore is a document-oriented operational database for application access rather than a bulk analytical warehouse.
Question 566
The team is considering: Separate development and production data resources and authorize deploy-only service accounts for guarded promotion. The context is: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Which engineering principle is MOST relevant?
- Preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
- Row-level security enforces record eligibility at the table access boundary for each authenticated viewer.
- Environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
- Column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
Explanation
Correct Answer
C:The governing principle is that environment isolation reduces accidental cross-environment writes and limits the impact of development credentials. It explains why the team should separate development and production data resources and authorize deploy-only service accounts for guarded promotion. The current problem is: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Without the safeguard, a developer test can truncate the production reporting table or modify production data unexpectedly. A suitable proof is: A development identity can write to test datasets but cannot modify production tables without approved promotion.
Incorrect Answers
A:That principle applies primarily to a different design condition: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. There the relevant engineering response is to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. For the given case, the controlling rationale is that environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
B:That principle applies primarily to a different design condition: Regional account managers share one BigQuery sales table but must see only rows belonging to their assigned territory. There the relevant engineering response is to define BigQuery row access policies linked to authorized territory principals rather than copying all rows into shared dashboards. For the given case, the controlling rationale is that environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
D:That principle applies primarily to a different design condition: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. There the relevant engineering response is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. For the given case, the controlling rationale is that environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
Question 567
The team accepts this control: Use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata. What observable result should its acceptance test verify?
- A published create-update-cancel sequence retains per-order order at the subscriber during the test.
- An insert, update and deletion propagate through the controlled CDC path with a correct target-state comparison.
- A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
- An induced subscriber crash and redelivery yield one logical output for the tested event ID.
Explanation
Correct Answer
B:This is the decisive test result: An insert, update and deletion propagate through the controlled CDC path with a correct target-state comparison. It directly validates the implementation to use supported Datastream change data capture and design downstream deduplication and ordering by source change metadata. The underlying case is: A bank's relational source updates customer records continuously and the analytics team needs those changes without polling the full table. This matters because change-data capture exports incremental source mutations while preserving information needed for correct target state. Without it, repeated full extracts can overload source transactions and may miss intermediate updates.
Incorrect Answers
A:This is proof for a different safeguard: Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. That applies when a fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. The present control instead requires the specific outcome: An insert, update and deletion propagate through the controlled CDC path with a correct target-state comparison.
C:This is proof for a different safeguard: Select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. That applies when a business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The present control instead requires the specific outcome: An insert, update and deletion propagate through the controlled CDC path with a correct target-state comparison.
D:This is proof for a different safeguard: Implement consumer idempotence or stable event-ID deduplication and acknowledge only after durable processing. That applies when pub/Sub normally redelivers an event after a subscriber crashes before acknowledgment and a downstream table has duplicate rows. The present control instead requires the specific outcome: An insert, update and deletion propagate through the controlled CDC path with a correct target-state comparison.
Question 568
The proposed safeguard is not implemented: Plan supported table recovery or versioned backup processes and test restoration into a controlled target. The data platform currently faces: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. What direct risk remains?
- A replicated bad update may spread everywhere and leave no trustworthy prior report.
- An application can remain offline although replacement database capacity exists in another zone.
- A replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
- Outage recovery can lose old messages or produce duplicated downstream changes.
Explanation
Correct Answer
A:The specific residual risk is that a replicated bad update may spread everywhere and leave no trustworthy prior report. The situation is: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. The missing response is to plan supported table recovery or versioned backup processes and test restoration into a controlled target. The engineering reason is that recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy. After remediation, verify: A drill restores the intended prior partition and reconciles its checksum against a saved reference.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. Its tailored control is to select supported Cloud SQL high availability or failover design and validate application reconnection behavior. In the present situation the more direct exposure is that a replicated bad update may spread everywhere and leave no trustworthy prior report.
C:This failure mode belongs chiefly to another situation: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. Its tailored control is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. In the present situation the more direct exposure is that a replicated bad update may spread everywhere and leave no trustworthy prior report.
D:This failure mode belongs chiefly to another situation: A Pub/Sub subscriber is down for an hour and returns to a large backlog with events that may be delivered repeatedly. Its tailored control is to preserve adequate subscription retention and implement bounded replay with stable deduplication keys. In the present situation the more direct exposure is that a replicated bad update may spread everywhere and leave no trustworthy prior report.
Question 569
A project declines to apply this measure: Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. It faces: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. Which consequence is MOST directly unresolved?
- Choosing an operational key-value store would make broad multi-terabyte analytical joins inefficient.
- Stale cached prices can reach customers if invalidation and expiration are not defined.
- Assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
- Using a warehouse as the primary transaction database can complicate record-level updates and constraints.
Explanation
Correct Answer
B:The specific residual risk is that stale cached prices can reach customers if invalidation and expiration are not defined. The situation is: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The missing response is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. The engineering reason is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes. After remediation, verify: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. Its tailored control is to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. In the present situation the more direct exposure is that stale cached prices can reach customers if invalidation and expiration are not defined.
C:This failure mode belongs chiefly to another situation: A data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. Its tailored control is to evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. In the present situation the more direct exposure is that stale cached prices can reach customers if invalidation and expiration are not defined.
D: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 stale cached prices can reach customers if invalidation and expiration are not defined.
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.