Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 51
Question 500
A data engineer recommends: Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. It addresses: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. What underlying principle explains the recommendation?
- Poison messages need bounded isolation so a permanently unprocessable record does not destabilize healthy traffic.
- Exactly-once internal stream processing does not automatically make arbitrary external side effects exactly once.
- Batch loads are suitable when source files arrive in bounded intervals and minute-level latency is unnecessary.
- Triggers can emit provisional windows before final event-time completeness is known.
Explanation
Correct Answer
D:The governing principle is that triggers can emit provisional windows before final event-time completeness is known. It explains why the team should configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. The current problem is: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. Without the safeguard, without explicit panes, analysts may mistake preliminary counts for final business totals. A suitable proof is: A late-event simulation yields an early provisional pane and an expected corrected final view.
Incorrect Answers
A:That principle applies primarily to a different design condition: One malformed Pub/Sub payload is retried indefinitely and repeatedly blocks progress for a subscription consumer. There the relevant engineering response is to configure controlled retry limits and an authorized dead-letter topic with an owned replay or inspection process. For the given case, the controlling rationale is that triggers can emit provisional windows before final event-time completeness is known.
B:That principle applies primarily to a different design condition: A Dataflow aggregation produces correct internal counts but its sink sends charge requests to an external payment API with occasional retries. There the relevant engineering response is to use sink-specific idempotent transaction IDs and delivery coordination rather than relying only on Dataflow exactly-once processing. For the given case, the controlling rationale is that triggers can emit provisional windows before final event-time completeness is known.
C:That principle applies primarily to a different design condition: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. There the relevant engineering response is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. For the given case, the controlling rationale is that triggers can emit provisional windows before final event-time completeness is known.
Question 501
The team is considering: Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. The context is: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. Which engineering principle is MOST relevant?
- Declarative SQL transformation pipelines benefit from versioned dependencies and quality assertions.
- Pipeline release automation must treat credentials as controlled secrets rather than ordinary build parameters.
- Managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment.
- Changing a stateful streaming program requires understanding in-flight data and replay semantics during rollback.
Explanation
Correct Answer
C:The governing principle is that managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment. It explains why the team should use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. The current problem is: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. Without the safeguard, a transient API failure can leave one step unexecuted while the workflow reports a false overall success. A suitable proof is: An injected 503 is retried according to policy and the final step runs only after validated success.
Incorrect Answers
A:That principle applies primarily to a different design condition: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. There the relevant engineering response is to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. For the given case, the controlling rationale is that managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment.
B:That principle applies primarily to a different design condition: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. There the relevant engineering response is to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. For the given case, the controlling rationale is that managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment.
D:That principle applies primarily to a different design condition: A faulty new streaming transformation is deployed and operators cannot restore the prior version without discarding accumulated data. There the relevant engineering response is to keep versioned pipeline releases with supported stop-drain or update and recovery procedures for stateful jobs. For the given case, the controlling rationale is that managed service orchestration can coordinate API calls without the overhead of a full Spark or Airflow environment.
Question 502
A project declines to apply this measure: Use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. It faces: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. Which consequence is MOST directly unresolved?
- A local unreviewed edit can alter production transformations and be impossible to reproduce or revert.
- Downstream reporting can publish a mixture of new and stale source partitions.
- Transient errors can double daily metrics when a job appends twice after an uncertain first outcome.
- An accessible build transcript can expose credentials granting production database access.
Explanation
Correct Answer
C:The specific residual risk is that transient errors can double daily metrics when a job appends twice after an uncertain first outcome. The situation is: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The missing response is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. The engineering reason is that orchestration retries require idempotent transformation and publication boundaries. After remediation, verify: An injected retry completes with exactly one authoritative set of rows for the scheduled data interval.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. Its tailored control is to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. In the present situation the more direct exposure is that transient errors can double daily metrics when a job appends twice after an uncertain first outcome.
B:This failure mode belongs chiefly to another situation: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. Its tailored control is to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. In the present situation the more direct exposure is that transient errors can double daily metrics when a job appends twice after an uncertain first outcome.
D:This failure mode belongs chiefly to another situation: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. Its tailored control is to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. In the present situation the more direct exposure is that transient errors can double daily metrics when a job appends twice after an uncertain first outcome.
Question 503
A data platform team encounters this requirement: A Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. Which implementation is MOST appropriate?
- Schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry.
- Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions.
- Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
- Manage Dataform definitions and assertions in version control with controlled compilation and workflow execution.
Explanation
Correct Answer
A:The appropriate design is to schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry. This addresses the exact constraint: A Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. The underlying principle is that simple time-triggered jobs do not require a full DAG orchestrator when a direct scheduling mechanism suffices. If omitted, an unauthenticated endpoint or missing retry logic may result in missed or duplicate cleanup work. A direct acceptance test is: The scheduled invocation reaches only the protected service and a duplicate call changes no additional records.
Incorrect Answers
B:This action fits a separate situation: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. There it would make sense to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. It does not resolve this case, in which a Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. The needed control is to schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry.
C:This action fits a separate situation: A simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. There it would make sense to use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. It does not resolve this case, in which a Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. The needed control is to schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry.
D:This action fits a separate situation: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. There it would make sense to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. It does not resolve this case, in which a Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. The needed control is to schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry.
Question 504
A production data pipeline has this problem: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Which solution MOST directly corrects it?
- Select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline.
- Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities.
- Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
- Validate critical fields, expected uniqueness and population-level reconciliation before publication.
Explanation
Correct Answer
C:The appropriate design is to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. This addresses the exact constraint: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. The underlying principle is that atomic transactions protect logically related mutations from inconsistent partial execution. If omitted, inventory may be decremented without the corresponding ledger entry when the second update fails. A direct acceptance test is: An injected error rolls back both intended table changes and leaves balances consistent.
Incorrect Answers
A:This action fits a separate situation: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. There it would make sense to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. It does not resolve this case, in which a BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. The needed control is to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
B:This action fits a separate situation: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There it would make sense to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. It does not resolve this case, in which a BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. The needed control is to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
D:This action fits a separate situation: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. There it would make sense to validate critical fields, expected uniqueness and population-level reconciliation before publication. It does not resolve this case, in which a BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. The needed control is to use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior.
Question 505
An organization does not implement the safeguard: Select supported Cloud SQL high availability or failover design and validate application reconnection behavior. In the following situation, a critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. Which failure is MOST likely?
- An application can remain offline although replacement database capacity exists in another zone.
- A transient worker failure can double daily customer counts while every task eventually finishes.
- A cache failover can lose recent cart updates or expose stale balances with no trusted source to rebuild.
- A replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
Explanation
Correct Answer
A:The specific residual risk is that an application can remain offline although replacement database capacity exists in another zone. The situation is: A critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. The missing response is to select supported Cloud SQL high availability or failover design and validate application reconnection behavior. The engineering reason is that availability requirements must include failover of stateful databases and dependent client connectivity. After remediation, verify: A controlled failover demonstrates application reconnection within the documented recovery target.
Incorrect Answers
B: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 an application can remain offline although replacement database capacity exists in another zone.
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 an application can remain offline although replacement database capacity exists in another zone.
D: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 an application can remain offline although replacement database capacity exists in another zone.
Question 506
An operator has deployed the solution: Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. In the situation where a newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. Which evidence BEST confirms success?
- A simulated upstream failure prevents the dependent task from starting and records the blocked dependency.
- A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
- The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
- An injected retry completes with exactly one authoritative set of rows for the scheduled data interval.
Explanation
Correct Answer
C:This is the decisive test result: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources. It directly validates the implementation to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. The underlying case is: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. This matters because pipeline credentials should satisfy actual data-path requirements without opening unrelated resources. Without it, broad Editor access can turn a routine ingestion identity into a cross-project data modification risk.
Incorrect Answers
A:This is proof for a different safeguard: Create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. That applies when an hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. The present control instead requires the specific outcome: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
B:This is proof for a different safeguard: Use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. That applies when a deployment workflow stores source database passwords as plaintext environment variables in CI logs. The present control instead requires the specific outcome: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
D:This is proof for a different safeguard: Use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. That applies when a scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The present control instead requires the specific outcome: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
Question 507
A production data pipeline has this problem: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. Which solution MOST directly corrects it?
- Plan location-compatible sharing and approved export paths before publishing the subscription.
- Publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions.
- Share an authorized aggregate view or published derived table instead of granting source table access.
- Publish masked or tokenized fields and explicitly authorize any permitted unmasked roles.
Explanation
Correct Answer
A:The appropriate design is to plan location-compatible sharing and approved export paths before publishing the subscription. This addresses the exact constraint: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. The underlying principle is that data sharing must account for geographic processing and storage constraints on both producer and consumer sides. If omitted, a convenient cross-region copy may violate residency terms or incur avoidable transfer charges. A direct acceptance test is: A location audit of subscriber access and any copies confirms that all created assets are in permitted regions.
Incorrect Answers
B:This action fits a separate situation: A data producer wants to distribute governed BigQuery datasets to partner companies without copying full tables into each partner project. There it would make sense to publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions. It does not resolve this case, in which a customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. The needed control is to plan location-compatible sharing and approved export paths before publishing the subscription.
C:This action fits a separate situation: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. There it would make sense to share an authorized aggregate view or published derived table instead of granting source table access. It does not resolve this case, in which a customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. The needed control is to plan location-compatible sharing and approved export paths before publishing the subscription.
D:This action fits a separate situation: A dataset shared with contractors includes direct phone numbers that are not needed for their analytical report. There it would make sense to publish masked or tokenized fields and explicitly authorize any permitted unmasked roles. It does not resolve this case, in which a customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. The needed control is to plan location-compatible sharing and approved export paths before publishing the subscription.
Question 508
A data engineer recommends: Plan supported table recovery or versioned backup processes and test restoration into a controlled target. It addresses: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. What underlying principle explains the recommendation?
- Cache replication improves availability but is not a substitute for business-appropriate durable system-of-record design.
- Multi-region recovery requires dependencies as well as data to be available in the alternate location.
- Recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy.
- Messaging recovery depends on retained events, scalable draining and correct behavior under redelivery.
Explanation
Correct Answer
C:The governing principle is that recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy. It explains why the team should plan supported table recovery or versioned backup processes and test restoration into a controlled target. The current problem is: A data cleaning bug corrupts published BigQuery partitions and the team has never rehearsed a recovery procedure. Without the safeguard, a replicated bad update may spread everywhere and leave no trustworthy prior report. A suitable proof is: A drill restores the intended prior partition and reconciles its checksum against a saved reference.
Incorrect Answers
A:That principle applies primarily to a different design condition: 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. There the relevant engineering response is to keep an authoritative durable data store and test cache failover and repopulation appropriate to cart semantics. For the given case, the controlling rationale is that recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy.
B:That principle applies primarily to a different design condition: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. There the relevant engineering response is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. For the given case, the controlling rationale is that recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy.
D:That principle applies primarily to a different design condition: A Pub/Sub subscriber is down for an hour and returns to a large backlog with events that may be delivered repeatedly. There the relevant engineering response is to preserve adequate subscription retention and implement bounded replay with stable deduplication keys. For the given case, the controlling rationale is that recovery from logical data corruption requires recoverable prior data state, not only infrastructure redundancy.
Question 509
Consider a Google Cloud data engineering design: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. What action BEST meets the stated constraint?
- Design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior.
- Assign a dedicated ingestion service account with source-specific access and only required destination permissions.
- Agree a versioned event schema and producer contract, including compatibility and error-handling policy.
- Define immutable business event IDs and a deduplication boundary in the consumer and output design.
Explanation
Correct Answer
D:The appropriate design is to define immutable business event IDs and a deduplication boundary in the consumer and output design. This addresses the exact constraint: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The underlying principle is that transport acknowledgments are not a substitute for business-level idempotence across producer retries. If omitted, duplicated invoice events can lead to double counting or repeated external billing side effects. A direct acceptance test is: Publishing an identical business ID twice results in one accepted financial record after processing.
Incorrect Answers
A:This action fits a separate situation: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. There it would make sense to design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. It does not resolve this case, in which a billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The needed control is to define immutable business event IDs and a deduplication boundary in the consumer and output design.
B:This action fits a separate situation: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. There it would make sense to assign a dedicated ingestion service account with source-specific access and only required destination permissions. It does not resolve this case, in which a billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The needed control is to define immutable business event IDs and a deduplication boundary in the consumer and output design.
C:This action fits a separate situation: Two upstream teams publish JSON with different values and types for the same field called transaction_id. There it would make sense to agree a versioned event schema and producer contract, including compatibility and error-handling policy. It does not resolve this case, in which a billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The needed control is to define immutable business event IDs and a deduplication boundary in the consumer and output design.
Question 510
The engineering team ignores the recommended change: Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. The current state is: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. What is the greatest specific exposure?
- Transient errors can double daily metrics when a job appends twice after an uncertain first outcome.
- An accessible build transcript can expose credentials granting production database access.
- Broad Editor access can turn a routine ingestion identity into a cross-project data modification risk.
- A local unreviewed edit can alter production transformations and be impossible to reproduce or revert.
Explanation
Correct Answer
C:The specific residual risk is that broad Editor access can turn a routine ingestion identity into a cross-project data modification risk. The situation is: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The missing response is to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. The engineering reason is that pipeline credentials should satisfy actual data-path requirements without opening unrelated resources. After remediation, verify: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. Its tailored control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. In the present situation the more direct exposure is that broad Editor access can turn a routine ingestion identity into a cross-project data modification risk.
B:This failure mode belongs chiefly to another situation: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. Its tailored control is to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. In the present situation the more direct exposure is that broad Editor access can turn a routine ingestion identity into a cross-project data modification risk.
D:This failure mode belongs chiefly to another situation: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. Its tailored control is to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. In the present situation the more direct exposure is that broad Editor access can turn a routine ingestion identity into a cross-project data modification risk.