Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 4
Question 30
The team accepts this control: Design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. What observable result should its acceptance test verify?
- A delayed-event test produces documented updates and meets the agreed freshness and finalization rules.
- A controlled link outage queues records and preserves expected event IDs after connection restoration.
- Contract tests reject the incompatible event and preserve a readable diagnostic of the rejected payload.
- A missing pricing artifact blocks the dependent transform while reporting the unmet prerequisite.
Explanation
Correct Answer
B:This is the decisive test result: A controlled link outage queues records and preserves expected event IDs after connection restoration. It directly validates the implementation to design reliable buffering with approved private routing, connection monitoring and controlled reconnect behavior. The underlying case is: A factory sends telemetry from an on-premises source through an unreliable connection to a private processing environment. This matters because an intermittent network path requires durable producer-side recovery and protection of transfer boundaries. Without it, network interruption can silently drop sensor measurements or force repeated full-file copies.
Incorrect Answers
A:This is proof for a different safeguard: Specify event time, acceptable lateness, freshness SLIs and correction policy before selecting triggers and sinks. That applies when an IoT team promises event-time analytics within five minutes but devices can be offline for half an hour. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.
C:This is proof for a different safeguard: Agree a versioned event schema and producer contract, including compatibility and error-handling policy. That applies when two upstream teams publish JSON with different values and types for the same field called transaction_id. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.
D:This is proof for a different safeguard: Model the upstream dependencies and readiness checks before selecting the orchestration method. That applies when a batch extract must not start its warehouse transformation until both product and pricing sources have arrived. The present control instead requires the specific outcome: A controlled link outage queues records and preserves expected event IDs after connection restoration.
Question 31
An operator has deployed the solution: Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. In the situation where a data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Which evidence BEST confirms success?
- Two runs launched from the pinned template report the intended container digest and equivalent sample output.
- A multi-line order retains every nested item and reconciles line-level sums with the source payload.
- A late-event simulation yields an early provisional pane and an expected corrected final view.
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
Explanation
Correct Answer
A:This is the decisive test result: Two runs launched from the pinned template report the intended container digest and equivalent sample output. It directly validates the implementation to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. The underlying case is: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. This matters because versioned pipeline artifacts improve reproducibility of deployment and rollback across environments. Without it, an unreviewed worker change can alter production transforms without a traceable release identifier.
Incorrect Answers
B:This is proof for a different safeguard: Parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. That applies when an API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The present control instead requires the specific outcome: Two runs launched from the pinned template report the intended container digest and equivalent sample output.
C:This is proof for a different safeguard: Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics. That applies when an operations dashboard needs an early approximate count and a later corrected count for late mobile activity. The present control instead requires the specific outcome: Two runs launched from the pinned template report the intended container digest and equivalent sample output.
D:This is proof for a different safeguard: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. That applies when a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The present control instead requires the specific outcome: Two runs launched from the pinned template report the intended container digest and equivalent sample output.
Question 32
An architect must address the following condition: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. Which approach should be selected?
- Configure appropriate Beam early and late triggers with documented accumulating or discarding pane semantics.
- Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
- Insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service.
- Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections.
Explanation
Correct Answer
B:The appropriate design is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. This addresses the exact constraint: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The underlying principle is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed. If omitted, an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards. A direct acceptance test is: A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
Incorrect Answers
A: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 a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The needed control is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
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 a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The needed control is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
D:This action fits a separate situation: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. There it would make sense to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. It does not resolve this case, in which a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The needed control is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
Question 33
The engineering team ignores the recommended change: Design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. The current state is: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. What is the greatest specific exposure?
- A confidential column can appear in a copied dataset without its required access restrictions.
- A consolidation proposal may breach sovereignty policies simply to make assets searchable.
- Independent projects may publish incompatible definitions and leave sensitive datasets unclassified.
- Broad project roles can grant unintended write access and make departmental chargeback untraceable.
Explanation
Correct Answer
C:The specific residual risk is that independent projects may publish incompatible definitions and leave sensitive datasets unclassified. The situation is: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. The missing response is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. The engineering reason is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems. After remediation, verify: An asset inventory spans both warehouse and lake sources with consistent ownership and access policy.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. Its tailored control is to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. In the present situation the more direct exposure is that independent projects may publish incompatible definitions and leave sensitive datasets unclassified.
B: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 independent projects may publish incompatible definitions and leave sensitive datasets unclassified.
D:This failure mode belongs chiefly to another situation: A company creates one Google Cloud project for every analyst and gives them broad permissions to all production datasets. Its tailored control is to define a project and dataset hierarchy separating teams, environments and shared governed assets. In the present situation the more direct exposure is that independent projects may publish incompatible definitions and leave sensitive datasets unclassified.
Question 34
The engineering team ignores the recommended change: Expose approved results using a BigQuery authorized view or supported authorized dataset configuration. The current state is: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. What is the greatest specific exposure?
- A developer test can truncate the production reporting table or modify production data unexpectedly.
- Granting base-table read permissions might leak individual invoice details not required by the audit.
- Unclassified payment fields could be copied into lower-trust analytics environments or exports.
- Granting broad project Owner access to fix the error would expose unrelated financial data and administration.
Explanation
Correct Answer
B:The specific residual risk is that granting base-table read permissions might leak individual invoice details not required by the audit. The situation is: An external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The missing response is to expose approved results using a BigQuery authorized view or supported authorized dataset configuration. The engineering reason is that authorized views can share derived information without granting consumers direct access to every referenced base table. After remediation, verify: The auditor queries the authorized view successfully but direct queries against the base table are denied.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Its tailored control is to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. In the present situation the more direct exposure is that granting base-table read permissions might leak individual invoice details not required by the audit.
C:This failure mode belongs chiefly to another situation: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. Its tailored control is to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. In the present situation the more direct exposure is that granting base-table read permissions might leak individual invoice details not required by the audit.
D:This failure mode belongs chiefly to another situation: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. Its tailored control is to grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. In the present situation the more direct exposure is that granting base-table read permissions might leak individual invoice details not required by the audit.
Question 35
Consider a Google Cloud data engineering design: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. What action BEST meets the stated constraint?
- Reorganize lake object partitions and compact small files according to query frequency and ingestion windows.
- Evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations.
- Register schemas in the lake catalog and validate evolution before promoting newly landed partitions.
- Design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
Explanation
Correct Answer
D:The appropriate design is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets. This addresses the exact constraint: Teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The underlying principle is that a shared physical lake still needs data-level access separation based on classification and consumer roles. If omitted, a marketing identity could read restricted employee records by listing the common object bucket. A direct acceptance test is: An approved analyst can read public lake partitions but is denied access to classified employee data.
Incorrect Answers
A:This action fits a separate situation: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. There it would make sense to reorganize lake object partitions and compact small files according to query frequency and ingestion windows. It does not resolve this case, in which teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The needed control is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
B:This action fits a separate situation: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. There it would make sense to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. It does not resolve this case, in which teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The needed control is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
C:This action fits a separate situation: New Parquet files arrive with type changes and analysts cannot tell why some partitions fail in BigQuery external queries. There it would make sense to register schemas in the lake catalog and validate evolution before promoting newly landed partitions. It does not resolve this case, in which teams grant broad bucket-level permissions to a data lake even though some files contain restricted HR information. The needed control is to design lake authorization using appropriate bucket, managed-table or catalog governance boundaries for sensitive datasets.
Question 36
A project declines to apply this measure: Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. It faces: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. Which consequence is MOST directly unresolved?
- An unreviewed worker change can alter production transforms without a traceable release identifier.
- An unvalidated partial file can replace a complete daily partition or produce incorrect field types.
- A self-managed long-lived cluster may create avoidable patching, scaling and availability obligations.
- An inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards.
Explanation
Correct Answer
D:The specific residual risk is that an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards. The situation is: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The missing response is to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. The engineering reason is that warehouse ingestion design should match event latency and volume rather than assuming one write method suits every feed. After remediation, verify: A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. Its tailored control is to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. In the present situation the more direct exposure is that an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards.
B:This failure mode belongs chiefly to another situation: A logistics team receives daily CSV objects and wants a large validated table load without paying for per-event streaming. Its tailored control is to use a scheduled or triggered Cloud Storage to BigQuery batch load job with explicit source schema and completion checks. In the present situation the more direct exposure is that an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards.
C:This failure mode belongs chiefly to another situation: A new streaming transformation can be implemented in either a custom Spark cluster or Dataflow with autoscaling, and operations has no cluster team. Its tailored control is to prefer a managed Dataflow streaming design when Beam semantics and service constraints match the workload. In the present situation the more direct exposure is that an inappropriate per-row ingest pattern can increase cost or delay time-sensitive dashboards.
Question 37
A pipeline team implements the measure: Use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. Which result would provide the STRONGEST operational evidence of effectiveness?
- A benchmark verifies accepted write rate, visible freshness and ingest cost against the defined requirement.
- Out-of-order test updates leave the target at the correct source version with no duplicate keys.
- A scripted late-arrival test produces the documented correction behavior and expected reconciled totals.
- A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
Explanation
Correct Answer
B:This is the decisive test result: Out-of-order test updates leave the target at the correct source version with no duplicate keys. It directly validates the implementation to use stable business keys and source version checks in an incremental MERGE or equivalent upsert design. The underlying case is: An order stream must update one BigQuery dimension row per customer while preserving the latest valid source version. This matters because upserts require handling duplicate and out-of-order updates to preserve the intended latest record. Without it, a delayed older update can overwrite a more recent customer address and corrupt reporting history.
Incorrect Answers
A:This is proof for a different safeguard: Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. That applies when a warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. The present control instead requires the specific outcome: Out-of-order test updates leave the target at the correct source version with no duplicate keys.
C:This is proof for a different safeguard: Use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. That applies when a utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. The present control instead requires the specific outcome: Out-of-order test updates leave the target at the correct source version with no duplicate keys.
D:This is proof for a different safeguard: Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. That applies when a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The present control instead requires the specific outcome: Out-of-order test updates leave the target at the correct source version with no duplicate keys.
Question 38
A production data pipeline has this problem: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. Which solution MOST directly corrects it?
- Use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks.
- Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries.
- Create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
- Assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions.
Explanation
Correct Answer
D:The appropriate design is to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions. This addresses the exact constraint: A newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The underlying principle is that pipeline credentials should satisfy actual data-path requirements without opening unrelated resources. If omitted, broad Editor access can turn a routine ingestion identity into a cross-project data modification risk. A direct acceptance test is: The pipeline reads approved objects and writes its designated table but is denied access to unrelated resources.
Incorrect Answers
A:This action fits a separate situation: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. There it would make sense to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. It does not resolve this case, in which a newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The needed control is to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions.
B: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 newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The needed control is to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions.
C:This action fits a separate situation: An hourly ingestion job and daily enrichment job run independently and enrichment sometimes reads half-completed hourly partitions. There it would make sense to create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries. It does not resolve this case, in which a newly deployed pipeline service account cannot read its source bucket, so operators grant it project Editor. The needed control is to assign source-specific Storage and target-specific warehouse IAM roles with no unnecessary project-wide permissions.
Question 39
An operator has deployed the solution: Separate development and production data resources and authorize deploy-only service accounts for guarded promotion. In the situation where developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. Which evidence BEST confirms success?
- A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
- The auditor queries the authorized view successfully but direct queries against the base table are denied.
- A development identity can write to test datasets but cannot modify production tables without approved promotion.
- A support account queries approved totals but receives denial when selecting the restricted identity column.
Explanation
Correct Answer
C:This is the decisive test result: A development identity can write to test datasets but cannot modify production tables without approved promotion. It directly validates the implementation to separate development and production data resources and authorize deploy-only service accounts for guarded promotion. The underlying case is: Developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. This matters because environment isolation reduces accidental cross-environment writes and limits the impact of development credentials. Without it, a developer test can truncate the production reporting table or modify production data unexpectedly.
Incorrect Answers
A:This is proof for a different safeguard: Create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. That applies when a multinational organization must keep European patient datasets in an approved European location during processing and storage. The present control instead requires the specific outcome: A development identity can write to test datasets but cannot modify production tables without approved promotion.
B:This is proof for a different safeguard: Expose approved results using a BigQuery authorized view or supported authorized dataset configuration. That applies when an external auditor needs a narrow view of invoice totals but cannot receive permissions on all underlying finance tables. The present control instead requires the specific outcome: A development identity can write to test datasets but cannot modify production tables without approved promotion.
D:This is proof for a different safeguard: Apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. That applies when a customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. The present control instead requires the specific outcome: A development identity can write to test datasets but cannot modify production tables without approved promotion.
Question 40
A data engineer recommends: Use incremental partition-aware transformations and recompute only the required correction horizon. It addresses: A warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. What underlying principle explains the recommendation?
- A clear analytical grain and consistent dimensions prevent ambiguous joins and conflicting aggregate definitions.
- Incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known.
- Partition pruning reduces BigQuery bytes scanned when filters select the partitioning column.
- Historical attribute reporting requires preserving versions and nonoverlapping validity intervals for entities.
Explanation
Correct Answer
B:The governing principle is that incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known. It explains why the team should use incremental partition-aware transformations and recompute only the required correction horizon. The current problem is: A warehouse refresh overwrites every partition each morning although only yesterday and today's events can change. Without the safeguard, full historical rewrites waste query resources and can disrupt long-term retention calculations. A suitable proof is: A backfill modifies only the expected partitions and produces the same approved totals as a full reference build.
Incorrect Answers
A:That principle applies primarily to a different design condition: Sales leadership needs reproducible regional revenue and product category measures across many dashboards. There the relevant engineering response is to model conformed dimensions and a documented fact table grain before creating reporting views. For the given case, the controlling rationale is that incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known.
C:That principle applies primarily to a different design condition: A BigQuery order table receives years of events and almost every dashboard filters by the business transaction date. There the relevant engineering response is to partition the table on an appropriate event-date field and enforce qualifying partition filters. For the given case, the controlling rationale is that incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known.
D:That principle applies primarily to a different design condition: The warehouse must retain history of customer segment changes rather than overwrite the dimension when a new label arrives. There the relevant engineering response is to implement a type-2 slowly changing dimension model with effective intervals and controlled MERGE transitions. For the given case, the controlling rationale is that incremental refresh reduces unnecessary processing when late data behavior and affected partitions are known.