Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 41
Question 400
The team is considering: Monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. The context is: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. Which engineering principle is MOST relevant?
- A job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
- Permission failures require identifying the denied principal and resource rather than treating the problem as transient availability.
- Pipeline observability must expose data-quality losses as well as infrastructure job status.
- Quota failures must be distinguished from application exceptions and permission errors for correct remediation.
Explanation
Correct Answer
A:The governing principle is that a job's RUNNING state does not guarantee the pipeline is keeping up with its data source. It explains why the team should monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. The current problem is: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. Without the safeguard, business reports can lag for hours without a failed worker or visible red job status. A suitable proof is: An injected sustained backlog crosses the lag threshold and pages the named owner.
Incorrect Answers
B:That principle applies primarily to a different design condition: A warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. There the relevant engineering response is to inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. For the given case, the controlling rationale is that a job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
C:That principle applies primarily to a different design condition: An Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. There the relevant engineering response is to instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. For the given case, the controlling rationale is that a job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
D:That principle applies primarily to a different design condition: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There the relevant engineering response is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. For the given case, the controlling rationale is that a job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
Question 401
An operator has deployed the solution: Profile source throughput and worker utilization before changing cluster size or partition design. In the situation where an analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. Which evidence BEST confirms success?
- A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
- A timed job-based execution meets completion SLAs at lower total compute cost.
- A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
- Stage metrics show improved skew distribution and matching aggregate output after tuning.
Explanation
Correct Answer
A:This is the decisive test result: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement. It directly validates the implementation to profile source throughput and worker utilization before changing cluster size or partition design. The underlying case is: An analytical pipeline repeatedly requests more CPU workers but the Cloud Storage read path cannot supply data at the needed rate. This matters because adding compute does not solve an upstream I/O bottleneck that starves processing workers. Without it, cost rises as unused workers wait for the same restricted data access path.
Incorrect Answers
B:This is proof for a different safeguard: Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. That applies when a nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. The present control instead requires the specific outcome: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
C:This is proof for a different safeguard: Configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. That applies when petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. The present control instead requires the specific outcome: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
D:This is proof for a different safeguard: Tune joins, partition distribution and shuffle behavior before purchasing additional workers. That applies when a Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. The present control instead requires the specific outcome: A benchmark identifies the limiting storage rate and verifies an approved input-layout or prefetch improvement.
Question 402
The team is considering: Publish a reviewed metric contract defining event eligibility, time windows and entity grain. The context is: Data scientists and operations teams each call a customer active using incompatible event definitions. Which engineering principle is MOST relevant?
- Consistent metric definitions are required to compare results across dashboards and analytical teams.
- BI access design should constrain data at its governed source rather than trusting only frontend filters.
- Business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics.
- Query pushdown reduces client-side data transfer and takes advantage of warehouse processing capacity.
Explanation
Correct Answer
A:The governing principle is that consistent metric definitions are required to compare results across dashboards and analytical teams. It explains why the team should publish a reviewed metric contract defining event eligibility, time windows and entity grain. The current problem is: Data scientists and operations teams each call a customer active using incompatible event definitions. Without the safeguard, changes in event filtering may look like customer growth when only the calculation changed. A suitable proof is: A sampled population produces the same active-customer count through two independent approved implementations.
Incorrect Answers
B:That principle applies primarily to a different design condition: A departmental dashboard needs only its own region's customer aggregate but currently reads a raw global customer table. There the relevant engineering response is to serve the dashboard through authorized, row-restricted or aggregated BigQuery views appropriate to the audience. For the given case, the controlling rationale is that consistent metric definitions are required to compare results across dashboards and analytical teams.
C:That principle applies primarily to a different design condition: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. There the relevant engineering response is to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. For the given case, the controlling rationale is that consistent metric definitions are required to compare results across dashboards and analytical teams.
D:That principle applies primarily to a different design condition: A BI connector downloads millions of warehouse records to a local spreadsheet before applying simple filters. There the relevant engineering response is to push supported filtering and aggregation into BigQuery and return only required summarized columns. For the given case, the controlling rationale is that consistent metric definitions are required to compare results across dashboards and analytical teams.
Question 403
A production review examines this scenario: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. The team adopts: Correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. Which test BEST establishes the control works?
- A diagnostic run identifies the missing narrowly scoped permission and succeeds after targeted correction.
- A deliberately failed extract produces a timely alert with job ID and the responsible on-call group.
- A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric.
- An invalid-input injection increments the rejected count and creates a retrievable quarantine record.
Explanation
Correct Answer
C:This is the decisive test result: A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric. It directly validates the implementation to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. The underlying case is: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. This matters because quota failures must be distinguished from application exceptions and permission errors for correct remediation. Without it, repeated blind retries can amplify cost and never increase allowed service capacity.
Incorrect Answers
A:This is proof for a different safeguard: Inspect the relevant Cloud Audit Logs, job error details and effective IAM permissions for each resource. That applies when a warehouse export returns HTTP 403 and an engineer repeatedly restarts it without checking source and sink identities. The present control instead requires the specific outcome: A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric.
B:This is proof for a different safeguard: Route structured Cloud Logging errors into an alert and owned incident response workflow. That applies when a BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. The present control instead requires the specific outcome: A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric.
D:This is proof for a different safeguard: Instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. That applies when an Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. The present control instead requires the specific outcome: A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric.
Question 404
A project declines to apply this measure: Design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. It faces: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. Which consequence is MOST directly unresolved?
- A replicated bad update may spread everywhere and leave no trustworthy prior report.
- An application can remain offline although replacement database capacity exists in another zone.
- A transient worker failure can double daily customer counts while every task eventually finishes.
- A replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
Explanation
Correct Answer
D:The specific residual risk is that a replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery. The situation is: A regulated analytics service must continue after a regional outage but all required staging and orchestration resources reside in one region. The missing response is to design a region-appropriate disaster recovery path with data replication, independent processing configuration and tested failover. The engineering reason is that multi-region recovery requires dependencies as well as data to be available in the alternate location. After remediation, verify: A regional outage rehearsal starts essential workloads in the approved alternate region within targets.
Incorrect Answers
A: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 a replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
B:This failure mode belongs chiefly to another situation: A critical Cloud SQL database needs service continuity when its primary zone fails unexpectedly. Its tailored control is to select supported Cloud SQL high availability or failover design and validate application reconnection behavior. In the present situation the more direct exposure is that a replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
C: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 a replicated dataset can remain unusable if IAM, network routes or pipeline orchestrators are absent in recovery.
Question 405
A release reviewer must approve a complete control-and-verification plan for this case: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. Which paired action and acceptance test BEST meets the requirement?
- Action: Introduce schema and business-rule validation with quarantined records and explicit correction procedures. Evidence: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
- Action: Coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. Evidence: Counts, sampled checksums and source change positions reconcile at a documented consistency point.
- Action: Validate critical fields, expected uniqueness and population-level reconciliation before publication. Evidence: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
- Action: Design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. Evidence: Processing the same input batch twice produces exactly one row per business order in the target.
Explanation
Correct Answer
A:The paired response correctly combines the required intervention and its acceptance check: Introduce schema and business-rule validation with quarantined records and explicit correction procedures. Then a test transaction lacking its currency code is quarantined and cannot alter published revenue totals. The pair addresses: A merchant ingestion pipeline silently converts missing currency codes to dollars before data reaches an audited finance report. It follows the principle that input quality gates prevent plausible but wrong values from silently contaminating downstream financial aggregates. Otherwise, wrong-currency revenue can look internally consistent and remain undiscovered until reconciliation fails.
Incorrect Answers
B:This pair would fit the separate case where a database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. The current problem requires the intervention to introduce schema and business-rule validation with quarantined records and explicit correction procedures. and independently demonstrating: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
C:This pair would fit the separate case where an ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. The current problem requires the intervention to introduce schema and business-rule validation with quarantined records and explicit correction procedures. and independently demonstrating: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
D:This pair would fit the separate case where a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The current problem requires the intervention to introduce schema and business-rule validation with quarantined records and explicit correction procedures. and independently demonstrating: A test transaction lacking its currency code is quarantined and cannot alter published revenue totals.
Question 406
An operator has deployed the solution: Set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. In the situation where a risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. Which evidence BEST confirms success?
- Counts, sampled checksums and source change positions reconcile at a documented consistency point.
- A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
- Repeated delivery of one payment event results in one durable charge and one settlement reference.
- Processing the same input batch twice produces exactly one row per business order in the target.
Explanation
Correct Answer
B:This is the decisive test result: A timed restoration test demonstrates accepted recovery point and service-readiness objectives. It directly validates the implementation to set explicit recovery targets and rehearse backup restoration, connectivity and dependent pipeline startup. The underlying case is: A risk team claims disaster recovery readiness because Cloud SQL backups exist but nobody has tested a production-like restore. This matters because backup possession is not evidence that restoration will meet recovery-time and data-loss requirements. Without it, the database may prove unrecoverable or too slow to restore when a real regional disruption occurs.
Incorrect Answers
A: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: A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
C:This is proof for a different safeguard: Choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. That applies when a payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. The present control instead requires the specific outcome: A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
D:This is proof for a different safeguard: Design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. That applies when a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The present control instead requires the specific outcome: A timed restoration test demonstrates accepted recovery point and service-readiness objectives.
Question 407
Consider a Google Cloud data engineering design: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. What action BEST meets the stated constraint?
- Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections.
- Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics.
- Insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service.
- Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
Explanation
Correct Answer
A:The appropriate design is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. This addresses the exact constraint: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The underlying principle is that privacy transformations need to operate before data crosses into a broadly accessible destination. If omitted, downstream users can query protected fields if raw payloads are copied directly into the shared warehouse. A direct acceptance test is: A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
Incorrect Answers
B:This action fits a separate situation: An operations dashboard needs an early approximate count and a later corrected count for late mobile activity. There it would make sense to configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. It does not resolve this case, in which an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The needed control is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections.
C:This action fits a separate situation: A pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. There it would make sense to insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. It does not resolve this case, in which an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The needed control is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections.
D: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 an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The needed control is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections.
Question 408
A data platform team encounters this requirement: A migration copies large databases over a public route that violates internal network isolation requirements. Which implementation is MOST appropriate?
- Run parallel output validation and reconcile critical business totals by period before final switching.
- Choose supported private connectivity and route throughput tests before bulk migration begins.
- Inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration.
- Evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs.
Explanation
Correct Answer
B:The appropriate design is to choose supported private connectivity and route throughput tests before bulk migration begins. This addresses the exact constraint: A migration copies large databases over a public route that violates internal network isolation requirements. The underlying principle is that migration networking must satisfy data protection requirements and enough sustained bandwidth to meet cutover timing. If omitted, a public or underprovisioned transfer path can expose data and extend the migration beyond the agreed window. A direct acceptance test is: The transfer runs over the approved private path and measured throughput meets the migration plan.
Incorrect Answers
A:This action fits a separate situation: A retailer plans to cut over an enterprise data warehouse without comparing newly computed revenue metrics to the old system. There it would make sense to run parallel output validation and reconcile critical business totals by period before final switching. It does not resolve this case, in which a migration copies large databases over a public route that violates internal network isolation requirements. The needed control is to choose supported private connectivity and route throughput tests before bulk migration begins.
C:This action fits a separate situation: A bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. There it would make sense to inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. It does not resolve this case, in which a migration copies large databases over a public route that violates internal network isolation requirements. The needed control is to choose supported private connectivity and route throughput tests before bulk migration begins.
D:This action fits a separate situation: An isolated factory has petabytes of archived training images but insufficient WAN bandwidth for its migration deadline. There it would make sense to evaluate Transfer Appliance or a supported bulk data migration method against transfer duration and security needs. It does not resolve this case, in which a migration copies large databases over a public route that violates internal network isolation requirements. The needed control is to choose supported private connectivity and route throughput tests before bulk migration begins.
Question 409
An architecture proposal calls for: Apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. In this case: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Which rationale MOST strongly supports the choice?
- Column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
- Authorized views can share derived information without granting consumers direct access to every referenced base table.
- Environment isolation reduces accidental cross-environment writes and limits the impact of development credentials.
- Preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
Explanation
Correct Answer
A:The governing principle is that column-level authorization can permit useful analytical fields while preventing access to sensitive columns. It explains why the team should apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. The current problem is: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. Without the safeguard, giving dashboard users all columns could expose regulated identity information to an unauthorized team. A suitable proof is: A support account queries approved totals but receives denial when selecting the restricted identity column.
Incorrect Answers
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 column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
C:That principle applies primarily to a different design condition: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. There the relevant engineering response is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. For the given case, the controlling rationale is that column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
D:That principle applies primarily to a different design condition: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. There the relevant engineering response is to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. For the given case, the controlling rationale is that column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
Question 410
An architect must address the following condition: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. Which approach should be selected?
- Store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
- Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
- Evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design.
- Use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
Explanation
Correct Answer
B:The appropriate design is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. This addresses the exact constraint: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The underlying principle is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes. If omitted, stale cached prices can reach customers if invalidation and expiration are not defined. A direct acceptance test is: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Incorrect Answers
A:This action fits a separate situation: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. There it would make sense to store the objects in Cloud Storage with an appropriate storage class, retention and access policy. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
C:This action fits a separate situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There it would make sense to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
D:This action fits a separate situation: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. There it would make sense to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.