Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 24
Question 230
An architect must address the following condition: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. Which approach should be selected?
- Build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate.
- Use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
- Manage Dataform definitions and assertions in version control with controlled compilation and workflow execution.
- Create a Cloud Composer DAG with explicit successful upstream dependencies and documented retries.
Explanation
Correct Answer
B:The appropriate design is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries. This addresses the exact constraint: A scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The underlying principle is that orchestration retries require idempotent transformation and publication boundaries. If omitted, transient errors can double daily metrics when a job appends twice after an uncertain first outcome. A direct acceptance test is: An injected retry completes with exactly one authoritative set of rows for the scheduled data interval.
Incorrect Answers
A:This action fits a separate situation: A Dataflow production job is updated manually from a developer workstation without code review or a rollback artifact. There it would make sense to build and test a versioned template in CI/CD and deploy through an approved service identity and promotion gate. It does not resolve this case, in which a scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
C:This action fits a separate situation: BigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. There it would make sense to manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. It does not resolve this case, in which a scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
D: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 scheduled analytics workflow retries an unsuccessful BigQuery load and appends the same input partition a second time. The needed control is to use stable run identifiers and replace-or-merge publication semantics that remain correct under retries.
Question 231
A data platform team encounters this requirement: Business units own their data products but the central platform team must enforce consistent privacy rules. Which implementation is MOST appropriate?
- Use federated catalog discovery and region-aware access patterns while retaining approved storage locations.
- Define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields.
- Design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions.
- Adopt federated stewardship with centrally defined data classifications and locally accountable domain owners.
Explanation
Correct Answer
D:The appropriate design is to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. This addresses the exact constraint: Business units own their data products but the central platform team must enforce consistent privacy rules. The underlying principle is that federated governance balances local data expertise with common enterprise control expectations. If omitted, teams can interpret the same customer classification differently and leak restricted fields to consumers. A direct acceptance test is: Two domain products use the same protected classification policy with named accountable stewards.
Incorrect Answers
A:This action fits a separate situation: Regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. There it would make sense to use federated catalog discovery and region-aware access patterns while retaining approved storage locations. It does not resolve this case, in which business units own their data products but the central platform team must enforce consistent privacy rules. The needed control is to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners.
B:This action fits a separate situation: A classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. There it would make sense to define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. It does not resolve this case, in which business units own their data products but the central platform team must enforce consistent privacy rules. The needed control is to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners.
C:This action fits a separate situation: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. There it would make sense to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. It does not resolve this case, in which business units own their data products but the central platform team must enforce consistent privacy rules. The needed control is to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners.
Question 232
The design review proposes the following action: Configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. The triggering condition is: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. Which technical principle BEST justifies it?
- Resource sizing should reflect stage-specific demand rather than a universal maximum or minimum worker size.
- Data processing cost and duration often depend on shuffle distribution and skew as much as raw worker count.
- Storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
- Provisioning plans must account for platform quotas and enforceable workload capacity boundaries.
Explanation
Correct Answer
C:The governing principle is that storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges. It explains why the team should configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. The current problem is: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. Without the safeguard, an unreviewed class switch can make occasional investigations costlier than projected. A suitable proof is: A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
Incorrect Answers
A:That principle applies primarily to a different design condition: A Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. There the relevant engineering response is to right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. For the given case, the controlling rationale is that storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
B:That principle applies primarily to a different design condition: A Spark workload shuffles massive intermediate data after a high-cardinality groupBy and exceeds its processing window. There the relevant engineering response is to tune joins, partition distribution and shuffle behavior before purchasing additional workers. For the given case, the controlling rationale is that storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
D:That principle applies primarily to a different design condition: An event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. There the relevant engineering response is to measure expected peak resource demand and request supported quotas or reservations before capacity expansion. For the given case, the controlling rationale is that storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges.
Question 233
The engineering team ignores the recommended change: Reorganize lake object partitions and compact small files according to query frequency and ingestion windows. The current state is: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. What is the greatest specific exposure?
- Enabling incompatible writers can expose readers to partial commits or inconsistent schema snapshots.
- Object listing and opening overhead may dominate actual data scan time.
- An upstream schema change can silently break downstream risk models with no responsible team identified.
- A mapping bug may permanently destroy the original evidence needed for a corrected backfill.
Explanation
Correct Answer
B:The specific residual risk is that object listing and opening overhead may dominate actual data scan time. The situation is: An S3-style data layout is copied to Cloud Storage with millions of tiny objects and deeply fragmented event paths. The missing response is to reorganize lake object partitions and compact small files according to query frequency and ingestion windows. The engineering reason is that data-lake scan cost and latency depend on reasonable file sizes and partition path design. After remediation, verify: A compaction benchmark reduces object count and metadata latency while preserving row counts.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A multi-engine lake team wants transactional table changes over columnar files while retaining compatibility with its query engines. Its tailored control is to evaluate a supported open table format and actual engine compatibility before enabling transactional lake operations. In the present situation the more direct exposure is that object listing and opening overhead may dominate actual data scan time.
C:This failure mode belongs chiefly to another situation: Object storage contains petabytes of data but owners cannot identify which transformations produce a widely used risk feature. Its tailored control is to publish lake metadata, ownership and lineage into the approved catalog with regular quality checks. In the present situation the more direct exposure is that object listing and opening overhead may dominate actual data scan time.
D:This failure mode belongs chiefly to another situation: A lake ingestion pipeline writes raw JSON and immediately overwrites it with normalized records in the same prefix. Its tailored control is to keep protected raw data and publish separately validated curated datasets with explicit lineage references. In the present situation the more direct exposure is that object listing and opening overhead may dominate actual data scan time.
Question 234
The proposed safeguard is not implemented: Define immutable business event IDs and a deduplication boundary in the consumer and output design. The data platform currently faces: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. What direct risk remains?
- A producer release can break consumers when numeric IDs replace previously used strings.
- Running transforms against partially uploaded files may publish incomplete revenue reports.
- Sending every event synchronously to the warehouse can create application latency and lost events during demand spikes.
- Duplicated invoice events can lead to double counting or repeated external billing side effects.
Explanation
Correct Answer
D:The specific residual risk is that duplicated invoice events can lead to double counting or repeated external billing side effects. The situation is: A billing publisher retries submissions after timeouts and cannot tell whether the same event already entered the stream. The missing response is to define immutable business event IDs and a deduplication boundary in the consumer and output design. The engineering reason is that transport acknowledgments are not a substitute for business-level idempotence across producer retries. After remediation, verify: Publishing an identical business ID twice results in one accepted financial record after processing.
Incorrect Answers
A: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 duplicated invoice events can lead to double counting or repeated external billing side effects.
B: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 duplicated invoice events can lead to double counting or repeated external billing side effects.
C:This failure mode belongs chiefly to another situation: Thousands of mobile clients send purchase events and product teams need near-real-time ingestion before asynchronous analytics. Its tailored control is to use Pub/Sub for durable event ingestion and an approved downstream streaming processor and analytical sink. In the present situation the more direct exposure is that duplicated invoice events can lead to double counting or repeated external billing side effects.
Question 235
A production review examines this scenario: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. The team adopts: Create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. Which test BEST establishes the control works?
- Boundary-time transactions reconcile to the same assigned business date in all approved reports.
- A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
- A sampled population produces the same active-customer count through two independent approved implementations.
- A supported dashboard workload records better p95 latency with the expected acceleration metrics.
Explanation
Correct Answer
B:This is the decisive test result: A cohort result matches an audited full-data reference and meets the specified dashboard response budget. It directly validates the implementation to create governed pre-aggregated cohort tables at the approved grain and schedule appropriate incremental refresh. The underlying case is: Marketing analysts need monthly cohort metrics but the raw clickstream must be joined across billions of rows on every page load. This matters because business-friendly aggregate marts avoid repeating expensive event-level calculations for stable metrics. Without it, interactive dashboards may time out while repeatedly scanning full historical event logs.
Incorrect Answers
A:This is proof for a different safeguard: Define governed date and time-zone conversion rules for consistent business reporting periods. That applies when global managers compare daily revenue using mixed UTC and local transaction-date expressions in different reports. The present control instead requires the specific outcome: A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
C:This is proof for a different safeguard: Publish a reviewed metric contract defining event eligibility, time windows and entity grain. That applies when data scientists and operations teams each call a customer active using incompatible event definitions. The present control instead requires the specific outcome: A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
D:This is proof for a different safeguard: Evaluate BI Engine acceleration with supported query patterns and appropriately sized capacity. That applies when a BI dashboard repeatedly fetches the same small set of BigQuery query results at high concurrency during meetings. The present control instead requires the specific outcome: A cohort result matches an audited full-data reference and meets the specified dashboard response budget.
Question 236
Consider a Google Cloud data engineering design: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. What action BEST meets the stated constraint?
- Use event-time Beam windows with an appropriate allowed-lateness and trigger strategy.
- Parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model.
- Prefer a managed Dataflow streaming design when Beam semantics and service constraints match the workload.
- Package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters.
Explanation
Correct Answer
B:The appropriate design is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. This addresses the exact constraint: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The underlying principle is that schema-aware parsing preserves repeated relationships that ad hoc string flattening can discard. If omitted, order totals can be understated when additional line items are lost during transformation. A direct acceptance test is: A multi-line order retains every nested item and reconciles line-level sums with the source payload.
Incorrect Answers
A:This action fits a separate situation: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. There it would make sense to use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. It does not resolve this case, in which an API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The needed control is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model.
C:This action fits a separate situation: A new streaming transformation can be implemented in either a custom Spark cluster or Dataflow with autoscaling, and operations has no cluster team. There it would make sense to prefer a managed Dataflow streaming design when Beam semantics and service constraints match the workload. It does not resolve this case, in which an API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The needed control is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model.
D:This action fits a separate situation: A data team distributes a streaming Apache Beam job by copying mutable code directly onto production workers. There it would make sense to package the job as a versioned Dataflow Flex Template with controlled container image and launch parameters. It does not resolve this case, in which an API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The needed control is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model.
Question 237
A pipeline team implements the measure: Configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. Which result would provide the STRONGEST operational evidence of effectiveness?
- A load surge increases allowed workers and backlog returns below the freshness threshold.
- A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
- A before-and-after execution shows the same business total with sharply lower bytes billed.
- Stage metrics show improved skew distribution and matching aggregate output after tuning.
Explanation
Correct Answer
B:This is the decisive test result: A simulated yearly cost model and an actual archived-object retrieval meet business assumptions. It directly validates the implementation to configure lifecycle transitions after reviewing retrieval frequency, minimum duration and recovery constraints. The underlying case is: Petabytes of historical logs stay in Standard Cloud Storage although only recent events are accessed routinely. This matters because storage-class selection trades low hot-storage cost against cold retrieval and minimum-duration charges. Without it, an unreviewed class switch can make occasional investigations costlier than projected.
Incorrect Answers
A:This is proof for a different safeguard: Tune supported Dataflow autoscaling and worker constraints against peak backlog and latency objectives. That applies when a Dataflow job falls behind during flash-sale traffic but uses fixed worker capacity sized for ordinary days. The present control instead requires the specific outcome: A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
C:This is proof for a different safeguard: Apply partition pruning and measure bytes processed before increasing compute or running frequency. That applies when a scheduled BigQuery query reads 200 TB every hour although analysts only need one day's changes. The present control instead requires the specific outcome: A simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
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 simulated yearly cost model and an actual archived-object retrieval meet business assumptions.
Question 238
A production review examines this scenario: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. The team adopts: Use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. Which test BEST establishes the control works?
- An injected 503 is retried according to policy and the final step runs only after validated success.
- A tested Dataform workflow builds dependent tables in order and blocks publication on a failing assertion.
- A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
- The scheduled invocation reaches only the protected service and a duplicate call changes no additional records.
Explanation
Correct Answer
C:This is the decisive test result: A test deployment reads the secret only in its authorized job and redacted logs contain no credential value. It directly validates the implementation to use Secret Manager or an approved secret injection mechanism with least-privilege access and log-redaction checks. The underlying case is: A deployment workflow stores source database passwords as plaintext environment variables in CI logs. This matters because pipeline release automation must treat credentials as controlled secrets rather than ordinary build parameters. Without it, an accessible build transcript can expose credentials granting production database access.
Incorrect Answers
A:This is proof for a different safeguard: Use Google Cloud Workflows for ordered service calls with conditional branching and bounded retries. That applies when a simple workflow must call three managed APIs in sequence and retry one HTTP step without administering Airflow. The present control instead requires the specific outcome: A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
B:This is proof for a different safeguard: Manage Dataform definitions and assertions in version control with controlled compilation and workflow execution. That applies when bigQuery SQL transformations are edited in the console without dependencies or environment-specific promotion controls. The present control instead requires the specific outcome: A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
D:This is proof for a different safeguard: Schedule an authenticated Cloud Scheduler invocation and make cleanup operations safe to retry. That applies when a Cloud Run data cleanup service must execute at a predictable time daily and has no intertask dependency graph. The present control instead requires the specific outcome: A test deployment reads the secret only in its authorized job and redacted logs contain no credential value.
Question 239
A production review examines this scenario: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. The team adopts: Check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. Which test BEST establishes the control works?
- The migration inventory and access logs show every staging and destination resource uses an allowed location.
- A scheduled transfer imports the expected source partition and records retry and completion status.
- Tests around daylight-saving transitions and mixed-case keys match an approved source-system oracle.
- A dry-run cutover reconciles data and records the final replication lag within the outage target.
Explanation
Correct Answer
B:This is the decisive test result: A scheduled transfer imports the expected source partition and records retry and completion status. It directly validates the implementation to check the BigQuery Data Transfer Service supported connector and configure governed scheduled transfers. The underlying case is: An organization wants scheduled imports from a supported SaaS reporting source into BigQuery without custom API polling. This matters because managed connectors simplify recurring ingest when the source and required extraction semantics are supported. Without it, a custom script may miss pagination, authentication renewal or late source corrections.
Incorrect Answers
A:This is proof for a different safeguard: Inventory source, temporary staging, transfer and target resource locations and apply residency controls before migration. That applies when a bank's data warehouse relocation includes confidential records that cannot be staged in an unapproved country. The present control instead requires the specific outcome: A scheduled transfer imports the expected source partition and records retry and completion status.
C:This is proof for a different safeguard: Map time zones, collations and data types explicitly and validate representative migration edge cases. That applies when a source database stores local timestamps and case-insensitive identifiers that BigQuery transformations interpret differently. The present control instead requires the specific outcome: A scheduled transfer imports the expected source partition and records retry and completion status.
D:This is proof for a different safeguard: Assess Database Migration Service support and an initial load plus continuous replication cutover plan. That applies when a company moves a supported transactional database to Cloud SQL and needs a short final application outage. The present control instead requires the specific outcome: A scheduled transfer imports the expected source partition and records retry and completion status.
Question 240
A production review examines this scenario: A multinational organization must keep European patient datasets in an approved European location during processing and storage. The team adopts: Create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. Which test BEST establishes the control works?
- A controlled sensitive-table query produces a retained audit event identifying the querying principal and resource.
- A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
- A retention test expires eligible records while preserving specifically protected items under approved holds.
- Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
Explanation
Correct Answer
B:This is the decisive test result: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations. It directly validates the implementation to create location-compatible datasets and jobs and enforce allowed-location governance where supported by organization policy. The underlying case is: A multinational organization must keep European patient datasets in an approved European location during processing and storage. This matters because a data sovereignty design must account for where storage and processing jobs run, not only the user's login location. Without it, creating a US-region staging table could violate residency policy even when the final report is European.
Incorrect Answers
A:This is proof for a different safeguard: Enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. That applies when a regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
C:This is proof for a different safeguard: Apply appropriate table or object expiration, retention controls and documented deletion or legal-hold exceptions. That applies when a data platform must delete regulated customer records after a defined retention period and keep a defensible exception trail. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.
D:This is proof for a different safeguard: Use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. That applies when a retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The present control instead requires the specific outcome: A location audit shows source tables, staged objects and executed processing jobs remain in approved locations.