Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 3
Question 20
A data engineer recommends: Evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. It addresses: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. What underlying principle explains the recommendation?
- Separating raw from curated zones preserves replayability and helps consumers distinguish untrusted from approved records.
- Columnar lake formats enable interoperable analytical reads when file layout and type contracts are managed.
- Governed lake operations require provenance and stewardship as well as durable object storage.
- Lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
Explanation
Correct Answer
D:The governing principle is that lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol. It explains why the team should evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. The current problem is: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. Without the safeguard, enabling incompatible writers can expose readers to partial commits or inconsistent schema snapshots. A suitable proof is: Two approved engines read the same committed snapshot and reject a deliberately incomplete transaction.
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 lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
B:That principle applies primarily to a different design condition: A data science team stores raw event datasets in Cloud Storage and wants efficient columnar processing by several engines. There the relevant engineering response is to use a governed lake layout with Parquet or another supported analytical format and explicit schema metadata. For the given case, the controlling rationale is that lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
C:That principle applies primarily to a different design condition: Object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. There the relevant engineering response is to publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. For the given case, the controlling rationale is that lakehouse table formats can coordinate metadata and atomic snapshots only when readers and writers support the chosen protocol.
Question 21
A project declines to apply this measure: Evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. It faces: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. Which consequence is MOST directly unresolved?
- A one-time dump may become outdated before cutover and force an extended read-only period.
- Frequent full extracts can overload production databases and still miss updates between schedules.
- The migration may miss its deadline because an undersized connection spends months uploading raw objects.
- An undetected target defect can leave the business with neither a trusted new table nor a usable old view.
Explanation
Correct Answer
C:The specific residual risk is that the migration may miss its deadline because an undersized connection spends months uploading raw objects. The situation is: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. The missing response is to evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. The engineering reason is that physical transfer can be appropriate when bulk dataset size makes ordinary network upload impractical. After remediation, verify: A transfer plan demonstrates verifiable arrival counts and encryption controls within the scheduled window.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A company moves a supported transactional database to Cloud SQL and needs a short final application outage. Its tailored control is to assess Database Migration Service support and an initial load plus continuous replication cutover plan. In the present situation the more direct exposure is that the migration may miss its deadline because an undersized connection spends months uploading raw objects.
B: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 the migration may miss its deadline because an undersized connection spends months uploading raw objects.
D:This failure mode belongs chiefly to another situation: A cutover plan overwrites old source extracts immediately and offers no route back if target reporting fails. Its tailored control is to retain validated source checkpoints and define a reversible cutover with rollback ownership and criteria. In the present situation the more direct exposure is that the migration may miss its deadline because an undersized connection spends months uploading raw objects.
Question 22
The engineering team ignores the recommended change: Use federated catalog discovery and region-aware access patterns while retaining approved storage locations. The current state is: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. What is the greatest specific exposure?
- A consolidation proposal may breach sovereignty policies simply to make assets searchable.
- Without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
- An unannounced schema edit can break dozens of dashboards and ML features simultaneously.
- A confidential column can appear in a copied dataset without its required access restrictions.
Explanation
Correct Answer
A:The specific residual risk is that a consolidation proposal may breach sovereignty policies simply to make assets searchable. The situation is: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. The missing response is to use federated catalog discovery and region-aware access patterns while retaining approved storage locations. The engineering reason is that metadata discovery and governance can be centralized logically without moving all source data across borders. After remediation, verify: The catalog finds regional assets while data movement logs confirm no unauthorized cross-border copies.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A regulated analytics program cannot trace its report fields through source systems after an audit query. Its tailored control is to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. In the present situation the more direct exposure is that a consolidation proposal may breach sovereignty policies simply to make assets searchable.
C:This failure mode belongs chiefly to another situation: Internal teams expose raw tables directly as products and change column names without notifying consumers. Its tailored control is to publish a documented versioned data product interface with owners, contracts and deprecation checks. In the present situation the more direct exposure is that a consolidation proposal may breach sovereignty policies simply to make assets searchable.
D:This failure mode belongs chiefly to another situation: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. Its tailored control is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. In the present situation the more direct exposure is that a consolidation proposal may breach sovereignty policies simply to make assets searchable.
Question 23
A project declines to apply this measure: Choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. It faces: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. Which consequence is MOST directly unresolved?
- The target may silently omit rows modified during the transition from bulk copy to streaming replication.
- A retry can charge a customer twice when an external sink lacks deduplication.
- An outdated dashboard may drive incorrect operational decisions despite an all-green job list.
- Wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails.
Explanation
Correct Answer
B:The specific residual risk is that a retry can charge a customer twice when an external sink lacks deduplication. The situation is: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. The missing response is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. The engineering reason is that a processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems. After remediation, verify: Repeated delivery of one payment event results in one durable charge and one settlement reference.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. Its tailored control is to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. In the present situation the more direct exposure is that a retry can charge a customer twice when an external sink lacks deduplication.
C:This failure mode belongs chiefly to another situation: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. Its tailored control is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches. In the present situation the more direct exposure is that a retry can charge a customer twice when an external sink lacks deduplication.
D:This failure mode belongs chiefly to another situation: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. Its tailored control is to introduce schema and business-rule validation with quarantined records and explicit correction procedures. In the present situation the more direct exposure is that a retry can charge a customer twice when an external sink lacks deduplication.
Question 24
A project declines to apply this measure: Use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. It faces: A single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. Which consequence is MOST directly unresolved?
- A partial transaction can leave orphaned staged data and misleading completion status.
- File arrival can be missed or delayed and repeated notifications may process the same file twice.
- An automated retry can double count business records in a daily report.
- Manual launches can be forgotten and repeated invocations can publish duplicate outputs.
Explanation
Correct Answer
D:The specific residual risk is that manual launches can be forgotten and repeated invocations can publish duplicate outputs. The situation is: A single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. The missing response is to use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. The engineering reason is that simple time-based recurring operations do not necessarily need a full orchestration platform. After remediation, verify: Two deliberately repeated scheduled calls leave the correct single daily output and an auditable run log.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. Its tailored control is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. In the present situation the more direct exposure is that manual launches can be forgotten and repeated invocations can publish duplicate outputs.
B:This failure mode belongs chiefly to another situation: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. Its tailored control is to use an approved event trigger with object-identity deduplication and downstream orchestration. In the present situation the more direct exposure is that manual launches can be forgotten and repeated invocations can publish duplicate outputs.
C:This failure mode belongs chiefly to another situation: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. Its tailored control is to design idempotent task boundaries with stable run identifiers and transactional target publication. In the present situation the more direct exposure is that manual launches can be forgotten and repeated invocations can publish duplicate outputs.
Question 25
The engineering team ignores the recommended change: Cluster the partitioned BigQuery table on frequently filtered customer or account columns. The current state is: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. What is the greatest specific exposure?
- Hourly dashboards can spend resources repeatedly calculating unchanged historical totals.
- Partitioning alone may still scan most blocks for customers within each daily partition.
- Scanning unneeded historical partitions can make daily reporting expensive and slow.
- Joining records at mismatched granularity can multiply revenue values and corrupt comparisons.
Explanation
Correct Answer
B:The specific residual risk is that partitioning alone may still scan most blocks for customers within each daily partition. The situation is: A warehouse table already partitions by day but repeated analyses filter by customer_id within those days. The missing response is to cluster the partitioned BigQuery table on frequently filtered customer or account columns. The engineering reason is that clustering can prune storage blocks inside selected partitions for selective filters. After remediation, verify: Query statistics show fewer scanned blocks and acceptable performance for selective customer filters.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A team recomputes the same expensive daily aggregate from a huge BigQuery base table for every BI dashboard refresh. Its tailored control is to evaluate an eligible BigQuery materialized view or governed preaggregation strategy for the recurring query. In the present situation the more direct exposure is that partitioning alone may still scan most blocks for customers within each daily partition.
C:This failure mode belongs chiefly to another situation: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. Its tailored control is to partition the table on an appropriate event-date field and enforce qualifying partition filters. In the present situation the more direct exposure is that partitioning alone may still scan most blocks for customers within each daily partition.
D:This failure mode belongs chiefly to another situation: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. Its tailored control is to model conformed dimensions and a documented fact table grain before creating reporting views. In the present situation the more direct exposure is that partitioning alone may still scan most blocks for customers within each daily partition.
Question 26
A production data pipeline has this problem: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. Which solution MOST directly corrects it?
- Apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers.
- Consider Firestore document modeling and indexes appropriate for the application query patterns.
- Use Cloud SQL for a supported relational database workload with managed backup and availability options.
- 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 use Cloud SQL for a supported relational database workload with managed backup and availability options. This addresses the exact constraint: A departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The underlying principle is that cloud SQL provides managed conventional relational databases for transactional applications without requiring warehouse-scale analytics features. If omitted, using a warehouse as the primary transaction database can complicate record-level updates and constraints. A direct acceptance test is: Application transaction tests pass while backup and maintenance responsibilities follow the managed deployment plan.
Incorrect Answers
A:This action fits a separate situation: A startup stores two years of logs at high storage cost although only one month is used interactively. There it would make sense to apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers. It does not resolve this case, in which a departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The needed control is to use Cloud SQL for a supported relational database workload with managed backup and availability options.
B:This action fits a separate situation: A field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. There it would make sense to consider Firestore document modeling and indexes appropriate for the application query patterns. It does not resolve this case, in which a departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The needed control is to use Cloud SQL for a supported relational database workload with managed backup and availability options.
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 departmental application needs PostgreSQL-compatible transactions for a moderate workload with predictable instance sizing. The needed control is to use Cloud SQL for a supported relational database workload with managed backup and availability options.
Question 27
A pipeline team implements the measure: Use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. Which result would provide the STRONGEST operational evidence of effectiveness?
- A single uploaded object initiates the intended transformation and duplicate notifications remain harmless.
- Two deliberately repeated scheduled calls leave the correct single daily output and an auditable run log.
- A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
- An injected failed assertion blocks dependent publication and is surfaced to the pipeline owner.
Explanation
Correct Answer
C:This is the decisive test result: A forced target-write error invokes the approved cleanup and reports failure with its correlation ID. It directly validates the implementation to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. The underlying case is: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. This matters because multi-service workflows require explicit failure transitions instead of unconditional next-step execution. Without it, a partial transaction can leave orphaned staged data and misleading completion status.
Incorrect Answers
A:This is proof for a different safeguard: Use an approved event trigger with object-identity deduplication and downstream orchestration. That applies when an event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. The present control instead requires the specific outcome: A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
B:This is proof for a different safeguard: Use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. That applies when a single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. The present control instead requires the specific outcome: A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
D:This is proof for a different safeguard: Encode explicit Dataform dependencies and data-quality assertions in an automated workflow configuration. That applies when a Dataform SQL model depends on cleaned source tables but operators execute the reports before assertions finish. The present control instead requires the specific outcome: A forced target-write error invokes the approved cleanup and reports failure with its correlation ID.
Question 28
A pipeline team implements the measure: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. Which result would provide the STRONGEST operational evidence of effectiveness?
- A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
- A support account queries approved totals but receives denial when selecting the restricted identity column.
- A rotation rehearsal preserves authorized query access while an intentionally unauthorized key principal is denied.
- A retention test expires eligible records while preserving specifically protected items under approved holds.
Explanation
Correct Answer
A:This is the decisive test result: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds. It directly validates the implementation to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. The underlying case is: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. This matters because preventive organization controls enforce placement rules even when individual project owners deploy valid templates. Without it, a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary.
Incorrect Answers
B:This is proof for a different safeguard: Apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. That applies when a customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The present control instead requires the specific outcome: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
C:This is proof for a different safeguard: Configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. That applies when a healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. The present control instead requires the specific outcome: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
D:This is proof for a different safeguard: Apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. That applies when a data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. The present control instead requires the specific outcome: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
Question 29
A production review examines this scenario: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The team adopts: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. Which test BEST establishes the control works?
- A late-event simulation yields an early provisional pane and an expected corrected final view.
- A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
- A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
- Two runs launched from the pinned template report the intended container digest and equivalent sample output.
Explanation
Correct Answer
B:This is the decisive test result: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage. It directly validates the implementation to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. The underlying case is: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. This matters because privacy transformations need to operate before data crosses into a broadly accessible destination. Without it, downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
Incorrect Answers
A:This is proof for a different safeguard: Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. That applies when an operations dashboard needs an early approximate count and a later corrected count for late mobile activity. The present control instead requires the specific outcome: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
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: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
D:This is proof for a different safeguard: Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. That applies when a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. The present control instead requires the specific outcome: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
Question 30
The team accepts this control: Design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. What observable result should its acceptance test verify?
- A delayed-event test produces documented updates and meets the agreed freshness and finalization rules.
- A controlled link outage queues records and preserves expected event IDs after connection restoration.
- Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
- A missing pricing artifact blocks the dependent transform while reporting the unmet prerequisite.
Explanation
Correct Answer
B:This is the decisive test result: A controlled link outage queues records and preserves expected event IDs after connection restoration. It directly validates the implementation to design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. The underlying case is: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. This matters because an intermittent network path requires durable producer-side recovery and protection of transfer boundaries. Without it, network interruption can silently drop sensor measurements or force repeated full-file copies.
Incorrect Answers
A:This is proof for a different safeguard: Specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. That applies when an IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.
C:This is proof for a different safeguard: Agree a versioned event schema and producer contract, including compatibility and error-handling policy. That applies when two upstream teams publish JSON with different values and types for the same field called transaction_id. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.
D:This is proof for a different safeguard: Model the upstream dependencies and readiness checks before selecting the orchestration method. That applies when a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.