Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 50
Question 490
The team is considering: Require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. The context is: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. Which engineering principle is MOST relevant?
- Data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output.
- A processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems.
- AI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
- Fault tolerance requires coordinated recovery of source position and processing state after interruption.
Explanation
Correct Answer
C:The governing principle is that aI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls. It explains why the team should require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. The current problem is: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. Without the safeguard, a generated query may join restricted tables or produce invalid financial totals with a plausible narrative. A suitable proof is: An intentionally unauthorized generated statement is blocked and a known result is checked against a verified baseline.
Incorrect Answers
A:That principle applies primarily to a different design condition: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. There the relevant engineering response is to validate critical fields, expected uniqueness and population-level reconciliation before publication. For the given case, the controlling rationale is that aI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
B:That principle applies primarily to a different design condition: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. There the relevant engineering response is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. For the given case, the controlling rationale is that aI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
D:That principle applies primarily to a different design condition: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. There the relevant engineering response is to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. For the given case, the controlling rationale is that aI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
Question 491
An architect must address the following condition: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. Which approach should be selected?
- Manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets.
- Publish a controlled data exchange or BigQuery sharing listing with approved subscriber permissions.
- Plan location-compatible sharing and approved export paths before publishing the subscription.
- Use dashboard access controls and approved report embedding or sharing settings tied to data permissions.
Explanation
Correct Answer
A:The appropriate design is to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets. This addresses the exact constraint: A provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. The underlying principle is that shared data is an API-like dependency whose breaking changes require controlled communication. If omitted, a dropped column can break third-party daily reports without the provider noticing. A direct acceptance test is: A breaking-change test blocks publication until dependent consumers acknowledge or migrate.
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 provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. The needed control is to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets.
C:This action fits a separate situation: A customer in a restricted region cannot receive its shared export in a dataset hosted outside the authorized jurisdiction. There it would make sense to plan location-compatible sharing and approved export paths before publishing the subscription. It does not resolve this case, in which a provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. The needed control is to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets.
D:This action fits a separate situation: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. There it would make sense to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. It does not resolve this case, in which a provider changes the schema of a shared BigQuery product and consumer pipelines begin failing without prior notice. The needed control is to manage published schema contracts, compatibility tests and communicated deprecation windows for shared assets.
Question 492
The proposed safeguard is not implemented: Share an authorized aggregate view or published derived table instead of granting source table access. The data platform currently faces: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. What direct risk remains?
- A partner can enumerate another partner's territory if access is controlled only in a client application.
- A forwarded URL can reveal unreleased forecasts if embedded credentials or public link settings bypass access controls.
- The outside contractor may retain sensitive access months after the project ends.
- Broad read access exposes invoice detail that is outside the contractual reporting purpose.
Explanation
Correct Answer
D:The specific residual risk is that broad read access exposes invoice detail that is outside the contractual reporting purpose. The situation is: A vendor may see only monthly invoice summaries, but the source table contains individual customer amounts and IDs. The missing response is to share an authorized aggregate view or published derived table instead of granting source table access. The engineering reason is that least-privilege data sharing should disclose only the result required by the external consumer. After remediation, verify: A vendor query succeeds on the approved summary and fails on the raw invoice table.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A shared regional sales feed is published to partners, but each partner should see only its contractually assigned territory. Its tailored control is to enforce partner-specific row access policies or separately governed audience views at the source. In the present situation the more direct exposure is that broad read access exposes invoice detail that is outside the contractual reporting purpose.
B:This failure mode belongs chiefly to another situation: An internal dashboard is broadly linked through a chat message although the underlying records contain confidential business forecasts. Its tailored control is to use dashboard access controls and approved report embedding or sharing settings tied to data permissions. In the present situation the more direct exposure is that broad read access exposes invoice detail that is outside the contractual reporting purpose.
C:This failure mode belongs chiefly to another situation: A temporary outside research contract should grant access to one dataset for thirty days, not indefinitely. Its tailored control is to issue time-bounded governed access and automate revocation or periodic review of the sharing entitlement. In the present situation the more direct exposure is that broad read access exposes invoice detail that is outside the contractual reporting purpose.
Question 493
The proposed safeguard is not implemented: Assign a dedicated ingestion service account with source-specific access and only required destination permissions. The data platform currently faces: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. What direct risk remains?
- Running transforms against partially uploaded files may publish incomplete revenue reports.
- A producer release can break consumers when numeric IDs replace previously used strings.
- Unmasked customer identifiers may leave the authorized processing boundary and create disclosure risk.
- A departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets.
Explanation
Correct Answer
D:The specific residual risk is that a departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets. The situation is: A new SaaS connector runs with developer credentials rather than a dedicated service identity during scheduled imports. The missing response is to assign a dedicated ingestion service account with source-specific access and only required destination permissions. The engineering reason is that pipeline identity should separate automated data acquisition from personal user credentials and limit source access. After remediation, verify: A scheduled test import succeeds under the workload identity and fails when requesting unrelated datasets.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A partner drops compressed sales files every midnight and the warehouse needs one validated daily snapshot. Its tailored control is to plan a Cloud Storage landing path with object notifications or a batch schedule and atomic publish of validated results. In the present situation the more direct exposure is that a departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets.
B:This failure mode belongs chiefly to another situation: Two upstream teams publish JSON with different values and types for the same field called transaction_id. Its tailored control is to agree a versioned event schema and producer contract, including compatibility and error-handling policy. In the present situation the more direct exposure is that a departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets.
C:This failure mode belongs chiefly to another situation: A third-party supplier proposes sending customer PII to a general-purpose enrichment API before anonymization. Its tailored control is to plan an approved de-identification stage and data-contract checks before external enrichment requests. In the present situation the more direct exposure is that a departing engineer's revoked credentials can halt imports or leaked tokens can expose unrelated datasets.
Question 494
The design review proposes the following action: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. The triggering condition is: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. Which technical principle BEST justifies it?
- Preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
- Customer-managed encryption protects stored data only when approved services retain correct key access throughout the key lifecycle.
- Regulatory retention must be implemented as governed lifecycle policy rather than informal operator recollection.
- Authorized views can share derived information without granting consumers direct access to every referenced base table.
Explanation
Correct Answer
A:The governing principle is that preventive organization controls enforce placement rules even when individual project owners deploy valid templates. It explains why the team should apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. The current problem is: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. Without the safeguard, a misconfigured pipeline can create a persistent dataset outside the company's permitted geographic boundary. A suitable proof is: A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
Incorrect Answers
B:That principle applies primarily to a different design condition: A healthcare dataset uses a customer-managed encryption key that the analytics service account cannot use after key permissions change. There the relevant engineering response is to configure supported Cloud KMS permissions for the relevant BigQuery encryption service identity and test key rotation procedures. For the given case, the controlling rationale is that preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
C:That principle applies primarily to a different design condition: A data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. There the relevant engineering response is to apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. For the given case, the controlling rationale is that preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
D: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 preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
Question 495
The proposed safeguard is not implemented: Capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. The data platform currently faces: A regulated analytics program cannot trace its report fields through source systems after an audit query. What direct risk remains?
- 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.
- Independent projects may publish incompatible definitions and leave sensitive datasets unclassified.
- Teams can interpret the same customer classification differently and leak restricted fields to consumers.
Explanation
Correct Answer
B:The specific residual risk is that without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report. The situation is: A regulated analytics program cannot trace its report fields through source systems after an audit query. The missing response is to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. The engineering reason is that data platform traceability requires connecting source lineage and transformations to final published data products. After remediation, verify: A sampled report metric resolves through the registered lineage graph to source records and transformations.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. Its tailored control is to use federated catalog discovery and region-aware access patterns while retaining approved storage locations. In the present situation the more direct exposure is that without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
C:This failure mode belongs chiefly to another situation: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. Its tailored control is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. In the present situation the more direct exposure is that without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
D:This failure mode belongs chiefly to another situation: Business units own their data products but the central platform team must enforce consistent privacy rules. Its tailored control is to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. In the present situation the more direct exposure is that without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
Question 496
The proposed safeguard is not implemented: Decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. The data platform currently faces: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. What direct risk remains?
- A rigid initial design may exceed throughput limits as traffic and historical data volume increase.
- Embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
- A newly added optional field can cause rejected records or unintended null-filled analytics.
- Departments may pay to ingest conflicting copies of the same data and publish inconsistent definitions.
Explanation
Correct Answer
B:The specific residual risk is that embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive. The situation is: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. The missing response is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. The engineering reason is that loose coupling limits replacement costs when data processing systems evolve independently. After remediation, verify: A consumer test reads an equivalent published contract from the replacement backend without changing business logic.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. Its tailored control is to model future event volume, latency and retention tiers before fixing component and partitioning choices. In the present situation the more direct exposure is that embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
C:This failure mode belongs chiefly to another situation: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. Its tailored control is to use documented schema evolution and compatibility checks with an explicit canonical representation. In the present situation the more direct exposure is that embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
D:This failure mode belongs chiefly to another situation: Several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. Its tailored control is to register approved assets in a searchable catalog with owners, descriptions and lineage references. In the present situation the more direct exposure is that embedding engine-specific query assumptions in every downstream service can make platform replacement disruptive.
Question 497
A production data pipeline has this problem: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. Which solution MOST directly corrects it?
- Keep protected raw data and publish separately validated curated datasets with explicit lineage references.
- Reorganize lake object partitions and compact small files according to query frequency and ingestion windows.
- Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
- Publish lake metadata, ownership and lineage into the approved catalog with regular quality checks.
Explanation
Correct Answer
B:The appropriate design is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows. This addresses the exact constraint: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The underlying principle is that data-lake scan cost and latency depend on reasonable file sizes and partition path design. If omitted, object listing and opening overhead may dominate actual data scan time. A direct acceptance test is: A compaction benchmark reduces object count and metadata latency while preserving row counts.
Incorrect Answers
A:This action fits a separate situation: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. There it would make sense to keep protected raw data and publish separately validated curated datasets with explicit lineage references. It does not resolve this case, in which an S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The needed control is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows.
C:This action fits a separate situation: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. There it would make sense to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. It does not resolve this case, in which an S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The needed control is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows.
D:This action fits a separate situation: Object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. There it would make sense to publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. It does not resolve this case, in which an S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The needed control is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows.
Question 498
An architecture proposal calls for: Model peak event rate, retained backlog and downstream throughput for the planned pipeline stages. In this case: A marketing platform predicts ten times the daily message volume during campaigns but its ingestion sizing uses average traffic. Which rationale MOST strongly supports the choice?
- Source classification should drive sink selection and retention before bulk records are ingested.
- Capacity planning must cover bursts and replay demand instead of only ordinary average throughput.
- Latency contracts must distinguish time of occurrence, arrival time and when reports are considered final.
- An intermittent network path requires durable producer-side recovery and protection of transfer boundaries.
Explanation
Correct Answer
B:The governing principle is that capacity planning must cover bursts and replay demand instead of only ordinary average throughput. It explains why the team should model peak event rate, retained backlog and downstream throughput for the planned pipeline stages. The current problem is: A marketing platform predicts ten times the daily message volume during campaigns but its ingestion sizing uses average traffic. Without the safeguard, a holiday surge can create growing subscription backlog and outdated reporting even though ordinary load works. A suitable proof is: A peak-load rehearsal drains backlog within the accepted recovery window without exceeding quotas.
Incorrect Answers
A:That principle applies primarily to a different design condition: A shared event topic mixes support recordings and aggregated click counts with very different retention and privacy obligations. There the relevant engineering response is to partition data flows by classification and define separate approved landing, expiration and access rules. For the given case, the controlling rationale is that capacity planning must cover bursts and replay demand instead of only ordinary average throughput.
C:That principle applies primarily to a different design condition: An IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. There the relevant engineering response is to specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. For the given case, the controlling rationale is that capacity planning must cover bursts and replay demand instead of only ordinary average throughput.
D:That principle applies primarily to a different design condition: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. There the relevant engineering response is to design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. For the given case, the controlling rationale is that capacity planning must cover bursts and replay demand instead of only ordinary average throughput.
Question 499
An architect must address the following condition: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. Which approach should be selected?
- Use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys.
- Apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role.
- Enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows.
- Separate development and production data resources and authorize deploy-only service accounts for guarded promotion.
Explanation
Correct Answer
C:The appropriate design is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. This addresses the exact constraint: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The underlying principle is that sensitive-data access accountability requires auditable identity and activity records with controlled retention. If omitted, a suspected export may be impossible to attribute if data-access logs are disabled or discarded. A direct acceptance test is: A controlled sensitive-table query produces a retained audit event identifying the querying principal and resource.
Incorrect Answers
A:This action fits a separate situation: A scheduled ingestion workload authenticates to Google Cloud with a long-lived service-account key embedded in a repository. There it would make sense to use managed workload identity or supported service-account impersonation with minimum privileges instead of repository-stored keys. It does not resolve this case, in which a regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The needed control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows.
B:This action fits a separate situation: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. There it would make sense to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. It does not resolve this case, in which a regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The needed control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows.
D:This action fits a separate situation: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. There it would make sense to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. It does not resolve this case, in which a regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The needed control is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows.
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.