Professional Data Engineer on Google Cloud Platform Professional Data Engineer Practice Test 42
Question 410
An architect must address the following condition: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. Which approach should be selected?
- Store the objects in Cloud Storage with an appropriate storage class, retention and access policy.
- Use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
- Evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design.
- Use BigQuery as the managed analytical warehouse for the reporting and aggregation workload.
Explanation
Correct Answer
B:The appropriate design is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules. This addresses the exact constraint: An API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The underlying principle is that a low-latency cache can reduce repetitive database reads but should not replace durable authoritative writes. If omitted, stale cached prices can reach customers if invalidation and expiration are not defined. A direct acceptance test is: A price update invalidates or refreshes its cache entry and the source database remains authoritative.
Incorrect Answers
A:This action fits a separate situation: A legal archive receives immutable large PDFs and videos that are rarely queried but must remain durable for years. There it would make sense to store the objects in Cloud Storage with an appropriate storage class, retention and access policy. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
C:This action fits a separate situation: A global financial service needs relational transactions and strongly consistent writes across geographically distributed users. There it would make sense to evaluate Cloud Spanner with supported regional or multi-region configuration and transaction design. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
D:This action fits a separate situation: A retail analytics team needs SQL over trillions of historical transactions and wants to avoid managing a database server fleet. There it would make sense to use BigQuery as the managed analytical warehouse for the reporting and aggregation workload. It does not resolve this case, in which an API repeatedly reads a small set of product prices from a slower backing database with heavy peak traffic. The needed control is to use Memorystore as a managed cache with explicit TTL, invalidation and authoritative source-of-truth rules.
Question 411
A production review examines this scenario: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. The team adopts: Use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. Which test BEST establishes the control works?
- A development identity can write to test datasets but cannot modify production tables without approved promotion.
- An unauthorized in-perimeter identity is denied table access even though its network context satisfies perimeter policy.
- A test deployment to a prohibited region fails while an otherwise equivalent permitted deployment succeeds.
- Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
Explanation
Correct Answer
D:This is the decisive test result: Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow. It directly validates the implementation to use Sensitive Data Protection discovery or inspection and govern classification-driven handling before granting broad access. The underlying case is: A retailer uploads mixed customer records into Cloud Storage and does not know which objects contain payment identifiers. This matters because privacy controls require discovering sensitive fields and matching access and retention to their classification. Without it, unclassified payment fields could be copied into lower-trust analytics environments or exports.
Incorrect Answers
A:This is proof for a different safeguard: Separate development and production data resources and authorize deploy-only service accounts for guarded promotion. That applies when developers and production schedulers currently share the same BigQuery dataset and can overwrite audited reporting tables. The present control instead requires the specific outcome: Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
B:This is proof for a different safeguard: Combine VPC Service Controls perimeter configuration with explicit BigQuery IAM and data policy authorization. That applies when security personnel assume a VPC Service Controls perimeter grants users table-level authorization on all BigQuery resources inside it. The present control instead requires the specific outcome: Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
C:This is proof for a different safeguard: Apply organization policy constraints and infrastructure review that prevent nonapproved data-resource locations. That applies when a new data pipeline provisions resources in unrestricted locations although corporate policy specifies a small set of allowed regions. The present control instead requires the specific outcome: Inspection identifies seeded sensitive values and applies the intended access or de-identification workflow.
Question 412
The design review proposes the following action: Store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. The triggering condition is: A company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. Which technical principle BEST justifies it?
- Durable staging separates source acquisition from later transformation and supports controlled replay.
- An architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
- Shared data discovery reduces duplicate ingestion and helps consumers assess whether a dataset is trustworthy.
- Portable data formats reduce dependence on one storage engine when multiple processing environments are required.
Explanation
Correct Answer
D:The governing principle is that portable data formats reduce dependence on one storage engine when multiple processing environments are required. It explains why the team should store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. The current problem is: A company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. Without the safeguard, exporting only a proprietary query artifact can make later migration costly and incomplete. A suitable proof is: A representative Parquet dataset is independently readable with matching schema and row totals in both environments.
Incorrect Answers
A:That principle applies primarily to a different design condition: A new event feed is parsed directly into production tables without keeping a recoverable copy of source messages. There the relevant engineering response is to land governed raw records in Cloud Storage or another durable staging layer before irreversible transformations. For the given case, the controlling rationale is that portable data formats reduce dependence on one storage engine when multiple processing environments are required.
B:That principle applies primarily to a different design condition: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. There the relevant engineering response is to model future event volume, latency and retention tiers before fixing component and partitioning choices. For the given case, the controlling rationale is that portable data formats reduce dependence on one storage engine when multiple processing environments are required.
C:That principle applies primarily to a different design condition: Several divisions create duplicate datasets because engineers cannot discover which existing source is authoritative. There the relevant engineering response is to register approved assets in a searchable catalog with owners, descriptions and lineage references. For the given case, the controlling rationale is that portable data formats reduce dependence on one storage engine when multiple processing environments are required.
Question 413
A production review examines this scenario: A regulated analytics program cannot trace its report fields through source systems after an audit query. The team adopts: Capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. Which test BEST establishes the control works?
- A sampled report metric resolves through the registered lineage graph to source records and transformations.
- A propagation test identifies classified descendants and denies the unapproved user from restricted columns.
- The catalog finds regional assets while data movement logs confirm no unauthorized cross-border copies.
- A contract test detects a breaking field change before downstream consumers receive the new version.
Explanation
Correct Answer
A:This is the decisive test result: A sampled report metric resolves through the registered lineage graph to source records and transformations. It directly validates the implementation to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. The underlying case is: A regulated analytics program cannot trace its report fields through source systems after an audit query. This matters because data platform traceability requires connecting source lineage and transformations to final published data products. Without it, without lineage, auditors cannot assess whether a restricted upstream field reached a broadly shared report.
Incorrect Answers
B:This is proof for a different safeguard: Define a governed metadata taxonomy and connect policy tags or supported controls to the classified fields. That applies when a classification term is stored in spreadsheet notes but is not enforced consistently in BigQuery and lake access. The present control instead requires the specific outcome: A sampled report metric resolves through the registered lineage graph to source records and transformations.
C:This is proof for a different safeguard: Use federated catalog discovery and region-aware access patterns while retaining approved storage locations. That applies when regional data teams need a common view of owned datasets but cannot centralize every byte for legal reasons. The present control instead requires the specific outcome: A sampled report metric resolves through the registered lineage graph to source records and transformations.
D:This is proof for a different safeguard: Publish a documented versioned data product interface with owners, contracts and deprecation checks. That applies when internal teams expose raw tables directly as products and change column names without notifying consumers. The present control instead requires the specific outcome: A sampled report metric resolves through the registered lineage graph to source records and transformations.
Question 414
The team accepts this control: Choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. What observable result should its acceptance test verify?
- Worker telemetry validates a cheaper parsing configuration and sufficient memory for the join stage.
- Stage metrics show improved skew distribution and matching aggregate output after tuning.
- A scaling rehearsal meets required throughput with explicit headroom and no quota errors.
- A timed job-based execution meets completion SLAs at lower total compute cost.
Explanation
Correct Answer
D:This is the decisive test result: A timed job-based execution meets completion SLAs at lower total compute cost. It directly validates the implementation to choose an appropriate ephemeral Dataproc cluster or serverless Spark execution model rather than a mostly idle persistent cluster. The underlying case is: A nightly Spark job needs hundreds of workers for ninety minutes while a permanently running Dataproc cluster stays idle most of the day. This matters because short scheduled workloads can avoid idle compute charges when startup and compatibility meet processing deadlines. Without it, persistent workers can create excessive cost for a small daily processing window.
Incorrect Answers
A:This is proof for a different safeguard: Right-size worker machine types and stage resources using actual CPU, memory and pipeline metrics. That applies when a Dataflow batch job uses expensive large workers for a light parsing step but reserves no memory for a later heavy join. The present control instead requires the specific outcome: A timed job-based execution meets completion SLAs at lower total compute cost.
B: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 timed job-based execution meets completion SLAs at lower total compute cost.
C:This is proof for a different safeguard: Measure expected peak resource demand and request supported quotas or reservations before capacity expansion. That applies when an event analytics service wants to expand its data pipeline but current quotas and reserved compute limits are unknown. The present control instead requires the specific outcome: A timed job-based execution meets completion SLAs at lower total compute cost.
Question 415
A production data pipeline has this problem: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. Which solution MOST directly corrects it?
- 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.
- Capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog.
Explanation
Correct Answer
B:The appropriate design is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions. This addresses the exact constraint: An enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. The underlying principle is that a data platform needs coherent metadata, access and data-quality practices across multiple storage systems. If omitted, independent projects may publish incompatible definitions and leave sensitive datasets unclassified. A direct acceptance test is: An asset inventory spans both warehouse and lake sources with consistent ownership and access policy.
Incorrect Answers
A: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 an enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. The needed control is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions.
C:This action fits a separate situation: Business units own their data products but the central platform team must enforce consistent privacy rules. There it would make sense to adopt federated stewardship with centrally defined data classifications and locally accountable domain owners. It does not resolve this case, in which an enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. The needed control is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions.
D:This action fits a separate situation: A regulated analytics program cannot trace its report fields through source systems after an audit query. There it would make sense to capture supported lineage from ingestion to transformations and published reporting assets in the governance catalog. It does not resolve this case, in which an enterprise wants a governed Google Cloud data platform spanning BigQuery warehouses and Cloud Storage lake zones. The needed control is to design platform services around BigQuery, Cloud Storage and supported Dataplex catalog or governance functions.
Question 416
An architecture proposal calls for: Model future event volume, latency and retention tiers before fixing component and partitioning choices. In this case: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. Which rationale MOST strongly supports the choice?
- Portable data formats reduce dependence on one storage engine when multiple processing environments are required.
- An architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
- Loose coupling limits replacement costs when data processing systems evolve independently.
- Evolvable contracts let diverse data producers change nonbreaking fields without corrupting shared consumers.
Explanation
Correct Answer
B:The governing principle is that an architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign. It explains why the team should model future event volume, latency and retention tiers before fixing component and partitioning choices. The current problem is: A growing online business chooses a storage architecture only for today's ten-thousand daily transactions. Without the safeguard, a rigid initial design may exceed throughput limits as traffic and historical data volume increase. A suitable proof is: A load forecast and scale test show the proposed path handles agreed growth targets at acceptable cost.
Incorrect Answers
A:That principle applies primarily to a different design condition: A company expects to analyze warehouse data in Google Cloud and a second cloud without rewriting all archival formats. There the relevant engineering response is to store exchange datasets in governed portable formats such as Parquet and define explicit schema contracts. For the given case, the controlling rationale is that an architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
C:That principle applies primarily to a different design condition: The enterprise wants analytics consumers to remain available when its warehouse engine is replatformed in two years. There the relevant engineering response is to decouple ingestion, published data contracts and consumer interfaces through governed reusable interfaces or exchange layers. For the given case, the controlling rationale is that an architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
D:That principle applies primarily to a different design condition: Three tenants submit similar event records with different optional attributes and a pipeline hard-codes one schema variant. There the relevant engineering response is to use documented schema evolution and compatibility checks with an explicit canonical representation. For the given case, the controlling rationale is that an architecture should accommodate credible growth without imposing premature complexity or forcing disruptive redesign.
Question 417
A data engineer recommends: Validate critical fields, expected uniqueness and population-level reconciliation before publication. It addresses: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. What underlying principle explains the recommendation?
- Replay safety depends on preserving business identity and enforcing idempotence at durable outputs.
- A processing-mode guarantee inside a stream engine does not automatically guarantee exactly-once side effects in external systems.
- Data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output.
- Pipeline reliability includes timely arrival of usable data, not just successful completion of scheduled jobs.
Explanation
Correct Answer
C:The governing principle is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output. It explains why the team should validate critical fields, expected uniqueness and population-level reconciliation before publication. The current problem is: An ecommerce dataset contains customer IDs with unexpected nulls and duplicate primary business keys after enrichment. Without the safeguard, customer counts and attribution models can become biased when duplicate and null identifiers enter analytics. A suitable proof is: Injected duplicate and null records fail the quality gate and are preserved for controlled remediation.
Incorrect Answers
A:That principle applies primarily to a different design condition: A pipeline reprocesses the previous day after a transient failure and counts the same order twice in a published table. There the relevant engineering response is to design stable order identifiers and idempotent MERGE or deduplication at the reporting sink. For the given case, the controlling rationale is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output.
B:That principle applies primarily to a different design condition: A payments pipeline switches to at-least-once processing but writes directly to an external system that cannot tolerate duplicates. There the relevant engineering response is to choose supported exactly-once pipeline semantics where appropriate and enforce idempotent external writes by transaction identifier. For the given case, the controlling rationale is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output.
D:That principle applies primarily to a different design condition: Daily dashboards appear green but arrive two hours late because the pipeline monitors only task success. There the relevant engineering response is to track data freshness and completeness SLIs alongside job execution status and route threshold breaches. For the given case, the controlling rationale is that data fidelity requires explicit integrity constraints on business keys rather than accepting syntactically valid output.
Question 418
The proposed safeguard is not implemented: Parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. The data platform currently faces: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. What direct risk remains?
- A malformed model answer or leaked PII can contaminate analytics and violate data protection requirements.
- Order totals can be understated when additional line items are lost during transformation.
- Late meter readings may disappear from billing totals or unpredictably revise supposedly final windows.
- Malformed events can disappear from metrics or propagate incorrect null fields into fact tables.
Explanation
Correct Answer
B:The specific residual risk is that order totals can be understated when additional line items are lost during transformation. The situation is: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. The missing response is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. The engineering reason is that schema-aware parsing preserves repeated relationships that ad hoc string flattening can discard. After remediation, verify: A multi-line order retains every nested item and reconciles line-level sums with the source payload.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: A pipeline enriches customer support tickets with an AI model but sends uncontrolled personal details in prompts. Its tailored control is to insert an approved redaction and model-quality validation boundary around Vertex AI or another permitted enrichment service. In the present situation the more direct exposure is that order totals can be understated when additional line items are lost during transformation.
C:This failure mode belongs chiefly to another situation: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. Its tailored control is to use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. In the present situation the more direct exposure is that order totals can be understated when additional line items are lost during transformation.
D:This failure mode belongs chiefly to another situation: A JSON event producer adds nested optional fields and several records fail parsing without any retained diagnostics. Its tailored control is to introduce schema-aware parsing with a rejected-record side output and a controlled schema-evolution policy. In the present situation the more direct exposure is that order totals can be understated when additional line items are lost during transformation.
Question 419
The engineering team ignores the recommended change: Use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. The current state is: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. What is the greatest specific exposure?
- Order totals can be understated when additional line items are lost during transformation.
- Late meter readings may disappear from billing totals or unpredictably revise supposedly final windows.
- Separate hand-maintained implementations may classify identical records differently across batch and stream paths.
- Downstream users can query protected fields if raw payloads are copied directly into the shared warehouse.
Explanation
Correct Answer
B:The specific residual risk is that late meter readings may disappear from billing totals or unpredictably revise supposedly final windows. The situation is: A utility's streaming meter totals group readings into ten-minute windows but many devices upload older events after reconnecting. The missing response is to use event-time Beam windows with an appropriate allowed-lateness and trigger strategy. The engineering reason is that windowing policy must account for late-arriving event timestamps rather than relying solely on processing arrival time. After remediation, verify: A scripted late-arrival test produces the documented correction behavior and expected reconciled totals.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: An API feed supplies nested JSON arrays and naive CSV flattening loses repeated line items from each order. Its tailored control is to parse nested records into correctly typed BigQuery STRUCT and ARRAY fields or a deliberate child table model. In the present situation the more direct exposure is that late meter readings may disappear from billing totals or unpredictably revise supposedly final windows.
C:This failure mode belongs chiefly to another situation: A company needs one transformation pipeline for daily archive files and live events with the same business rules. Its tailored control is to use Apache Beam and Dataflow compatible batch and streaming transforms with shared validated logic where appropriate. In the present situation the more direct exposure is that late meter readings may disappear from billing totals or unpredictably revise supposedly final windows.
D:This failure mode belongs chiefly to another situation: An event pipeline mixes public clickstream and regulated fields in the same payload before publishing a reporting table. Its tailored control is to apply field-level de-identification or filtering before writing the lower-trust sink and log rejections. In the present situation the more direct exposure is that late meter readings may disappear from billing totals or unpredictably revise supposedly final windows.
Question 420
The proposed safeguard is not implemented: Correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. The data platform currently faces: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. What direct risk remains?
- A skewed join may remain slow even after costly reservation expansion.
- Critical failures can remain invisible until consumers notice missing tables.
- A runaway repeated query can consume budget before an engineer discovers the pattern.
- Repeated blind retries can amplify cost and never increase allowed service capacity.
Explanation
Correct Answer
D:The specific residual risk is that repeated blind retries can amplify cost and never increase allowed service capacity. The situation is: A scheduled Dataflow job begins failing with resource-exhausted responses after a source volume increase. The missing response is to correlate quotas, worker logs and API error details with cloud service usage metrics before escalation. The engineering reason is that quota failures must be distinguished from application exceptions and permission errors for correct remediation. After remediation, verify: A controlled quota test produces a diagnostic alert and the owner identifies the limiting quota metric.
Incorrect Answers
A:This failure mode belongs chiefly to another situation: BigQuery queries become slower after an ETL release and operators suspect insufficient slots but lack job-level evidence. Its tailored control is to inspect BigQuery INFORMATION_SCHEMA job timelines and reservation utilization before changing capacity. In the present situation the more direct exposure is that repeated blind retries can amplify cost and never increase allowed service capacity.
B:This failure mode belongs chiefly to another situation: A BigQuery extract fails during the night but the team learns of it only when a report is empty next morning. Its tailored control is to route structured Cloud Logging errors into an alert and owned incident response workflow. In the present situation the more direct exposure is that repeated blind retries can amplify cost and never increase allowed service capacity.
C:This failure mode belongs chiefly to another situation: A data service's monthly spend increases abruptly and nobody can distinguish growth in storage, queries or network egress. Its tailored control is to use Cloud Billing budgets, labels and service usage reports with anomaly thresholds to isolate major cost drivers. In the present situation the more direct exposure is that repeated blind retries can amplify cost and never increase allowed service capacity.