Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 27
Question 260
A pipeline team implements the measure: Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. Which result would provide the STRONGEST operational evidence of effectiveness?
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
- Out-of-order test updates leave the target at the correct source version with no duplicate keys.
- Only a complete validated file loads and a quality count matches the source manifest.
- A published create-update-cancel sequence retains per-order order at the subscriber during the test.
Explanation
Correct Answer
D:This is the decisive test result: A published create-update-cancel sequence retains per-order order at the subscriber during the test. It directly validates the implementation to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. The underlying case is: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. This matters because pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message. Without it, a shipment cancellation could be processed before its creation event when order keys are missing.
Incorrect Answers
A:This is proof for a different safeguard: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. That applies when a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The present control instead requires the specific outcome: A published create-update-cancel sequence retains per-order order at the subscriber during the test.
B:This is proof for a different safeguard: Use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. That applies when an order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. The present control instead requires the specific outcome: A published create-update-cancel sequence retains per-order order at the subscriber during the test.
C:This is proof for a different safeguard: Use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. That applies when a logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. The present control instead requires the specific outcome: A published create-update-cancel sequence retains per-order order at the subscriber during the test.
Question 261
The engineering team ignores the recommended change: Map time zones, collations and data types explicitly and validate representative migration edge cases. The current state is: A source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. What is the greatest specific exposure?
- A public or underprovisioned transfer path can expose data and extend the migration beyond the agreed window.
- A custom script may miss pagination, authentication renewal or late source corrections.
- Transactions can move into the wrong reporting day and join keys can stop matching after migration.
- Frequent full extracts can overload production databases and still miss updates between schedules.
Explanation
Correct Answer
C:The specific residual risk is that transactions can move into the wrong reporting day and join keys can stop matching after migration. The situation is: A source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The missing response is to map time zones, collations and data types explicitly and validate representative migration edge cases. The engineering reason is that data migration fidelity includes semantic conversions, not merely record-count equality. After remediation, verify: Tests around daylight-saving transitions and mixed-case keys match an approved source-system oracle.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A migration copies large databases over a public route that violates internal network isolation requirements. Its tailored control is to choose supported private connectivity and route throughput tests before bulk migration begins. In the present situation the more direct exposure is that transactions can move into the wrong reporting day and join keys can stop matching after migration.
B:This failure mode belongs chiefly to another situation: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. Its tailored control is to check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. In the present situation the more direct exposure is that transactions can move into the wrong reporting day and join keys can stop matching after migration.
D:This failure mode belongs chiefly to another situation: A legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. Its tailored control is to design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. In the present situation the more direct exposure is that transactions can move into the wrong reporting day and join keys can stop matching after migration.
Question 262
The team is considering: Assess Database Migration Service support and an initial load plus continuous replication cutover plan. The context is: A company moves a supported transactional database to Cloud SQL and needs a short final application outage. Which engineering principle is MOST relevant?
- A compliant migration must account for temporary copies as well as final data residence.
- CDC pipelines preserve ongoing source changes without repeatedly copying every operational table.
- A migration is complete only when analytical semantics and business measures match agreed expectations.
- Continuous migration reduces downtime when the source and target database engines are supported.
Explanation
Correct Answer
D:The governing principle is that continuous migration reduces downtime when the source and target database engines are supported. It explains why the team should assess Database Migration Service support and an initial load plus continuous replication cutover plan. The current problem is: A company moves a supported transactional database to Cloud SQL and needs a short final application outage. Without the safeguard, a one-time dump may become outdated before cutover and force an extended read-only period. A suitable proof is: A dry-run cutover reconciles data and records the final replication lag within the outage target.
Incorrect Answers
A:That principle applies primarily to a different design condition: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. There the relevant engineering response is to inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. For the given case, the controlling rationale is that continuous migration reduces downtime when the source and target database engines are supported.
B:That principle applies primarily to a different design condition: A legacy order database must continuously deliver changed rows into BigQuery for near-real-time reporting after initial loading. There the relevant engineering response is to design a supported Datastream change-data-capture feed and controlled initial backfill or downstream transformation. For the given case, the controlling rationale is that continuous migration reduces downtime when the source and target database engines are supported.
C:That principle applies primarily to a different design condition: A retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. There the relevant engineering response is to run parallel output validation and reconcile critical business totals by period before final switching. For the given case, the controlling rationale is that continuous migration reduces downtime when the source and target database engines are supported.
Question 263
The team accepts this control: Choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. What observable result should its acceptance test verify?
- A controlled worker restart resumes consumption and reconciles the output event inventory to the source.
- An intentionally unauthorized generated statement is blocked and a known result is checked against a verified baseline.
- Repeated delivery of one payment event results in one durable charge and one settlement reference.
- Counts, sampled checksums and source change positions reconcile at a documented consistency point.
Explanation
Correct Answer
C:This is the decisive test result: Repeated delivery of one payment event results in one durable charge and one settlement reference. It directly validates the implementation to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. The underlying case is: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. This matters because a processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems. Without it, a retry can charge a customer twice when an external sink lacks deduplication.
Incorrect Answers
A:This is proof for a different safeguard: Select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. That applies when a streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. The present control instead requires the specific outcome: Repeated delivery of one payment event results in one durable charge and one settlement reference.
B:This is proof for a different safeguard: Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. That applies when analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. The present control instead requires the specific outcome: Repeated delivery of one payment event results in one durable charge and one settlement reference.
D:This is proof for a different safeguard: Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. That applies when a database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. The present control instead requires the specific outcome: Repeated delivery of one payment event results in one durable charge and one settlement reference.
Question 264
A data platform team encounters this requirement: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. Which implementation is MOST appropriate?
- Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
- Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
- Configure controlled retry limits and an authorized dead-letter topic with an owned replay or inspection process.
- Use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks.
Explanation
Correct Answer
D:The appropriate design is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. This addresses the exact constraint: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. The underlying principle is that batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary. If omitted, an unvalidated partial file can replace a complete daily partition or produce incorrect field types. A direct acceptance test is: Only a complete validated file loads and a quality count matches the source manifest.
Incorrect Answers
A:This action fits a separate situation: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. There it would make sense to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. It does not resolve this case, in which a logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. The needed control is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks.
B:This action fits a separate situation: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. There it would make sense to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. It does not resolve this case, in which a logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. The needed control is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks.
C:This action fits a separate situation: One malformed Pub/Sub payload is retried indefinitely and repeatedly blocks progress for a subscription consumer. There it would make sense to configure controlled retry limits and an authorized dead-letter topic with an owned replay or inspection process. It does not resolve this case, in which a logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. The needed control is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks.
Question 265
A data engineer recommends: Combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. It addresses: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. What underlying principle explains the recommendation?
- Privacy controls require discovering sensitive fields and matching access and retention to their classification.
- Authorized views can share derived information without granting consumers direct access to every referenced base table.
- Customer-managed encryption protects stored data only when approved services retain correct key access throughout the key lifecycle.
- Service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions.
Explanation
Correct Answer
D:The governing principle is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions. It explains why the team should combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. The current problem is: Security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. Without the safeguard, a principal inside the perimeter might improperly gain access if broad table roles remain unchanged. A suitable proof is: An unauthorized in-perimeter identity is denied table access even though its network context satisfies perimeter policy.
Incorrect Answers
A:That principle applies primarily to a different design condition: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. There the relevant engineering response is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. For the given case, the controlling rationale is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions.
B:That principle applies primarily to a different design condition: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. There the relevant engineering response is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration. For the given case, the controlling rationale is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions.
C:That principle applies primarily to a different design condition: A healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. There the relevant engineering response is to configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. For the given case, the controlling rationale is that service perimeters mitigate data exfiltration paths but do not replace fine-grained identity permissions.
Question 266
An operator has deployed the solution: Evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. In the situation where a data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. Which evidence BEST confirms success?
- A representative PostgreSQL transaction workload completes within target latency after compatibility testing.
- An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
- Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
- A device client retrieves authorized documents through expected indexed queries under representative concurrency.
Explanation
Correct Answer
B:This is the decisive test result: An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget. It directly validates the implementation to evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. The underlying case is: A data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. This matters because lake-based SQL access can query external files while preserving separately managed storage and access boundaries. Without it, assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
Incorrect Answers
A:This is proof for a different safeguard: Assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements. That applies when a high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. The present control instead requires the specific outcome: An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
C:This is proof for a different safeguard: Use Cloud SQL for a supported relational database workload with managed backup and availability options. That applies when a departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The present control instead requires the specific outcome: An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
D:This is proof for a different safeguard: Consider Firestore document modeling and indexes appropriate for the application query patterns. That applies when a field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. The present control instead requires the specific outcome: An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
Question 267
A pipeline team implements the measure: Configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. Which result would provide the STRONGEST operational evidence of effectiveness?
- A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied.
- The analyst runs the approved query but cannot read an unrelated restricted dataset.
- The pipeline authenticates without a key file and unauthorized repositories cannot impersonate its production identity.
- A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
Explanation
Correct Answer
A:This is the decisive test result: A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied. It directly validates the implementation to configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. The underlying case is: A healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. This matters because customer-managed encryption protects stored data only when approved services retain correct key access throughout the key lifecycle. Without it, an unavailable or disabled key can make otherwise authorized analytical data temporarily unreadable.
Incorrect Answers
B:This is proof for a different safeguard: Grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. That applies when a finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. The present control instead requires the specific outcome: A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied.
C:This is proof for a different safeguard: Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. That applies when a scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. The present control instead requires the specific outcome: A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied.
D:This is proof for a different safeguard: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. That applies when a new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. The present control instead requires the specific outcome: A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied.
Question 268
The proposed safeguard is not implemented: Select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. The data platform currently faces: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. What direct risk remains?
- A delayed older update can overwrite a more recent customer address and corrupt reporting history.
- Order totals can be understated when additional line items are lost during transformation.
- A restarted connector may replay records or miss a partition if offsets are not managed correctly.
- Increasing worker count may not resolve the bottleneck when nearly all work remains on one key.
Explanation
Correct Answer
C:The specific residual risk is that a restarted connector may replay records or miss a partition if offsets are not managed correctly. The situation is: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The missing response is to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. The engineering reason is that kafka integration requires consistent consumption positions, error handling and sink identity across restarts. After remediation, verify: A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. Its tailored control is to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. In the present situation the more direct exposure is that a restarted connector may replay records or miss a partition if offsets are not managed correctly.
B:This failure mode belongs chiefly to another situation: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. Its tailored control is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. In the present situation the more direct exposure is that a restarted connector may replay records or miss a partition if offsets are not managed correctly.
D:This failure mode belongs chiefly to another situation: A distributed Apache Beam aggregation keys every payment into a single merchant ID and its throughput collapses. Its tailored control is to detect hot keys and apply supported fanout or key-distribution strategies before final aggregation. In the present situation the more direct exposure is that a restarted connector may replay records or miss a partition if offsets are not managed correctly.
Question 269
The engineering team ignores the recommended change: Preserve adequate subscription retention and implement bounded replay with stable deduplication keys. The current state is: A Pub/Sub subscriber is down for an hour and returns to a large backlog with events that may be delivered repeatedly. What is the greatest specific exposure?
- A transient worker failure can double daily customer counts while every task eventually finishes.
- A replicated bad update may spread everywhere and leave no trustworthy prior report.
- A cache failover can lose recent cart updates or expose stale balances with no trusted source to rebuild.
- Outage recovery can lose old messages or produce duplicated downstream changes.
Explanation
Correct Answer
D:The specific residual risk is that outage recovery can lose old messages or produce duplicated downstream changes. The situation is: A Pub/Sub subscriber is down for an hour and returns to a large backlog with events that may be delivered repeatedly. The missing response is to preserve adequate subscription retention and implement bounded replay with stable deduplication keys. The engineering reason is that messaging recovery depends on retained events, scalable draining and correct behavior under redelivery. After remediation, verify: A timed outage test restores consumption and reconciles business event IDs to the retained source.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A batch ETL task restarts halfway through output and writes duplicate customer rows because retries append blindly. Its tailored control is to use checkpointed or idempotent output publication and reconcile before marking a restarted job successful. In the present situation the more direct exposure is that outage recovery can lose old messages or produce duplicated downstream changes.
B:This failure mode belongs chiefly to another situation: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. Its tailored control is to plan supported table recovery or versioned backup processes and test restoration into a controlled target. In the present situation the more direct exposure is that outage recovery can lose old messages or produce duplicated downstream changes.
C:This failure mode belongs chiefly to another situation: An ecommerce platform keeps Redis cache data as its only copy of customer shopping-cart totals and assumes a replica removes all data-loss risk. Its tailored control is to keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics. In the present situation the more direct exposure is that outage recovery can lose old messages or produce duplicated downstream changes.
Question 270
The design review proposes the following action: Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. The triggering condition is: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. Which technical principle BEST justifies it?
- A unified transformation model reduces drift between historical backfills and real-time calculations.
- Pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message.
- Upserts require handling duplicate and out-of-order updates to preserve the intended latest record.
- Triggers can emit provisional windows before final event-time completeness is known.
Explanation
Correct Answer
B:The governing principle is that pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message. It explains why the team should enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. The current problem is: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. Without the safeguard, a shipment cancellation could be processed before its creation event when order keys are missing. A suitable proof is: A published create-update-cancel sequence retains per-order order at the subscriber during the test.
Incorrect Answers
A:That principle applies primarily to a different design condition: A company needs one transformation pipeline for daily archive files and live events with the same business rules. There the relevant engineering response is to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. For the given case, the controlling rationale is that pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message.
C: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 pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message.
D:That principle applies primarily to a different design condition: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. There the relevant engineering response is to configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. For the given case, the controlling rationale is that pub/Sub ordered delivery is scoped by key and subscription settings, not a global order across every message.