Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 35
Question 340
The team is considering: Use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. The context is: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Which engineering principle is MOST relevant?
- A consistent snapshot and change stream must be combined without missing or double-applying source mutations.
- AI-assisted SQL generation still requires independent authorization, correctness and data-exposure controls.
- Atomic transactions protect logically related mutations from inconsistent partial execution.
- Fault tolerance requires coordinated recovery of source position and processing state after interruption.
Explanation
Correct Answer
C:The governing principle is that atomic transactions protect logically related mutations from inconsistent partial execution. It explains why the team should use a supported BigQuery multi-statement transaction for the related DML operations and test rollback behavior. The current problem is: A BigQuery script updates inventory reservations and account ledgers but can leave one table updated if a later statement fails. Without the safeguard, inventory may be decremented without the corresponding ledger entry when the second update fails. A suitable proof is: An injected error rolls back both intended table changes and leaves balances consistent.
Incorrect Answers
A:That principle applies primarily to a different design condition: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. There the relevant engineering response is to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. For the given case, the controlling rationale is that atomic transactions protect logically related mutations from inconsistent partial execution.
B:That principle applies primarily to a different design condition: Analysts paste a confidential schema into an LLM and execute its generated BigQuery SQL without review or access checks. There the relevant engineering response is to require approved prompting boundaries and dry runs or validation of generated queries under least-privilege identities. For the given case, the controlling rationale is that atomic transactions protect logically related mutations from inconsistent partial execution.
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 atomic transactions protect logically related mutations from inconsistent partial execution.
Question 341
An architect must address the following condition: A high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. Which approach should be selected?
- Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
- Compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets.
- Introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy.
- Use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate.
Explanation
Correct Answer
B:The appropriate design is to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets. This addresses the exact constraint: A high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. The underlying principle is that object layout and file size influence metadata overhead and scan efficiency in analytical engines. If omitted, excess small files can overwhelm listing operations and degrade batch query performance. A direct acceptance test is: A compaction rehearsal lowers file counts and scan time without changing row counts or partition boundaries.
Incorrect Answers
A:This action fits a separate situation: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. There it would make sense to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. It does not resolve this case, in which a high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. The needed control is to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets.
C:This action fits a separate situation: A JSON event producer adds nested optional fields and several records fail parsing without any retained diagnostics. There it would make sense to introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy. It does not resolve this case, in which a high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. The needed control is to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets.
D:This action fits a separate situation: A company needs one transformation pipeline for daily archive files and live events with the same business rules. There it would make sense to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. It does not resolve this case, in which a high-volume clickstream is stored as thousands of tiny daily Parquet objects and processing spends more time listing files than scanning data. The needed control is to compact approved object groups and use deliberate partition paths and file-size controls for columnar datasets.
Question 342
A data platform team encounters this requirement: A high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. Which implementation is MOST appropriate?
- Assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements.
- Evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design.
- Apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers.
- Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
Explanation
Correct Answer
A:The appropriate design is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements. This addresses the exact constraint: A high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. The underlying principle is that alloyDB targets demanding PostgreSQL-compatible operational workloads while retaining managed database practices. If omitted, choosing a mismatched storage engine may force unnecessary SQL rewrites and fail performance targets. A direct acceptance test is: A representative PostgreSQL transaction workload completes within target latency after compatibility testing.
Incorrect Answers
B:This action fits a separate situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There it would make sense to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. It does not resolve this case, in which a high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. The needed control is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements.
C:This action fits a separate situation: A startup stores two years of logs at high storage cost although only one month is used interactively. There it would make sense to apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers. It does not resolve this case, in which a high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. The needed control is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements.
D:This action fits a separate situation: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. There it would make sense to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. It does not resolve this case, in which a high-throughput application already depends on PostgreSQL features but needs greater managed performance for complex transactional queries. The needed control is to assess AlloyDB for PostgreSQL against compatibility, throughput and operational requirements.
Question 343
A production review examines this scenario: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. The team adopts: Select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. Which test BEST establishes the control works?
- A test event with synthetic PII is published with permitted fields only and no sensitive sink leakage.
- Injected sensitive tickets have identifiers removed and invalid enrichment results are quarantined.
- A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
- A multi-line order retains every nested item and reconciles line-level sums with the source payload.
Explanation
Correct Answer
C:This is the decisive test result: A planned connector restart preserves source-offset reconciliation and the expected target record inventory. It directly validates the implementation to select a supported Kafka-to-Dataflow or compatible connector and plan offsets, schema handling and replay. The underlying case is: A business maintains Apache Kafka producers and wants to connect their events to analytics without changing producer semantics. This matters because kafka integration requires consistent consumption positions, error handling and sink identity across restarts. Without it, a restarted connector may replay records or miss a partition if offsets are not managed correctly.
Incorrect Answers
A:This is proof for a different safeguard: Apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. That applies when an event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. The present control instead requires the specific outcome: A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
B:This is proof for a different safeguard: Insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. That applies when a pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. The present control instead requires the specific outcome: A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
D: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: A planned connector restart preserves source-offset reconciliation and the expected target record inventory.
Question 344
An organization does not implement the safeguard: Design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. In the following situation, a pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. Which failure is MOST likely?
- Workers may restart cleanly while an interval of sensor events is permanently omitted.
- The target may silently omit rows modified during the transition from bulk copy to streaming replication.
- A retry can charge a customer twice when an external sink lacks deduplication.
- An automatic retry can inflate daily revenue despite a successful retry status.
Explanation
Correct Answer
D:The specific residual risk is that an automatic retry can inflate daily revenue despite a successful retry status. The situation is: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. The missing response is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. The engineering reason is that replay safety depends on preserving business identity and enforcing idempotence at durable outputs. After remediation, verify: Processing the same input batch twice produces exactly one row per business order in the target.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A streaming sensor pipeline has no checkpoint or progress tracking and loses messages when its worker pool restarts. Its tailored control is to select recoverable source and processing offsets and validate checkpoint or replay behavior for the managed pipeline. In the present situation the more direct exposure is that an automatic retry can inflate daily revenue despite a successful retry status.
B:This failure mode belongs chiefly to another situation: A database migration begins change-data capture before a consistent baseline and cannot prove its target is complete. Its tailored control is to coordinate a consistent initial snapshot with captured changes and reconcile boundaries before cutover. In the present situation the more direct exposure is that an automatic retry can inflate daily revenue despite a successful retry status.
C:This failure mode belongs chiefly to another situation: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. Its tailored control is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. In the present situation the more direct exposure is that an automatic retry can inflate daily revenue despite a successful retry status.
Question 345
The engineering team ignores the recommended change: Evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. The current state is: A data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. What is the greatest specific exposure?
- Assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
- New tablets may not balance load while all recent events target the same row-key range.
- Moving data blindly to the cheapest class can make required investigations costly or too slow.
- Using a batch warehouse query for every mobile read can cause unacceptable user-facing latency.
Explanation
Correct Answer
A:The specific residual risk is that assuming external tables always match native storage performance can produce slow queries and unexpected scan costs. The situation is: A data lake stores governed Parquet objects in Cloud Storage and analysts want SQL access without copying every file into native tables. The missing response is to evaluate supported BigLake or BigQuery external-table access with compatible governance and performance testing. The engineering reason is that lake-based SQL access can query external files while preserving separately managed storage and access boundaries. After remediation, verify: An authorized SQL query reads the intended lake objects and meets the documented scan-cost budget.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: An IoT platform writes Bigtable rows with monotonically increasing time-leading keys and sees one overloaded tablet. Its tailored control is to redesign the row key using device or hash prefixes and validate distribution against typical range queries. In the present situation the more direct exposure is that assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
C:This failure mode belongs chiefly to another situation: A startup stores two years of logs at high storage cost although only one month is used interactively. Its tailored control is to apply Cloud Storage lifecycle classes and retrieval-cost planning to the log archive tiers. In the present situation the more direct exposure is that assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
D:This failure mode belongs chiefly to another situation: A field-service mobile application needs to synchronize small user-owned JSON documents with responsive client queries. Its tailored control is to consider Firestore document modeling and indexes appropriate for the application query patterns. In the present situation the more direct exposure is that assuming external tables always match native storage performance can produce slow queries and unexpected scan costs.
Question 346
The design review proposes the following action: Use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. The triggering condition is: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. Which technical principle BEST justifies it?
- Cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
- Quota failures must be distinguished from application exceptions and permission errors for correct remediation.
- A job's RUNNING state does not guarantee the pipeline is keeping up with its data source.
- Pipeline observability must expose data-quality losses as well as infrastructure job status.
Explanation
Correct Answer
A:The governing principle is that cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice. It explains why the team should use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. The current problem is: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. Without the safeguard, a runaway repeated query can consume budget before an engineer discovers the pattern. A suitable proof is: A test budget threshold and billing report identify the intended service, project and spend driver.
Incorrect Answers
B:That principle applies primarily to a different design condition: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. There the relevant engineering response is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. For the given case, the controlling rationale is that cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
C:That principle applies primarily to a different design condition: A streaming Dataflow job stays running but its Pub/Sub input backlog grows and published data becomes stale. There the relevant engineering response is to monitor subscription backlog, system lag and output freshness with actionable Cloud Monitoring alerts. For the given case, the controlling rationale is that cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
D:That principle applies primarily to a different design condition: An Apache Beam transformation silently drops invalid records but the dashboard shows only total successful records. There the relevant engineering response is to instrument per-stage accepted, rejected and dead-letter counters with source-volume reconciliation. For the given case, the controlling rationale is that cost observability depends on attributing spend to services and workloads rather than a single aggregate invoice.
Question 347
A data engineer recommends: Use an approved event trigger with object-identity deduplication and downstream orchestration. It addresses: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. What underlying principle explains the recommendation?
- Simple time-based recurring operations do not necessarily need a full orchestration platform.
- Multi-service workflows require explicit failure transitions instead of unconditional next-step execution.
- Repeatable orchestration requires safe retries, because scheduler success status alone cannot establish exactly-once output.
- Event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications.
Explanation
Correct Answer
D:The governing principle is that event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications. It explains why the team should use an approved event trigger with object-identity deduplication and downstream orchestration. The current problem is: An event arrives at Cloud Storage but no automation initiates the corresponding parsing workflow until an operator notices it. Without the safeguard, file arrival can be missed or delayed and repeated notifications may process the same file twice. A suitable proof is: A single uploaded object initiates the intended transformation and duplicate notifications remain harmless.
Incorrect Answers
A:That principle applies primarily to a different design condition: A single Cloud Run transformation must execute every day at 02:00 without a complex dependency graph. There the relevant engineering response is to use Cloud Scheduler with authenticated invocation, monitoring and idempotent job behavior. For the given case, the controlling rationale is that event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications.
B:That principle applies primarily to a different design condition: A serverless workflow should branch to a compensation step when a target table write fails after staging succeeds. There the relevant engineering response is to use Cloud Workflows conditional steps and bounded error handling with a defined compensation path. For the given case, the controlling rationale is that event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications.
C:That principle applies primarily to a different design condition: A Cloud Composer DAG retries a failed load and accidentally appends records a second time after an uncertain first success. There the relevant engineering response is to design idempotent task boundaries with stable run identifiers and transactional target publication. For the given case, the controlling rationale is that event-driven automation can reduce ingestion delay when it is made tolerant of duplicate notifications.
Question 348
A project declines to apply this measure: Assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. It faces: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. Which consequence is MOST directly unresolved?
- A bulk nightly ETL can starve executive dashboards during the reporting window.
- Users can experience long query queues even though the daily average slot chart appears low.
- Low-urgency work can contend with urgent analytical queries and delay user decisions.
- An accidental query without filters may scan far more data than the team is authorized to spend.
Explanation
Correct Answer
A:The specific residual risk is that a bulk nightly ETL can starve executive dashboards during the reporting window. The situation is: Business intelligence users experience unpredictable BigQuery latency when massive batch ETL jobs compete for the same slots. The missing response is to assign appropriate BigQuery reservations or editions capacity to separate interactive and batch workloads. The engineering reason is that workload isolation prevents long-running transforms from consuming the resources needed by time-sensitive queries. After remediation, verify: A load rehearsal holds dashboard p95 latency within target while batch capacity remains controlled.
Incorrect Answers
B:This failure mode belongs chiefly to another situation: A BigQuery reservation has enough average slots but query concurrency spikes produce long queues at 09:00. Its tailored control is to review concurrency, queued job metrics and supported autoscaling or reservation sizing for the peak workload. In the present situation the more direct exposure is that a bulk nightly ETL can starve executive dashboards during the reporting window.
C:This failure mode belongs chiefly to another situation: A data warehouse runs exploratory analysis with the same urgency as an overnight scheduled batch rebuild. Its tailored control is to choose suitable interactive or batch query priority and scheduling policies for the business use case. In the present situation the more direct exposure is that a bulk nightly ETL can starve executive dashboards during the reporting window.
D:This failure mode belongs chiefly to another situation: A finance team needs a predictable upper bound on ad hoc query spend while allowing reasonable exploratory work. Its tailored control is to apply per-query maximum bytes billed, organizational budgets and monitored usage as appropriate. In the present situation the more direct exposure is that a bulk nightly ETL can starve executive dashboards during the reporting window.
Question 349
An architect must address the following condition: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. Which approach should be selected?
- Evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
- Run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies.
- Enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region.
- Select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements.
Explanation
Correct Answer
A:The appropriate design is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors. This addresses the exact constraint: A data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The underlying principle is that a managed visual integration layer can simplify standard ETL connectors while still requiring governed mapping logic. If omitted, handwritten integration code may increase maintenance effort for routine column mapping changes. A direct acceptance test is: A representative mapped feed runs from source to target with traceable schema and observed pipeline status.
Incorrect Answers
B:This action fits a separate situation: An existing Spark application depends on specialized libraries and the team wants managed Hadoop-compatible execution. There it would make sense to run the supported Spark workload using Dataproc or a suitable managed Spark environment with controlled dependencies. It does not resolve this case, in which a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The needed control is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
C:This action fits a separate situation: A fulfillment team requires messages for the same order to be processed in sequence despite parallel subscribers. There it would make sense to enable Pub/Sub ordering for a meaningful ordering key and publish related events with that same key in a consistent region. It does not resolve this case, in which a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The needed control is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
D:This action fits a separate situation: A warehouse receives millions of tiny events and the team cannot choose between direct BigQuery streaming writes and batch loads. There it would make sense to select a supported BigQuery Storage Write API or batch load path based on freshness, throughput and cost requirements. It does not resolve this case, in which a data integration group needs to move relational source tables through visual mappings but has little capacity to maintain custom Spark code. The needed control is to evaluate Cloud Data Fusion managed integration pipelines and reusable visual transformations for the supported connectors.
Question 350
A data engineer recommends: Grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. It addresses: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. What underlying principle explains the recommendation?
- Column-level authorization can permit useful analytical fields while preventing access to sensitive columns.
- BigQuery query execution authority and permission to read source table data are separate access checks.
- Sensitive-data access accountability requires auditable identity and activity records with controlled retention.
- Preventive organization controls enforce placement rules even when individual project owners deploy valid templates.
Explanation
Correct Answer
B:The governing principle is that bigQuery query execution authority and permission to read source table data are separate access checks. It explains why the team should grant BigQuery job creation in the billing project and narrowly scoped data-read permissions on the required dataset. The current problem is: A finance analyst can run queries but receives permission denied when reading a sensitive BigQuery dataset owned by another project. Without the safeguard, granting broad project Owner access to fix the error would expose unrelated financial data and administration. A suitable proof is: The analyst runs the approved query but cannot read an unrelated restricted dataset.
Incorrect Answers
A:That principle applies primarily to a different design condition: A customer-support dashboard needs customer city and purchase totals but must not disclose raw identity-document numbers. There the relevant engineering response is to apply BigQuery policy tags or supported column-level controls to withhold the restricted identity column from the analyst role. For the given case, the controlling rationale is that bigQuery query execution authority and permission to read source table data are separate access checks.
C:That principle applies primarily to a different design condition: A regulated data platform needs a durable record of which identities queried confidential warehouse tables for an investigation. There the relevant engineering response is to enable and route relevant Cloud Audit Logs and BigQuery data-access audit evidence to protected retention and review workflows. For the given case, the controlling rationale is that bigQuery query execution authority and permission to read source table data are separate access checks.
D:That principle applies primarily to a different design condition: A new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. There the relevant engineering response is to apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. For the given case, the controlling rationale is that bigQuery query execution authority and permission to read source table data are separate access checks.